/* ====== style.css ====== */

:root {
  --bg: #090a0c;
  --bg-soft: #0e1013;
  --surface: #121418;
  --surface-2: #17191e;
  --surface-3: #1d2025;
  --border: #272a30;
  --border-strong: #3b3f47;
  --text: #f4f4f1;
  --text-soft: #c3c4c7;
  --muted: #8d9097;
  --faint: #5f6269;
  --gold: #d7a63d;
  --gold-light: #f0c760;
  --gold-dark: #7e5d1b;
  --gold-glow: rgba(215, 166, 61, .22);
  --green: #35c77a;
  --red: #ef6262;
  --blue: #6ba9ff;
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 26px 70px rgba(0,0,0,.38);
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --page: min(1240px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 90% 5%, rgba(215,166,61,.08), transparent 28rem),
    radial-gradient(circle at 5% 30%, rgba(255,255,255,.025), transparent 24rem),
    var(--bg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .28;
  background-image:
    linear-gradient(rgba(255,255,255,.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--gold); color: #111; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 74px;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: rgba(9,10,12,.82);
  border-bottom: 1px solid rgba(255,255,255,.07);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.brand-link { display: inline-flex; align-items: center; min-width: 0; }
.brand-logo { width: 150px; height: 52px; object-fit: contain; object-position: left center; }
.header-nav { display: flex; align-items: center; gap: 28px; color: var(--text-soft); font-size: 13px; font-weight: 600; }
.header-nav > a:not(.header-cta) { position: relative; }
.header-nav > a:not(.header-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 1px;
  background: var(--gold);
  transition: right .2s ease;
}
.header-nav > a:hover::after { right: 0; }
.header-cta {
  padding: 10px 16px;
  border: 1px solid rgba(215,166,61,.45);
  border-radius: 999px;
  color: var(--gold-light);
  background: rgba(215,166,61,.07);
}
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.menu-toggle span { display: block; width: 18px; height: 1px; margin: 5px auto; background: var(--text); transition: transform .2s ease; }
.mobile-menu {
  position: fixed;
  top: 74px;
  left: 12px;
  right: 12px;
  z-index: 39;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(18,20,24,.98);
  box-shadow: var(--shadow);
}
.mobile-menu a { display: block; padding: 13px 14px; border-radius: 10px; color: var(--text-soft); }
.mobile-menu a:last-child { margin-top: 6px; background: var(--gold); color: #181204; font-weight: 800; text-align: center; }

.hero {
  width: var(--page);
  margin: 0 auto;
  min-height: 690px;
  padding: 82px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(390px, .97fr);
  align-items: center;
  gap: 72px;
}
.hero-copy { max-width: 690px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow > span { width: 22px; height: 1px; background: currentColor; }
.eyebrow.center { justify-content: center; }
.hero h1 {
  margin: 20px 0 22px;
  max-width: 720px;
  font-family: var(--font-display);
  font-size: clamp(42px, 5.2vw, 72px);
  line-height: .98;
  letter-spacing: -.05em;
  font-weight: 600;
}
.hero h1 strong { display: block; color: var(--gold-light); font-weight: 600; }
.hero-copy > p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  border: 1px solid transparent;
  border-radius: 11px;
  min-height: 46px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  font-size: 13px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, filter .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #181204; box-shadow: 0 12px 30px rgba(215,166,61,.18); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-secondary { border-color: var(--border-strong); background: rgba(255,255,255,.025); color: var(--text); }
.btn-secondary:hover { border-color: var(--gold-dark); background: rgba(215,166,61,.05); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,.04); }
.btn-danger { background: rgba(239,98,98,.14); color: #ff9090; border-color: rgba(239,98,98,.36); }
.btn-small { min-height: 38px; padding: 0 14px; font-size: 12px; }
.btn-wide { width: 100%; }
.hero-metrics { display: flex; gap: 34px; margin-top: 38px; padding-top: 26px; border-top: 1px solid var(--border); }
.hero-metrics div { display: grid; gap: 4px; }
.hero-metrics strong { font-family: var(--font-display); font-size: 18px; }
.hero-metrics span { color: var(--faint); font-size: 10px; line-height: 1.3; text-transform: uppercase; letter-spacing: .08em; }

.printer-stage {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.035), transparent 48%),
    rgba(13,14,17,.72);
  overflow: hidden;
  box-shadow: inset 0 1px rgba(255,255,255,.04), var(--shadow);
}
.printer-stage::before, .printer-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.printer-stage::before {
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}
.printer-stage::after { box-shadow: inset 0 0 90px rgba(0,0,0,.62); }
.stage-glow { position: absolute; width: 280px; height: 280px; border-radius: 50%; background: rgba(215,166,61,.14); filter: blur(70px); animation: glowPulse 4s ease-in-out infinite; }
.printer-frame { position: relative; z-index: 2; width: 78%; height: 340px; border-left: 11px solid #36383e; border-right: 11px solid #36383e; border-top: 11px solid #36383e; border-radius: 8px 8px 0 0; }
.printer-topbar { position: absolute; top: 28px; left: 0; right: 0; height: 8px; background: #25282d; box-shadow: 0 1px rgba(255,255,255,.05); }
.printer-rail { position: absolute; top: 74px; left: 24px; right: 24px; height: 5px; border-radius: 6px; background: #494d55; }
.printer-carriage { position: absolute; top: 55px; left: 18%; width: 78px; height: 90px; animation: carriageMove 4.8s cubic-bezier(.55,.05,.45,.95) infinite; }
.printer-head { width: 78px; height: 56px; border-radius: 8px 8px 13px 13px; background: linear-gradient(#393c43, #202228); box-shadow: 0 8px 24px rgba(0,0,0,.42); }
.printer-tip { width: 13px; height: 26px; margin: -2px auto 0; clip-path: polygon(20% 0,80% 0,100% 70%,62% 100%,38% 100%,0 70%); background: linear-gradient(#b9bdc6, #d7a63d); }
.print-object {
  position: absolute;
  left: 50%;
  bottom: 49px;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  font-family: var(--font-display);
  font-size: 112px;
  font-weight: 700;
  line-height: .72;
  letter-spacing: -.1em;
  color: var(--gold-light);
  filter: drop-shadow(0 14px 28px rgba(215,166,61,.2));
  clip-path: inset(100% 0 0 0);
  animation: printReveal 4.8s linear infinite;
}
.print-object span:last-child { color: #f3f3ef; }
.print-line { position: absolute; left: 20%; right: 20%; bottom: 38px; height: 4px; border-radius: 50%; background: var(--gold); filter: blur(.3px); animation: linePulse 4.8s ease infinite; }
.printer-bed { position: absolute; left: -5%; right: -5%; bottom: 17px; height: 22px; border-radius: 4px; background: linear-gradient(#3d4148, #1f2126); transform: perspective(160px) rotateX(35deg); box-shadow: 0 18px 30px rgba(0,0,0,.5); }
.stage-caption { position: absolute; z-index: 3; left: 24px; bottom: 20px; display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); animation: livePulse 1.3s ease infinite; }
@keyframes carriageMove { 0%,100% { left: 18%; } 50% { left: calc(82% - 78px); } }
@keyframes printReveal { 0% { clip-path: inset(100% 0 0 0); } 80%,100% { clip-path: inset(0 0 0 0); } }
@keyframes linePulse { 0%,100% { opacity: .3; transform: scaleX(.2); } 50% { opacity: 1; transform: scaleX(1); } }
@keyframes livePulse { 50% { opacity: .35; } }
@keyframes glowPulse { 50% { transform: scale(1.15); opacity: .7; } }
@keyframes revealIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.reveal-on-load { animation: revealIn .65s ease both; }

.trust-strip {
  width: var(--page);
  margin: 0 auto 90px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(18,20,24,.72);
}
.trust-strip > div { min-height: 94px; padding: 20px 24px; display: grid; grid-template-columns: 38px 1fr; column-gap: 12px; align-content: center; border-right: 1px solid var(--border); }
.trust-strip > div:last-child { border-right: 0; }
.trust-icon { grid-row: span 2; align-self: center; width: 34px; height: 34px; border: 1px solid rgba(215,166,61,.3); border-radius: 10px; display: grid; place-items: center; color: var(--gold-light); }
.trust-strip strong { font-size: 13px; }
.trust-strip small { color: var(--muted); font-size: 11px; margin-top: 3px; }

.catalog-section, .how-section { width: var(--page); margin: 0 auto; padding: 10px 0 100px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 30px; }
.section-heading.compact { margin-bottom: 24px; }
.section-heading h2, .custom-cta h2 { margin: 12px 0 8px; font-family: var(--font-display); font-size: clamp(30px, 3.5vw, 46px); letter-spacing: -.035em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.catalog-count { padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.demo-notice, .demo-banner { margin-bottom: 20px; padding: 14px 16px; border: 1px solid rgba(215,166,61,.3); border-radius: 12px; background: rgba(215,166,61,.07); color: var(--text-soft); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 12px; }
.demo-notice strong, .demo-banner strong { color: var(--gold-light); }
.demo-notice code { color: var(--gold-light); }
.catalog-toolbar { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin-bottom: 16px; }
.search-box { min-height: 50px; display: flex; align-items: center; gap: 10px; padding: 0 15px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--muted); }
.search-box:focus-within { border-color: var(--gold-dark); box-shadow: 0 0 0 3px rgba(215,166,61,.06); }
.search-box input { flex: 1; min-width: 0; height: 46px; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 13px; }
.search-box kbd { padding: 3px 6px; border: 1px solid var(--border-strong); border-radius: 5px; color: var(--faint); background: var(--surface-2); font-size: 9px; }
.sort-box { min-width: 230px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.sort-box span { color: var(--faint); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.sort-box select { flex: 1; height: 48px; border: 0; outline: 0; background: transparent; color: var(--text-soft); font-size: 12px; }
.sort-box option, select option { background: var(--surface-2); color: var(--text); }
.filters-bar { display: flex; gap: 8px; overflow-x: auto; padding: 2px 1px 20px; scrollbar-width: none; }
.filters-bar::-webkit-scrollbar { display: none; }
.filter-chip { flex: 0 0 auto; min-height: 36px; padding: 0 14px; border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; }
.filter-chip:hover { color: var(--text); border-color: var(--border-strong); }
.filter-chip.active { background: var(--gold); border-color: var(--gold); color: #161104; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.project-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); cursor: pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.project-card:hover { transform: translateY(-4px); border-color: #45403a; box-shadow: 0 18px 44px rgba(0,0,0,.26); }
.project-card:focus-visible { outline-offset: 5px; }
.card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: linear-gradient(145deg, #1a1c20, #101114); }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.project-card:hover .card-media img { transform: scale(1.035); }
.card-placeholder { width: 100%; height: 100%; display: grid; place-items: center; }
.card-placeholder img { width: 42%; height: 42%; object-fit: contain; opacity: .3; }
.card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,8,10,.65), transparent 48%); pointer-events: none; }
.card-badges { position: absolute; top: 11px; left: 11px; right: 11px; display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.card-badge { display: inline-flex; align-items: center; min-height: 25px; padding: 0 9px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(9,10,12,.72); backdrop-filter: blur(8px); color: var(--text-soft); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.card-badge.featured { border-color: rgba(215,166,61,.5); color: var(--gold-light); }
.card-badge.model { margin-left: auto; }
.card-code { position: absolute; left: 13px; bottom: 12px; color: rgba(255,255,255,.72); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.card-body { padding: 17px 17px 18px; }
.card-category { color: var(--gold-light); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.card-title { margin: 7px 0 10px; min-height: 46px; font-family: var(--font-display); font-size: 18px; line-height: 1.25; letter-spacing: -.02em; }
.card-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.card-price { color: var(--text); font-size: 13px; font-weight: 800; }
.card-price.consult { color: var(--muted); font-size: 11px; }
.card-open { color: var(--gold-light); font-size: 11px; font-weight: 800; }
.empty-state, .loading-row { grid-column: 1 / -1; min-height: 250px; padding: 60px 20px; display: grid; place-items: center; align-content: center; gap: 12px; border: 1px dashed var(--border); border-radius: 18px; color: var(--muted); text-align: center; font-size: 13px; }
.spinner { width: 24px; height: 24px; border: 2px solid var(--border); border-top-color: var(--gold); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.how-section { padding-top: 20px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps-grid article { min-height: 210px; padding: 24px; border: 1px solid var(--border); border-radius: 18px; background: linear-gradient(145deg, rgba(255,255,255,.025), transparent), var(--surface); }
.steps-grid article > span { color: var(--gold-light); font-family: var(--font-display); font-size: 12px; }
.steps-grid h3 { margin: 48px 0 10px; font-family: var(--font-display); font-size: 20px; }
.steps-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

.filament-section { width: var(--page); margin: 0 auto; padding: 10px 0 100px; }
.filament-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.filament-chip { display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); font-size: 13px; font-weight: 700; }
.filament-swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); flex-shrink: 0; }

.custom-cta { width: var(--page); margin: 0 auto 100px; padding: 42px; display: flex; align-items: center; justify-content: space-between; gap: 40px; border: 1px solid rgba(215,166,61,.22); border-radius: 26px; background: radial-gradient(circle at 92% 15%, rgba(215,166,61,.17), transparent 20rem), var(--surface); }
.custom-block { width: var(--page); margin: 0 auto 100px; padding: 42px; text-align: center; border: 1px solid var(--border); border-radius: 26px; background: var(--surface); }
.custom-block h2 { margin: 12px 0 8px; font-family: var(--font-display); font-size: clamp(26px, 3vw, 38px); letter-spacing: -.03em; }
.custom-block p { margin: 0 auto; max-width: 760px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.custom-block .eyebrow.center { justify-content: center; }
.custom-cta > div { max-width: 740px; }
.custom-cta h2 { font-size: clamp(28px, 3vw, 42px); }
.custom-cta p { margin: 0; max-width: 660px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.site-footer { width: var(--page); margin: 0 auto; padding: 38px 0 50px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 42px; border-top: 1px solid var(--border); }
.footer-brand img { width: 130px; height: 42px; object-fit: contain; object-position: left; }
.footer-brand p { margin: 5px 0 0; color: var(--faint); font-size: 10px; }
.footer-links { display: flex; gap: 22px; color: var(--muted); font-size: 11px; align-items: center; }
.footer-copy { color: var(--faint); font-size: 10px; }
.floating-whatsapp { position: fixed; right: 22px; bottom: 22px; z-index: 30; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: #25d366; box-shadow: 0 14px 34px rgba(37,211,102,.23); transition: transform .2s ease; }
.floating-whatsapp:hover { transform: translateY(-3px) scale(1.03); }
.floating-whatsapp svg { width: 28px; fill: white; }

.floating-cart { position: fixed; right: 22px; bottom: 86px; z-index: 30; width: 52px; height: 52px; display: grid; place-items: center; border: none; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text); box-shadow: 0 14px 34px rgba(0,0,0,.28); transition: transform .2s ease; }
.floating-cart:hover { transform: translateY(-3px) scale(1.03); }
.floating-cart svg { width: 24px; height: 24px; }
.floating-cart .cart-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border-radius: 999px; background: var(--gold); color: #181204; font-size: 11px; font-weight: 800; }

.card-cart-btn { width: 100%; margin-top: 10px; padding: 9px 10px; border: 1px solid var(--border-strong); border-radius: 999px; background: transparent; color: var(--text-soft); font-size: 11px; font-weight: 800; letter-spacing: .02em; transition: border-color .15s ease, color .15s ease, background .15s ease; }
.card-cart-btn:hover { border-color: var(--gold-dark); color: var(--gold-light); }
.card-cart-btn.in-cart { border-color: var(--gold); background: rgba(215,166,61,.12); color: var(--gold-light); }

.detail-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.detail-actions .whatsapp-btn { margin-top: 0; }
.cart-toggle-btn { min-height: 48px; }
.cart-toggle-btn.in-cart { border-color: var(--gold); color: var(--gold-light); background: rgba(215,166,61,.08); }

.cart-overlay { position: fixed; inset: 0; z-index: 100; padding: 24px; display: grid; place-items: center; background: rgba(3,4,5,.78); backdrop-filter: blur(10px); animation: overlayIn .18s ease both; }
.cart-panel { position: relative; width: min(460px, 100%); max-height: min(84vh, 700px); overflow-y: auto; padding: 28px; border: 1px solid var(--border-strong); border-radius: 24px; background: var(--surface); box-shadow: 0 40px 110px rgba(0,0,0,.62); }
.cart-panel h2 { margin: 0 0 6px; font-family: var(--font-display); }
.cart-subtitle { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.cart-empty { color: var(--muted); font-size: 13px; }
.cart-list { display: flex; flex-direction: column; gap: 10px; }
.cart-item { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.cart-item img, .cart-item-placeholder { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--surface-3); }
.cart-item-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cart-item-info strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-item-info span { font-size: 11px; color: var(--muted); }
.cart-item-remove { width: 28px; height: 28px; border: 1px solid var(--border-strong); border-radius: 50%; background: transparent; color: var(--muted); font-size: 16px; line-height: 1; }
.cart-item-remove:hover { color: var(--red); border-color: var(--red); }
.cart-footer { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.cart-footer .btn { width: 100%; justify-content: center; }
.cart-footer .whatsapp-btn { margin-top: 0; }

.detail-overlay { position: fixed; inset: 0; z-index: 100; padding: 24px; display: grid; place-items: center; background: rgba(3,4,5,.78); backdrop-filter: blur(10px); animation: overlayIn .18s ease both; }
@keyframes overlayIn { from { opacity: 0; } }
.detail-panel { position: relative; width: min(1120px, 100%); max-height: min(90vh, 850px); display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(350px, .82fr); overflow: hidden; border: 1px solid var(--border-strong); border-radius: 24px; background: var(--surface); box-shadow: 0 40px 110px rgba(0,0,0,.62); }
.detail-close { position: absolute; top: 14px; right: 14px; z-index: 12; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; background: rgba(8,9,11,.72); color: var(--text); font-size: 24px; line-height: 1; backdrop-filter: blur(8px); }
.detail-visual { min-width: 0; min-height: 590px; display: grid; grid-template-rows: auto 1fr auto; background: #0d0f12; border-right: 1px solid var(--border); }
.viewer-tabs { min-height: 56px; padding: 10px 58px 10px 12px; display: flex; align-items: center; gap: 7px; overflow-x: auto; border-bottom: 1px solid var(--border); scrollbar-width: none; }
.viewer-tabs::-webkit-scrollbar { display: none; }
.viewer-tab { flex: 0 0 auto; min-height: 34px; padding: 0 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--muted); font-size: 10px; font-weight: 800; }
.viewer-tab.active { color: #181204; background: var(--gold); border-color: var(--gold); }
.media-stage { position: relative; min-height: 470px; overflow: hidden; }
.detail-photo, #viewer3d-canvas-wrap { position: absolute; inset: 0; }
.model-download { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 32px; text-align: center; background: radial-gradient(circle at 50% 35%, rgba(214,169,65,.14), transparent 42%), #0d0f12; }
.model-download[hidden] { display: none; }
.model-download-icon { width: 68px; height: 68px; display: grid; place-items: center; border: 1px solid rgba(214,169,65,.38); border-radius: 20px; color: var(--gold-light); background: rgba(214,169,65,.08); font-family: var(--font-display); font-size: 20px; font-weight: 800; }
.model-download strong { margin-top: 6px; color: var(--text); font-family: var(--font-display); font-size: 20px; }
.model-download small { max-width: 420px; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.model-download .btn { margin-top: 8px; min-width: 150px; }
.detail-photo img { width: 100%; height: 100%; display: block; object-fit: contain; background: #0d0f12; }
#viewer3d-canvas-wrap canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.gallery-nav { position: absolute; top: 50%; width: 40px; height: 40px; margin-top: -20px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; background: rgba(8,9,11,.72); color: var(--text); font-size: 24px; backdrop-filter: blur(8px); }
.gallery-nav.prev { left: 14px; }
.gallery-nav.next { right: 14px; }
.viewer-status { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 30px; background: rgba(8,9,11,.6); color: var(--muted); text-align: center; font-size: 12px; }
.viewer-controls { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 5; display: flex; flex-wrap: wrap; gap: 7px; }
.viewer-controls button { min-height: 34px; padding: 0 11px; border: 1px solid rgba(255,255,255,.13); border-radius: 9px; background: rgba(9,10,12,.75); color: var(--text-soft); font-size: 9px; font-weight: 800; backdrop-filter: blur(8px); }
.viewer-controls button[aria-pressed="false"] { color: var(--muted); }
.photo-thumbs { min-height: 72px; padding: 9px 12px; display: flex; gap: 8px; overflow-x: auto; border-top: 1px solid var(--border); }
.photo-thumb { flex: 0 0 64px; height: 52px; padding: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.photo-thumb.active { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(215,166,61,.12); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { min-width: 0; overflow-y: auto; padding: 34px 32px; display: flex; flex-direction: column; }
.detail-topline { display: flex; align-items: center; gap: 9px; margin-right: 36px; }
.product-code { color: var(--gold-light); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.copy-code { border: 0; background: none; color: var(--faint); font-size: 9px; text-decoration: underline; }
.detail-info h2 { margin: 14px 0 12px; font-family: var(--font-display); font-size: clamp(28px, 3vw, 38px); line-height: 1.08; letter-spacing: -.035em; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.detail-tag { min-height: 26px; padding: 0 9px; display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: 9px; font-weight: 800; }
.detail-desc { margin: 22px 0; color: var(--muted); font-size: 13px; line-height: 1.75; white-space: pre-line; }
.spec-list { margin: 0 0 24px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.spec-list > div { padding: 12px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.spec-list > div:nth-child(2n) { border-right: 0; }
.spec-list > div:nth-last-child(-n+2) { border-bottom: 0; }
.spec-list dt { color: var(--faint); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.spec-list dd { margin: 5px 0 0; color: var(--text-soft); font-size: 11px; line-height: 1.4; }
.detail-price { margin-top: auto; padding-top: 10px; color: var(--text); font-family: var(--font-display); font-size: 27px; font-weight: 700; }
.detail-price small { display: block; margin-bottom: 4px; color: var(--faint); font-family: var(--font-body); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.detail-price.consult { color: var(--muted); font-size: 15px; }
.whatsapp-btn { margin-top: 16px; min-height: 52px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border-radius: 11px; background: #25d366; color: #07160c; font-size: 13px; font-weight: 800; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translateX(-50%); min-width: 220px; max-width: min(520px, calc(100vw - 32px)); padding: 12px 16px; border: 1px solid var(--border-strong); border-radius: 11px; background: rgba(24,26,30,.96); box-shadow: var(--shadow); color: var(--text-soft); text-align: center; font-size: 12px; animation: toastIn .2s ease both; }
.toast.success { border-color: rgba(53,199,122,.4); color: #91e4b7; }
.toast.error { border-color: rgba(239,98,98,.45); color: #ff9b9b; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } }

/* Admin */
.admin-page { background: var(--bg); }
.admin-header { position: sticky; }
.admin-header-actions { display: flex; align-items: center; gap: 10px; }
.version-pill { padding: 6px 9px; border: 1px solid var(--border); border-radius: 999px; color: var(--faint); font-size: 9px; }
.admin-shell { width: min(1180px, calc(100vw - 40px)); margin: 0 auto; padding: 54px 0 100px; }
.login-view { min-height: calc(100vh - 180px); display: grid; place-items: center; }
.gate-card { width: min(440px, 100%); padding: 38px; border: 1px solid var(--border); border-radius: 24px; background: linear-gradient(145deg, rgba(255,255,255,.025), transparent), var(--surface); box-shadow: var(--shadow); text-align: center; }
.gate-mark { width: 110px; height: 92px; object-fit: contain; margin-bottom: 12px; }
.gate-card h1 { margin: 14px 0 10px; font-family: var(--font-display); font-size: 29px; letter-spacing: -.03em; }
.gate-card > p { margin: 0 0 24px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.gate-card .btn + .btn { margin-top: 10px; }
.login-help { min-height: 18px; margin-top: 14px; color: var(--faint); font-size: 10px; line-height: 1.5; }
.status-icon { width: 48px; height: 48px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; font-weight: 900; }
.status-icon.danger { color: #ff9898; border: 1px solid rgba(239,98,98,.35); background: rgba(239,98,98,.1); }
.panel-topbar { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 26px; }
.panel-topbar h1 { margin: 10px 0 5px; font-family: var(--font-display); font-size: 35px; letter-spacing: -.04em; }
.panel-topbar p { margin: 0; color: var(--faint); font-size: 10px; }
.panel-top-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.admin-stats article { min-height: 95px; padding: 17px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.admin-stats span { color: var(--faint); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.admin-stats strong { font-family: var(--font-display); font-size: 29px; }
.admin-card { border: 1px solid var(--border); border-radius: 18px; background: var(--surface); overflow: hidden; }
.editor-card { margin-bottom: 18px; }
.card-heading { min-height: 88px; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--border); }
.card-heading h2 { margin: 4px 0 0; font-family: var(--font-display); font-size: 22px; letter-spacing: -.025em; }
.section-kicker { color: var(--gold-light); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.form-section { padding: 26px 24px; border-bottom: 1px solid var(--border); }
.form-section-title { margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.form-section-title > span { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(215,166,61,.32); border-radius: 9px; color: var(--gold-light); font-family: var(--font-display); font-size: 10px; }
.form-section-title div { display: grid; gap: 2px; }
.form-section-title strong { font-size: 13px; }
.form-section-title small { color: var(--faint); font-size: 10px; }
.field-grid { display: grid; gap: 16px; }
.field-grid.cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.field-grid.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.field-grid.cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.span-2 { grid-column: span 2; }
.field { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.field label { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.field input, .field textarea, .field select, .admin-filters input, .admin-filters select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--text);
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field input, .field select { height: 44px; padding: 0 12px; }
.field textarea { min-height: 120px; padding: 12px; resize: vertical; line-height: 1.55; }
.field input:focus, .field textarea:focus, .field select:focus, .admin-filters input:focus, .admin-filters select:focus { border-color: var(--gold-dark); box-shadow: 0 0 0 3px rgba(215,166,61,.06); }
.field input.invalid, .field textarea.invalid { border-color: rgba(239,98,98,.65); }
.field small { color: var(--faint); font-size: 9px; line-height: 1.4; }
.field-error { min-height: 0; color: #ff8a8a !important; }
.field-meta { display: flex; justify-content: space-between; gap: 12px; }
.check-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; }
.switch-field { display: flex; align-items: center; gap: 9px; color: var(--text-soft); font-size: 11px; cursor: pointer; }
.switch-field input { position: absolute; opacity: 0; }
.switch-field span { position: relative; width: 34px; height: 19px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--border-strong); transition: background .2s ease; }
.switch-field span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 11px; height: 11px; border-radius: 50%; background: var(--muted); transition: transform .2s ease, background .2s ease; }
.switch-field input:checked + span { background: rgba(215,166,61,.16); border-color: var(--gold-dark); }
.switch-field input:checked + span::after { transform: translateX(15px); background: var(--gold-light); }
.switch-field b { font-weight: 600; }
.upload-field { position: relative; min-width: 0; }
.upload-field > label:first-child { display: grid; gap: 3px; margin-bottom: 8px; }
.upload-field > label strong { color: var(--text-soft); font-size: 10px; }
.upload-field > label small { color: var(--faint); font-size: 9px; font-weight: 400; }
.upload-field > input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.upload-drop { min-height: 120px; padding: 20px; display: grid; place-items: center; align-content: center; gap: 5px; border: 1px dashed var(--border-strong); border-radius: 12px; background: var(--bg-soft); color: var(--muted); text-align: center; cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.upload-drop:hover, .upload-field.dragging .upload-drop { border-color: var(--gold-dark); background: rgba(215,166,61,.04); }
.upload-drop > span { color: var(--gold-light); font-family: var(--font-display); font-size: 17px; }
.upload-drop > b { color: var(--text-soft); font-size: 11px; }
.upload-drop > small { color: var(--faint); font-size: 9px; }
.upload-drop.compact { min-height: 104px; }
.upload-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.upload-preview:empty { display: none; }
.preview-thumb { position: relative; width: 72px; height: 62px; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; }
.preview-thumb img { width: 100%; height: 100%; object-fit: cover; }
.preview-thumb span { position: absolute; left: 3px; right: 3px; bottom: 3px; padding: 2px 3px; overflow: hidden; border-radius: 4px; background: rgba(0,0,0,.68); color: white; font-size: 7px; white-space: nowrap; text-overflow: ellipsis; }
.inline-option { margin-top: 10px; display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; }
.media-existing { margin-bottom: 16px; padding: 14px; display: flex; flex-wrap: wrap; gap: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-soft); }
.existing-media-item { position: relative; width: 84px; }
.existing-media-item img { width: 84px; height: 64px; object-fit: cover; border-radius: 7px; border: 1px solid var(--border); }
.existing-media-item button { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border: 1px solid rgba(239,98,98,.4); border-radius: 50%; background: #251517; color: #ff8c8c; line-height: 1; }
.existing-file-chip { min-height: 34px; padding: 0 10px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--border); border-radius: 9px; color: var(--muted); font-size: 9px; }
.form-footer { padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: rgba(255,255,255,.012); }
.save-status { min-height: 18px; color: var(--muted); font-size: 10px; }
.save-status.success { color: #85dfaf; }
.save-status.error { color: #ff9090; }
.form-actions { display: flex; gap: 8px; }
.list-card { overflow: visible; }
.list-heading { border-radius: 18px 18px 0 0; }
.admin-filters { display: flex; gap: 8px; }
.admin-filters input { width: 230px; height: 38px; padding: 0 11px; }
.admin-filters select { width: 130px; height: 38px; padding: 0 10px; }
.project-list { padding: 14px; }
.admin-row { min-height: 84px; padding: 12px; display: grid; grid-template-columns: 64px minmax(0,1fr) auto; align-items: center; gap: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-soft); }
.admin-row + .admin-row { margin-top: 8px; }
.admin-row-thumb { width: 64px; height: 58px; overflow: hidden; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); }
.admin-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-row-main { min-width: 0; }
.admin-row-main h3 { margin: 0 0 5px; overflow: hidden; color: var(--text-soft); font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.admin-row-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; color: var(--faint); font-size: 9px; }
.status-pill { padding: 3px 7px; border: 1px solid var(--border); border-radius: 999px; }
.status-pill.published { color: #7de0aa; border-color: rgba(53,199,122,.25); }
.status-pill.draft { color: #d5a6a6; border-color: rgba(239,98,98,.22); }
.admin-row-actions { display: flex; gap: 6px; }
.icon-btn { min-height: 34px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--muted); font-size: 9px; font-weight: 800; }
.icon-btn:hover { border-color: var(--border-strong); color: var(--text); }
.icon-btn.danger:hover { border-color: rgba(239,98,98,.45); color: #ff8e8e; }
.confirm-dialog { width: min(410px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--border-strong); border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.confirm-dialog::backdrop { background: rgba(3,4,5,.75); backdrop-filter: blur(6px); }
.confirm-dialog form { padding: 28px; text-align: center; }
.confirm-dialog h2 { margin: 0 0 8px; font-family: var(--font-display); }
.confirm-dialog p { margin: 0 0 22px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr 420px; gap: 36px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .field-grid.cols-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .detail-panel { grid-template-columns: 1fr 390px; }
}

@media (max-width: 820px) {
  :root { --page: min(100% - 32px, 720px); }
  .site-header { height: 66px; padding: 0 16px; }
  .brand-logo { width: 128px; height: 46px; }
  .header-nav { display: none; }
  .menu-toggle { display: block; }
  .mobile-menu { top: 66px; }
  .hero { min-height: auto; padding: 58px 0 52px; grid-template-columns: 1fr; }
  .hero-copy { max-width: none; }
  .hero h1 { font-size: clamp(42px, 11vw, 66px); }
  .printer-stage { min-height: 430px; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip > div { border-right: 0; border-bottom: 1px solid var(--border); }
  .trust-strip > div:last-child { border-bottom: 0; }
  .detail-overlay { align-items: end; padding: 0; }
  .detail-panel { width: 100%; max-height: 94vh; grid-template-columns: 1fr; border-radius: 22px 22px 0 0; overflow-y: auto; }
  .detail-visual { min-height: 500px; border-right: 0; border-bottom: 1px solid var(--border); }
  .detail-info { overflow: visible; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid article { min-height: 170px; }
  .steps-grid h3 { margin-top: 30px; }
  .custom-cta { flex-direction: column; align-items: flex-start; padding: 30px; }
  .site-footer { grid-template-columns: 1fr; gap: 24px; }
  .footer-links { flex-wrap: wrap; }
  .panel-topbar { align-items: flex-start; flex-direction: column; }
  .panel-top-actions { justify-content: flex-start; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .field-grid.cols-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .field-grid.cols-3 .span-2 { grid-column: span 2; }
  .list-heading { align-items: flex-start; flex-direction: column; }
  .admin-filters { width: 100%; }
  .admin-filters input { flex: 1; width: auto; }
}

@media (max-width: 560px) {
  :root { --page: calc(100% - 24px); }
  .hero { padding-top: 42px; }
  .hero h1 { font-size: 43px; }
  .hero-copy > p { font-size: 14px; }
  .hero-actions { display: grid; }
  .hero-actions .btn { width: 100%; }
  .hero-metrics { gap: 12px; justify-content: space-between; }
  .hero-metrics div { max-width: 31%; }
  .hero-metrics strong { font-size: 15px; }
  .hero-metrics span { font-size: 8px; }
  .printer-stage { min-height: 340px; border-radius: 22px; }
  .printer-frame { height: 250px; border-width: 8px; }
  .printer-carriage { top: 52px; transform: scale(.78); transform-origin: top; }
  .print-object { bottom: 45px; font-size: 82px; }
  .catalog-section, .how-section { padding-bottom: 72px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .section-heading h2 { font-size: 34px; }
  .catalog-toolbar { grid-template-columns: 1fr; }
  .sort-box { min-width: 0; }
  .catalog-grid { grid-template-columns: 1fr; }
  .project-card { border-radius: 15px; }
  .card-title { min-height: 0; }
  .custom-cta { margin-bottom: 70px; padding: 24px; border-radius: 20px; }
  .custom-cta .btn { width: 100%; }
  .floating-whatsapp { right: 14px; bottom: 14px; width: 48px; height: 48px; }
  .floating-cart { right: 14px; bottom: 72px; width: 48px; height: 48px; }
  .cart-panel { padding: 22px; border-radius: 20px; }
  .detail-visual { min-height: 430px; }
  .media-stage { min-height: 350px; }
  .detail-info { padding: 26px 20px 24px; }
  .spec-list { grid-template-columns: 1fr; }
  .spec-list > div { border-right: 0; }
  .spec-list > div:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .spec-list > div:last-child { border-bottom: 0; }
  .viewer-controls { right: auto; }
  .viewer-controls button { font-size: 8px; }
  .admin-header .version-pill { display: none; }
  .admin-shell { width: calc(100vw - 20px); padding-top: 26px; }
  .gate-card { padding: 30px 22px; }
  .admin-stats { gap: 8px; }
  .admin-stats article { min-height: 82px; padding: 14px; }
  .card-heading, .form-section, .form-footer { padding-left: 16px; padding-right: 16px; }
  .card-heading { align-items: flex-start; flex-direction: column; }
  .field-grid.cols-2, .field-grid.cols-3, .field-grid.cols-4 { grid-template-columns: 1fr; }
  .field-grid .span-2, .field-grid.cols-3 .span-2 { grid-column: span 1; }
  .form-footer { align-items: stretch; flex-direction: column; }
  .form-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .form-actions .btn:only-child { grid-column: 1/-1; }
  .admin-filters { flex-direction: column; }
  .admin-filters input, .admin-filters select { width: 100%; }
  .admin-row { grid-template-columns: 54px minmax(0,1fr); }
  .admin-row-thumb { width: 54px; height: 54px; }
  .admin-row-actions { grid-column: 1/-1; justify-content: flex-end; padding-top: 8px; border-top: 1px solid var(--border); }
}

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


.drive-setup-banner { margin: 0 0 18px; padding: 16px 18px; border: 1px solid rgba(214,169,65,.32); border-radius: 14px; background: linear-gradient(135deg, rgba(214,169,65,.09), rgba(255,255,255,.025)); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.drive-setup-banner > div { min-width: 0; display: grid; gap: 5px; }
.drive-setup-banner strong { color: var(--gold); font-size: 13px; }
.drive-setup-banner span { color: var(--muted); font-size: 11px; line-height: 1.5; }
.drive-setup-banner code { display: block; max-width: 100%; overflow: auto; padding: 8px 10px; border-radius: 8px; background: rgba(0,0,0,.26); color: var(--text); font-size: 11px; white-space: nowrap; }
@media (max-width: 680px) { .drive-setup-banner { align-items: stretch; flex-direction: column; } .drive-setup-banner .btn { width: 100%; } }

/* Admin visual catalog — mirrors the public storefront */
.admin-order-help {
  margin: 0;
  padding: 14px 24px 0;
  color: var(--faint);
  font-size: 10px;
  line-height: 1.5;
}
.admin-catalog-grid {
  padding: 18px 24px 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.admin-project-card {
  cursor: default;
  user-select: none;
  transition: transform .18s ease, border-color .18s ease, opacity .18s ease;
}
.admin-project-card.is-draft { opacity: .68; }
.admin-project-card.dragging { opacity: .38; transform: scale(.98); }
.admin-project-card.drag-target { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(215,166,61,.12); }
.admin-card-topbar {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 4;
  display: grid;
  grid-template-columns: 34px 1fr 38px;
  align-items: center;
  gap: 7px;
  pointer-events: none;
}
.admin-card-topbar button { pointer-events: auto; }
.admin-drag-handle,
.admin-pencil {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  background: rgba(8,9,11,.82);
  color: var(--text);
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}
.admin-drag-handle { cursor: grab; letter-spacing: -4px; padding-right: 4px; }
.admin-drag-handle:active { cursor: grabbing; }
.admin-pencil {
  width: 38px;
  height: 38px;
  justify-self: end;
  border-color: rgba(215,166,61,.48);
  background: rgba(20,16,8,.88);
  color: var(--gold-light);
  font-size: 20px;
}
.admin-position {
  justify-self: start;
  min-width: 34px;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(8,9,11,.75);
  color: var(--text-soft);
  font-size: 9px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}
.admin-project-card .card-badges { top: 56px; }
.draft-badge {
  color: #ffd0d0;
  border-color: rgba(239,98,98,.34) !important;
  background: rgba(64,19,23,.8) !important;
}
.admin-card-actions {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}
.admin-card-actions button {
  min-width: 0;
  height: 32px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 15px;
  font-weight: 900;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.admin-card-actions button:hover {
  border-color: var(--gold-dark);
  background: rgba(215,166,61,.07);
  color: var(--gold-light);
}
.admin-card-actions button.danger:hover {
  border-color: rgba(239,98,98,.5);
  background: rgba(239,98,98,.08);
  color: #ff9d9d;
}
.admin-catalog-grid > .empty-state { grid-column: 1 / -1; }

@media (max-width: 1020px) {
  .admin-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .admin-catalog-grid { padding: 14px; grid-template-columns: 1fr; }
  .admin-order-help { padding: 12px 14px 0; }
  .admin-project-card .card-media { min-height: 235px; }
  .admin-card-actions button { height: 36px; }
}


/* Prévia 3D no editor — v0.5.2 */
.primary-model-upload .primary-model-drop {
  min-height: 92px;
  border-color: rgba(215,166,61,.34);
  background: linear-gradient(135deg, rgba(215,166,61,.08), rgba(215,166,61,.02));
}
.primary-model-upload .primary-model-drop > span { min-width: 48px; color: var(--gold); }
.model-preview-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.model-preview-heading {
  min-height: 58px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--border);
}
.model-preview-heading > div { min-width: 0; display: grid; gap: 4px; }
.model-preview-heading strong { color: var(--text); font-size: 11px; }
.model-preview-heading small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.model-preview-badge {
  flex: 0 0 auto;
  min-width: 42px;
  padding: 7px 9px;
  border: 1px solid rgba(215,166,61,.35);
  border-radius: 999px;
  background: rgba(215,166,61,.1);
  color: var(--gold);
  font-size: 9px;
  font-weight: 900;
  text-align: center;
}
.model-preview-stage {
  position: relative;
  height: clamp(260px, 42vw, 430px);
  min-height: 260px;
  background: radial-gradient(circle at 50% 38%, rgba(215,166,61,.12), transparent 42%), #0d0f13;
}
.model-preview-stage canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.model-preview-status {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  pointer-events: none;
}
.model-preview-status.error { color: #ff9b92; }
.model-preview-actions {
  padding: 10px 12px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--border);
}
.model-preview-actions .btn { min-height: 34px; padding-inline: 12px; }
.additional-models {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,.015);
}
.additional-models > summary {
  padding: 13px 14px;
  cursor: pointer;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  list-style-position: inside;
}
.additional-models[open] > summary { border-bottom: 1px solid var(--border); color: var(--text-soft); }
.additional-model-grid { padding: 14px; }
@media (max-width: 680px) {
  .model-preview-stage { height: 300px; }
  .model-preview-actions { justify-content: stretch; }
  .model-preview-actions .btn { flex: 1; }
}

/* ---------- seletor de placas do visualizador 3D (v0.7.9) ---------- */
.viewer-plates {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  padding: 8px 10px 0;
}

.viewer-plate-chip {
  border: 1px solid rgba(140, 130, 110, .34);
  background: rgba(255, 255, 255, .08);
  color: inherit;
  border-radius: 999px;
  padding: 5px 13px;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.viewer-plate-chip:hover { border-color: rgba(180, 131, 42, .6); }

.viewer-plate-chip.active {
  background: #b4832a;
  border-color: #b4832a;
  color: #fff;
}

.slice-light .viewer-plate-chip { background: rgba(255, 255, 255, .7); }

/* ====== direction.css ====== */
/*
 * Islice3D — direção visual 0.4.0
 * Camada visual aplicada sobre o núcleo funcional da vitrine e do painel.
 */
:root {
  --bg: #090a0c;
  --bg-soft: #0e1013;
  --surface: #121418;
  --surface-2: #17191e;
  --surface-3: #1d2025;
  --border: #272a30;
  --border-strong: #3b3f47;
  --text: #f4f4f1;
  --text-soft: #c3c4c7;
  --muted: #8d9097;
  --faint: #5f6269;
  --gold: #d7a63d;
  --gold-light: #f0c760;
  --gold-dark: #7e5d1b;
  --page: min(1240px, calc(100vw - 48px));
}

body.direction-v040 {
  background:
    radial-gradient(circle at 86% 7%, rgba(215,166,61,.055), transparent 26rem),
    linear-gradient(180deg, #090a0c 0%, #0a0b0e 58%, #090a0c 100%);
  overflow-x: hidden;
}

body.direction-v040::before {
  opacity: .14;
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 48%);
}

.direction-v040 .visual-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  height: 78px;
  padding-inline: max(24px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(9,10,12,.84), rgba(9,10,12,.18));
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  transition: height .25s ease, background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}

.direction-v040 .visual-header.is-scrolled,
.direction-v040 .admin-header {
  height: 68px;
  border-bottom-color: rgba(255,255,255,.075);
  background: rgba(9,10,12,.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.direction-v040 .brand-logo {
  width: 142px;
  height: 44px;
}

.direction-v040 .header-nav {
  gap: 26px;
  font-size: 12px;
  color: var(--text-soft);
}

.direction-v040 .header-cta {
  min-height: 40px;
  padding-inline: 18px;
  display: inline-flex;
  align-items: center;
  border: 0;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #181204;
  box-shadow: 0 10px 32px rgba(215,166,61,.13);
}

.direction-v040 .header-nav > a:not(.header-cta)::after {
  bottom: -9px;
}

.direction-v040 .btn {
  min-height: 46px;
  border-radius: 999px;
  padding: 0 23px;
  font-size: 13px;
  letter-spacing: -.01em;
  transition: transform .25s cubic-bezier(.16,1,.3,1), border-color .25s ease, background .25s ease, filter .25s ease;
}

.direction-v040 .btn:hover {
  transform: translateY(-2px);
}

.direction-v040 .btn-primary {
  border: 0;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #181204;
  box-shadow: 0 14px 34px rgba(215,166,61,.14);
}

.direction-v040 .btn-secondary {
  border-color: var(--border-strong);
  background: rgba(255,255,255,.015);
}

/* Hero */
.direction-v040 .visual-hero {
  width: var(--page);
  min-height: 100svh;
  padding: 104px 0 42px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: 34px;
  align-items: center;
}

.direction-v040 .visual-hero .hero-copy {
  max-width: 690px;
  position: relative;
  z-index: 4;
}

.direction-v040 .eyebrow {
  gap: 11px;
  margin-bottom: 22px;
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .135em;
}

.direction-v040 .eyebrow span {
  width: 22px;
}

.direction-v040 .visual-hero h1 {
  margin: 0 0 23px;
  font-size: clamp(42px, 5.7vw, 76px);
  line-height: 1.01;
  letter-spacing: -.045em;
  font-weight: 600;
}

.direction-v040 .visual-hero h1 strong {
  font-weight: 600;
  color: var(--gold-light);
}

.direction-v040 .visual-hero .hero-copy > p {
  max-width: 47ch;
  margin: 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.7;
}

.direction-v040 .hero-actions {
  margin-top: 32px;
}

.direction-v040 .hero-metrics {
  max-width: 600px;
  margin-top: 42px;
  padding-top: 24px;
  gap: 36px;
  border-top-color: rgba(255,255,255,.075);
}

.direction-v040 .hero-metrics strong {
  font-size: 17px;
}

.direction-v040 .hero-metrics span {
  max-width: 110px;
  color: var(--faint);
  font-size: 9px;
  line-height: 1.45;
}

.direction-v040 .hero-stage {
  position: relative;
  min-width: 0;
  height: min(62vh, 520px);
  max-height: 520px;
  isolation: isolate;
}

.direction-v040 #hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  filter: drop-shadow(0 38px 46px rgba(0,0,0,.36));
}

.direction-v040 .hero-stage-glow {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 66%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215,166,61,.12), rgba(215,166,61,.025) 46%, transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}

.direction-v040 .stage-caption {
  position: absolute;
  left: 50%;
  bottom: 2px;
  z-index: 4;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  color: var(--faint);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.direction-v040 .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 0 6px rgba(240,199,96,.07);
  animation: slicePulse 1.7s ease-in-out infinite;
}

@keyframes slicePulse {
  50% { opacity: .42; transform: scale(.78); }
}

/* Diferenciais — fluxo normal, sem prender a rolagem */
.direction-v040 .story {
  position: relative;
  width: var(--page);
  height: auto;
  margin: 0 auto 92px;
}

.direction-v040 .story-pin {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  overflow: visible;
}

.direction-v040 .story-pin::before { display: none; }

.direction-v040 .story-panel {
  position: relative;
  inset: auto;
  min-width: 0;
  min-height: 238px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,.022), transparent 58%), var(--surface);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.direction-v040 .story-panel:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 18px 42px rgba(0,0,0,.11);
}

.direction-v040 .story-panel.active { opacity: 1; transform: none; }
.direction-v040 .story-panel.active:hover { transform: translateY(-4px); }

.direction-v040 .story-tag {
  margin-bottom: 34px;
  color: var(--gold-light);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.direction-v040 .story-panel h2 {
  max-width: 16ch;
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.06;
  letter-spacing: -.035em;
  font-weight: 600;
}

.direction-v040 .story-panel p {
  max-width: 40ch;
  margin: auto 0 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.65;
}

.direction-v040 .story-progress { display: none !important; }

/* Catalog */
.direction-v040 .catalog-section,
.direction-v040 .how-section {
  width: var(--page);
}

.direction-v040 .visual-catalog {
  padding-top: 20px;
  padding-bottom: 132px;
}

.direction-v040 .section-heading {
  align-items: flex-end;
  margin-bottom: 38px;
}

.direction-v040 .section-heading h2 {
  margin-top: 0;
  font-size: clamp(29px, 3.8vw, 43px);
  font-weight: 600;
  letter-spacing: -.035em;
}

.direction-v040 .section-heading p {
  max-width: 610px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.direction-v040 .catalog-count {
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.direction-v040 .catalog-toolbar {
  margin-bottom: 16px;
  padding: 10px;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(18,20,24,.7);
  box-shadow: 0 18px 54px rgba(0,0,0,.14);
}

.direction-v040 .search-box,
.direction-v040 .sort-box {
  min-height: 46px;
  border-color: transparent;
  background: var(--bg-soft);
}

.direction-v040 .search-box:focus-within,
.direction-v040 .sort-box:focus-within {
  border-color: rgba(215,166,61,.48);
  box-shadow: 0 0 0 3px rgba(215,166,61,.055);
}

.direction-v040 .filters-bar {
  margin: 0 0 26px;
  gap: 8px;
}

.direction-v040 .filter-chip {
  min-height: 36px;
  padding-inline: 14px;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
}

.direction-v040 .filter-chip.active {
  border-color: rgba(240,199,96,.44);
  background: rgba(215,166,61,.08);
  color: var(--gold-light);
}

.direction-v040 .catalog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  perspective: 1200px;
}

.direction-v040 .project-card {
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 14px 44px rgba(0,0,0,.08);
  transform-style: preserve-3d;
  will-change: transform;
}

.direction-v040 .project-card.reveal-pending {
  opacity: 0;
  transform: translateY(34px);
}

.direction-v040 .project-card.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .6s ease, transform .7s cubic-bezier(.16,1,.3,1), border-color .3s ease, box-shadow .3s ease;
}

.direction-v040 .project-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 22px 58px rgba(0,0,0,.26);
}

.direction-v040 .card-media {
  margin: 13px 13px 0;
  overflow: hidden;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 45%, rgba(255,255,255,.035), transparent 54%),
    var(--surface-2);
}

.direction-v040 .card-media img {
  object-fit: contain;
  padding: 24px;
  filter: drop-shadow(0 16px 22px rgba(0,0,0,.36));
}

.direction-v040 .card-body {
  padding: 18px 20px 20px;
}

.direction-v040 .card-category {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.direction-v040 .card-title {
  margin-top: 7px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.015em;
}

.direction-v040 .card-footer {
  margin-top: 18px;
}

.direction-v040 .card-price {
  color: var(--gold-light);
  font-size: 14px;
}

.direction-v040 .card-open {
  color: var(--faint);
  font-size: 10px;
}

.direction-v040 .card-badge {
  border-color: rgba(255,255,255,.13);
  background: rgba(9,10,12,.76);
  backdrop-filter: blur(10px);
}

.direction-v040 .card-badge.featured {
  border-color: rgba(240,199,96,.32);
  background: rgba(58,43,12,.72);
  color: var(--gold-light);
}

.direction-v040 .card-code {
  bottom: 12px;
  left: 12px;
  border-color: rgba(255,255,255,.11);
  background: rgba(9,10,12,.72);
}

/* Process and CTA */
.direction-v040 .how-section {
  padding-bottom: 122px;
}

.direction-v040 .steps-grid {
  gap: 18px;
}

.direction-v040 .steps-grid article {
  min-height: 220px;
  padding: 30px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255,255,255,.024), transparent 58%), var(--surface);
}

.direction-v040 .steps-grid article > span {
  color: var(--gold-light);
}

.direction-v040 .steps-grid h3 {
  margin-top: 54px;
  font-size: 18px;
}

.direction-v040 .cta-band {
  width: var(--page);
  margin: 0 auto 100px;
  padding: 76px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 10%, rgba(215,166,61,.15), transparent 50%),
    var(--surface);
  overflow: hidden;
}

.direction-v040 .cta-band > div {
  max-width: 760px;
}

.direction-v040 .cta-band h2 {
  margin: 0 0 15px;
  font-size: clamp(29px, 4vw, 45px);
  font-weight: 600;
  letter-spacing: -.04em;
}

.direction-v040 .cta-band p {
  max-width: 58ch;
  margin: 0 auto 29px;
  color: var(--text-soft);
  line-height: 1.7;
}

.direction-v040 .site-footer {
  padding-top: 42px;
}

.direction-v040 .floating-whatsapp {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.92);
  pointer-events: none;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #181204;
  box-shadow: 0 18px 46px rgba(0,0,0,.42);
  transition: opacity .22s ease, visibility .22s ease, transform .28s cubic-bezier(.16,1,.3,1);
}

.direction-v040 .floating-whatsapp.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Detail view */
.direction-v040 .detail-overlay {
  background: rgba(3,4,5,.84);
  backdrop-filter: blur(14px);
}

.direction-v040 .detail-panel {
  border-radius: 26px;
  background: var(--surface);
}

.direction-v040 .detail-visual,
.direction-v040 .detail-photo img {
  background: var(--bg-soft);
}

.direction-v040 .detail-info h2 {
  letter-spacing: -.04em;
}

.direction-v040 .whatsapp-btn {
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #181204;
}

/* Developer / admin */
.direction-v040.developer-mode-page {
  background:
    radial-gradient(circle at 80% 0%, rgba(215,166,61,.075), transparent 30rem),
    var(--bg);
}

.direction-v040 .admin-header {
  position: fixed;
}

.direction-v040 .admin-shell {
  width: min(1240px, calc(100vw - 48px));
  padding-top: 106px;
}

.direction-v040 .developer-pill,
.direction-v040 .version-pill {
  min-height: 30px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.018);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.direction-v040 .developer-pill span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 0 5px rgba(240,199,96,.06);
}

.direction-v040 .developer-login {
  min-height: calc(100svh - 106px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr);
  align-items: center;
  gap: 70px;
}

.direction-v040 .login-visual {
  position: relative;
  min-height: 510px;
  display: grid;
  place-items: center;
}

.direction-v040 .login-visual::before {
  content: "";
  position: absolute;
  width: min(470px, 78%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215,166,61,.15), transparent 68%);
  filter: blur(12px);
}

.direction-v040 .login-orbit {
  position: absolute;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 50%;
  transform: rotateX(68deg) rotateZ(18deg);
  animation: orbitSpin 16s linear infinite;
}

.direction-v040 .orbit-two {
  width: 255px;
  height: 255px;
  border-color: rgba(215,166,61,.17);
  animation-direction: reverse;
  animation-duration: 11s;
}

@keyframes orbitSpin { to { transform: rotateX(68deg) rotateZ(378deg); } }

.direction-v040 .login-cube {
  position: relative;
  z-index: 2;
  width: 120px;
  height: 120px;
  transform-style: preserve-3d;
  transform: rotateX(-20deg) rotateY(35deg);
  animation: cubeFloat 5.2s ease-in-out infinite;
}

.direction-v040 .login-cube span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(240,199,96,.54);
  background: linear-gradient(145deg, rgba(240,199,96,.34), rgba(126,93,27,.11));
  box-shadow: inset 0 0 28px rgba(240,199,96,.05);
}

.direction-v040 .login-cube span:nth-child(1) { transform: translateZ(60px); }
.direction-v040 .login-cube span:nth-child(2) { transform: rotateY(180deg) translateZ(60px); }
.direction-v040 .login-cube span:nth-child(3) { transform: rotateY(90deg) translateZ(60px); }
.direction-v040 .login-cube span:nth-child(4) { transform: rotateY(-90deg) translateZ(60px); }
.direction-v040 .login-cube span:nth-child(5) { transform: rotateX(90deg) translateZ(60px); }
.direction-v040 .login-cube span:nth-child(6) { transform: rotateX(-90deg) translateZ(60px); }

@keyframes cubeFloat {
  0%,100% { transform: translateY(-8px) rotateX(-20deg) rotateY(35deg); }
  50% { transform: translateY(12px) rotateX(-12deg) rotateY(70deg); }
}

.direction-v040 .login-layer {
  position: absolute;
  width: 220px;
  height: 18px;
  border: 1px solid rgba(240,199,96,.24);
  background: rgba(215,166,61,.06);
  transform: perspective(480px) rotateX(65deg);
  border-radius: 50%;
}

.direction-v040 .layer-one { transform: translateY(104px) perspective(480px) rotateX(65deg); }
.direction-v040 .layer-two { width: 180px; transform: translateY(85px) perspective(480px) rotateX(65deg); }
.direction-v040 .layer-three { width: 140px; transform: translateY(67px) perspective(480px) rotateX(65deg); }

.direction-v040 .gate-card {
  width: 100%;
  max-width: 470px;
  padding: 44px;
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.028), transparent 60%),
    rgba(18,20,24,.92);
  box-shadow: 0 34px 90px rgba(0,0,0,.34);
}

.direction-v040 .gate-mark {
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
}

.direction-v040 .gate-card h1 {
  font-size: 34px;
  font-weight: 600;
}

.direction-v040 .gate-card > p {
  margin-bottom: 28px;
  font-size: 13px;
}

.direction-v040 .login-help {
  min-height: 38px;
  margin-top: 16px;
  color: var(--faint);
  font-size: 9px;
  line-height: 1.5;
}

.direction-v040 .login-security {
  margin-top: 8px;
  color: var(--faint);
  font-size: 9px;
}

.direction-v040 .login-security span {
  margin-right: 5px;
  color: var(--gold-light);
}

.direction-v040 .developer-hero {
  min-height: 250px;
  margin-bottom: 18px;
  padding: 44px 46px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background:
    radial-gradient(circle at 82% 20%, rgba(215,166,61,.16), transparent 28rem),
    linear-gradient(145deg, rgba(255,255,255,.025), transparent 60%),
    var(--surface);
  overflow: hidden;
}

.direction-v040 .developer-hero h1 {
  max-width: 760px;
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 600;
}

.direction-v040 .developer-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.direction-v040 .panel-top-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.direction-v040 .admin-stats {
  gap: 14px;
  margin-bottom: 18px;
}

.direction-v040 .admin-stats article {
  min-height: 112px;
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,.018), transparent), var(--surface);
}

.direction-v040 .admin-stats strong {
  font-size: 33px;
  font-weight: 600;
}

.direction-v040 .admin-card {
  border-radius: 22px;
  background: var(--surface);
}

.direction-v040 .editor-card {
  margin-bottom: 18px;
  scroll-margin-top: 84px;
}

.direction-v040 .card-heading {
  padding: 24px 26px;
}

.direction-v040 .card-heading h2 {
  font-size: 24px;
  font-weight: 600;
}

.direction-v040 .form-section {
  padding: 28px 26px;
}

.direction-v040 .form-section-title > span {
  border-color: rgba(240,199,96,.3);
  background: rgba(215,166,61,.065);
  color: var(--gold-light);
}

.direction-v040 .field input,
.direction-v040 .field textarea,
.direction-v040 .field select,
.direction-v040 .admin-filters input,
.direction-v040 .admin-filters select {
  border-radius: 11px;
  background: #0f1114;
}

.direction-v040 .field input,
.direction-v040 .field select {
  height: 48px;
}

.direction-v040 .upload-drop {
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.018), transparent),
    var(--bg-soft);
}

.direction-v040 .form-footer {
  padding: 20px 26px;
  background: rgba(14,16,19,.75);
}

.direction-v040 .developer-catalog-card {
  overflow: visible;
}

.direction-v040 .admin-catalog-grid {
  gap: 18px;
}

.direction-v040 .admin-project-card .card-media {
  margin-top: 13px;
}

.direction-v040 .admin-card-topbar {
  top: 22px;
  left: 22px;
  right: 22px;
}

.direction-v040 .admin-pencil {
  border-radius: 50%;
  background: rgba(30,23,8,.9);
}

.direction-v040 .admin-drag-handle {
  border-radius: 50%;
}

.direction-v040 .admin-position {
  background: rgba(9,10,12,.8);
}

.direction-v040 .admin-card-actions {
  grid-template-columns: repeat(7, minmax(32px, 1fr));
}

.direction-v040 .admin-card-actions button {
  height: 36px;
  border-radius: 10px;
}

.direction-v040 .drive-setup-banner,
.direction-v040 .demo-banner {
  border-radius: 16px;
}

.direction-v040 .confirm-dialog {
  border-radius: 22px;
}

/* Responsive */
@media (max-width: 1050px) {
  .direction-v040 .visual-hero {
    grid-template-columns: 1fr 430px;
  }

  .direction-v040 .catalog-grid,
  .direction-v040 .admin-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .direction-v040 .developer-login {
    gap: 34px;
  }

  .direction-v040 .login-visual {
    min-height: 430px;
  }
}

@media (max-width: 860px) {
  :root { --page: min(100% - 32px, 1240px); }

  .direction-v040 .visual-header {
    height: 66px;
    padding-inline: 16px;
    background: rgba(9,10,12,.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .direction-v040 .brand-logo {
    width: 126px;
  }

  .direction-v040 .visual-hero {
    min-height: auto;
    padding-top: 102px;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .direction-v040 .hero-stage {
    order: -1;
    height: 340px;
  }

  .direction-v040 .visual-hero h1 {
    font-size: clamp(40px, 10vw, 60px);
  }

  .direction-v040 .story {
    height: auto;
    margin-bottom: 64px;
  }

  .direction-v040 .story-pin {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .direction-v040 .story-panel {
    min-height: 0;
    padding: 24px;
  }

  .direction-v040 .developer-login {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .direction-v040 .login-visual {
    min-height: 310px;
  }

  .direction-v040 .login-orbit {
    width: 250px;
    height: 250px;
  }

  .direction-v040 .orbit-two {
    width: 185px;
    height: 185px;
  }

  .direction-v040 .login-cube {
    width: 86px;
    height: 86px;
  }

  .direction-v040 .login-cube span:nth-child(1) { transform: translateZ(43px); }
  .direction-v040 .login-cube span:nth-child(2) { transform: rotateY(180deg) translateZ(43px); }
  .direction-v040 .login-cube span:nth-child(3) { transform: rotateY(90deg) translateZ(43px); }
  .direction-v040 .login-cube span:nth-child(4) { transform: rotateY(-90deg) translateZ(43px); }
  .direction-v040 .login-cube span:nth-child(5) { transform: rotateX(90deg) translateZ(43px); }
  .direction-v040 .login-cube span:nth-child(6) { transform: rotateX(-90deg) translateZ(43px); }

  .direction-v040 .developer-hero {
    min-height: 0;
    padding: 34px;
    align-items: flex-start;
    flex-direction: column;
  }

  .direction-v040 .panel-top-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  :root { --page: calc(100vw - 28px); }

  .direction-v040 .header-nav { display: none; }
  .direction-v040 .menu-toggle { display: block; }

  .direction-v040 .mobile-menu {
    top: 72px;
    left: 14px;
    right: 14px;
    border-radius: 16px;
    background: rgba(18,20,24,.96);
  }

  .direction-v040 .visual-hero {
    padding-top: 92px;
  }

  .direction-v040 .hero-stage {
    height: 280px;
  }

  .direction-v040 .visual-hero h1 {
    font-size: clamp(36px, 12vw, 51px);
  }

  .direction-v040 .visual-hero .hero-copy > p {
    font-size: 14px;
  }

  .direction-v040 .hero-actions,
  .direction-v040 .hero-actions .btn {
    width: 100%;
  }

  .direction-v040 .hero-actions .btn {
    justify-content: center;
  }

  .direction-v040 .hero-metrics {
    gap: 18px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .direction-v040 .hero-metrics span {
    max-width: none;
  }

  .direction-v040 .story-panel h2 {
    max-width: none;
    font-size: clamp(26px, 7vw, 34px);
  }

  .direction-v040 .story-panel p {
    max-width: none;
    font-size: 14px;
  }

  .direction-v040 .catalog-grid,
  .direction-v040 .admin-catalog-grid {
    grid-template-columns: 1fr;
  }

  .direction-v040 .section-heading {
    align-items: flex-start;
  }

  .direction-v040 .catalog-toolbar {
    padding: 8px;
  }

  .direction-v040 .sort-box {
    width: 100%;
  }

  .direction-v040 .project-card:hover {
    transform: none;
  }

  .direction-v040 .cta-band {
    padding: 52px 24px;
  }

  .direction-v040 .site-footer {
    text-align: center;
  }

  .direction-v040 .footer-links {
    justify-content: center;
  }

  .direction-v040 .admin-header-actions .developer-pill,
  .direction-v040 .admin-header-actions .version-pill {
    display: none;
  }

  .direction-v040 .admin-shell {
    width: calc(100vw - 24px);
    padding-top: 86px;
  }

  .direction-v040 .login-visual {
    min-height: 245px;
  }

  .direction-v040 .gate-card {
    padding: 30px 22px;
  }

  .direction-v040 .developer-hero {
    padding: 28px 22px;
    border-radius: 20px;
  }

  .direction-v040 .developer-hero h1 {
    font-size: 34px;
  }

  .direction-v040 .panel-top-actions,
  .direction-v040 .panel-top-actions .btn {
    width: 100%;
  }

  .direction-v040 .panel-top-actions .btn {
    justify-content: center;
  }

  .direction-v040 .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .direction-v040 .card-heading,
  .direction-v040 .form-section,
  .direction-v040 .form-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .direction-v040 .admin-filters {
    width: 100%;
  }

  .direction-v040 .admin-filters input,
  .direction-v040 .admin-filters select {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .direction-v040 .live-dot,
  .direction-v040 .login-orbit,
  .direction-v040 .login-cube {
    animation: none !important;
  }

  .direction-v040 .story-panel,
  .direction-v040 .project-card {
    transition-duration: .01ms !important;
  }
}

/* ====== slice-light.css ====== */
/* Islice3D 0.5.0 — identidade clara em creme, preto e dourado */
:root {
  --bg: #f7f3e9;
  --bg-soft: #f0eadf;
  --surface: #fffdf8;
  --surface-2: #f5efe4;
  --surface-3: #ebe3d4;
  --border: #ddd5c7;
  --border-strong: #bfb4a2;
  --text: #171716;
  --text-soft: #4f4b44;
  --muted: #746e64;
  --faint: #989083;
  --gold: #c6922f;
  --gold-light: #d9ab4b;
  --gold-dark: #7f5b18;
  --danger: #b94136;
}

html { scroll-behavior: smooth; }
body.slice-light {
  color: var(--text);
  background:
    radial-gradient(circle at 90% 5%, rgba(198,146,47,.12), transparent 28rem),
    radial-gradient(circle at 8% 28%, rgba(255,255,255,.92), transparent 34rem),
    linear-gradient(180deg, #fbf8f1 0%, #f6f1e6 54%, #f9f6ef 100%);
}
body.slice-light::before {
  opacity: .22;
  background-image: linear-gradient(rgba(30,28,24,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(30,28,24,.03) 1px, transparent 1px);
}

.slice-light .visual-header {
  background: linear-gradient(180deg, rgba(251,248,241,.95), rgba(251,248,241,.7));
}
.slice-light .visual-header.is-scrolled,
.slice-light .admin-header {
  border-bottom-color: rgba(42,38,31,.1);
  background: rgba(251,248,241,.91);
  box-shadow: 0 10px 34px rgba(62,52,35,.06);
}
.slice-light .brand-logo { object-fit: contain; }
.slice-light .header-nav { color: var(--text-soft); }
.slice-light .header-nav > a:not(.header-cta):hover { color: var(--text); }
.slice-light .header-cta,
.slice-light .btn-primary,
.slice-light .whatsapp-btn,
.slice-light .floating-whatsapp {
  color: #1f1708;
  background: linear-gradient(135deg, #e3ba5e, #bf8825);
  box-shadow: 0 14px 34px rgba(161,112,25,.18);
}
.slice-light .btn-secondary {
  border-color: var(--border);
  background: rgba(255,253,248,.72);
  color: var(--text);
}
.slice-light .btn-secondary:hover { border-color: var(--gold); background: #fffdf8; }
.slice-light .btn-ghost { color: var(--muted); }
.slice-light .btn-ghost:hover { color: var(--text); background: var(--surface-2); }

.slice-light .mobile-menu {
  border-color: var(--border);
  background: rgba(255,253,248,.98);
  box-shadow: 0 20px 50px rgba(55,44,25,.16);
}
.slice-light .mobile-menu a { color: var(--text); }
.slice-light .menu-toggle span { background: var(--text); }

.slice-light .eyebrow { color: var(--gold-dark); }
.slice-light .eyebrow b { font: inherit; }
.slice-light .eyebrow span { background: currentColor; }
.slice-light .visual-hero h1 { color: var(--text); }
.slice-light .visual-hero h1 strong { color: var(--gold-dark); }
.slice-light .visual-hero .hero-copy > p { color: var(--text-soft); }
.slice-light .hero-metrics { border-top-color: rgba(34,30,24,.11); }
.slice-light .hero-metrics strong { color: var(--text); }
.slice-light .hero-metrics span { color: var(--muted); }
.slice-light .hero-stage-glow {
  background: radial-gradient(circle, rgba(198,146,47,.2), rgba(198,146,47,.06) 46%, transparent 72%);
}
.slice-light #hero-canvas { filter: drop-shadow(0 38px 38px rgba(75,58,26,.16)); }
.slice-light .stage-caption { color: var(--muted); }
.slice-light .live-dot { background: var(--gold); box-shadow: 0 0 0 6px rgba(198,146,47,.13); }

.slice-light .story-pin::before { background: radial-gradient(circle, rgba(198,146,47,.12), transparent 68%); }
.slice-light .story-tag { color: var(--gold-dark); }
.slice-light .story-panel h2 { color: var(--text); }
.slice-light .story-panel p { color: var(--text-soft); }
.slice-light .story-progress span { background: #c7beaf; }
.slice-light .story-progress span.active { background: var(--gold); }

/* Banner de produto em destaque */
.slice-light .showcase-section {
  width: var(--page);
  min-height: 470px;
  margin: 18px auto 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  border: 1px solid var(--border);
  border-radius: 30px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(74,58,31,.1);
}
.slice-light .showcase-media {
  min-height: 470px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, rgba(216,171,75,.24), transparent 44%),
    linear-gradient(135deg, #f0e8d9, #fbf8f1);
}
.slice-light .showcase-media::before {
  content: "";
  position: absolute;
  inset: 32px;
  border: 1px solid rgba(126,91,24,.16);
  border-radius: 24px;
}
.slice-light .showcase-media img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  padding: 26px;
  filter: drop-shadow(0 26px 30px rgba(58,44,20,.18));
  transition: transform .7s cubic-bezier(.16,1,.3,1);
}
.slice-light .showcase-section:hover .showcase-media img { transform: translateY(-7px) rotate(-1deg) scale(1.025); }
.slice-light .showcase-media-shine {
  position: absolute;
  inset: -30%;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.62) 49%, transparent 60%);
  transform: translateX(-70%);
  transition: transform 1s cubic-bezier(.16,1,.3,1);
  pointer-events: none;
}
.slice-light .showcase-section:hover .showcase-media-shine { transform: translateX(70%); }
.slice-light .showcase-chip,
.slice-light .showcase-code {
  position: absolute;
  z-index: 2;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(126,91,24,.23);
  border-radius: 999px;
  background: rgba(255,253,248,.82);
  color: var(--gold-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  backdrop-filter: blur(12px);
}
.slice-light .showcase-chip { top: 28px; left: 28px; padding: 0 14px; }
.slice-light .showcase-code { right: 28px; bottom: 28px; padding: 0 13px; color: var(--text-soft); }
.slice-light .showcase-copy {
  padding: 58px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.slice-light .showcase-copy h2 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.slice-light .showcase-copy > p { margin: 0; color: var(--text-soft); line-height: 1.75; }
.slice-light .showcase-product-meta {
  min-height: 22px;
  margin: 24px 0;
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .065em;
  text-transform: uppercase;
}

.slice-light .section-heading h2 { color: var(--text); }
.slice-light .section-heading p { color: var(--muted); }
.slice-light .catalog-count { color: var(--muted); }
.slice-light .catalog-toolbar {
  border-color: var(--border);
  background: rgba(255,253,248,.82);
  box-shadow: 0 18px 54px rgba(73,57,30,.07);
}
.slice-light .search-box,
.slice-light .sort-box {
  border-color: transparent;
  background: #f4eee3;
  color: var(--text-soft);
}
.slice-light .search-box input,
.slice-light .sort-box select { color: var(--text); }
.slice-light .search-box kbd { border-color: var(--border); background: #fffdf8; color: var(--muted); }
.slice-light .search-box:focus-within,
.slice-light .sort-box:focus-within { border-color: rgba(198,146,47,.55); box-shadow: 0 0 0 3px rgba(198,146,47,.09); }
.slice-light .filter-chip { color: var(--muted); }
.slice-light .filter-chip:hover { border-color: var(--border-strong); color: var(--text); }
.slice-light .filter-chip.active { border-color: rgba(127,91,24,.35); background: rgba(198,146,47,.11); color: var(--gold-dark); }
.slice-light .demo-notice { border-color: #dfca97; background: #fff7dd; color: #6b4b12; }

.slice-light .project-card {
  border-color: var(--border);
  background: var(--surface);
  box-shadow: 0 14px 44px rgba(72,57,31,.075);
}
.slice-light .project-card:hover { border-color: #c8b99e; box-shadow: 0 24px 62px rgba(72,57,31,.14); }
.slice-light .card-media {
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,.88), transparent 54%),
    linear-gradient(145deg, #ede5d6, #f8f4eb);
}
.slice-light .card-media img { filter: drop-shadow(0 16px 20px rgba(58,44,20,.17)); }
.slice-light .card-category { color: var(--gold-dark); }
.slice-light .card-title { color: var(--text); }
.slice-light .card-price { color: var(--text); }
.slice-light .card-open { color: var(--muted); }
.slice-light .card-badge {
  border-color: rgba(34,30,24,.12);
  background: rgba(255,253,248,.82);
  color: var(--text-soft);
}
.slice-light .card-badge.featured { border-color: rgba(127,91,24,.26); background: rgba(255,245,215,.9); color: var(--gold-dark); }
.slice-light .card-badge.model { border-color: rgba(42,82,69,.22); background: rgba(235,248,242,.9); color: #315f4f; }
.slice-light .card-code { border-color: rgba(34,30,24,.1); background: rgba(255,253,248,.84); color: var(--text-soft); }
.slice-light .card-placeholder img { content: url("../assets/brand-mark-dark.png"); }

/* 3D dentro do card */
.slice-light .card-inline-viewer {
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 0;
  visibility: hidden;
  background: linear-gradient(145deg, #eee6d7, #fbf8f1);
  transition: opacity .3s ease, visibility .3s ease;
  cursor: grab;
  touch-action: none;
}
.slice-light .card-inline-viewer:active { cursor: grabbing; }
.slice-light .project-card.inline-3d-active .card-inline-viewer { opacity: 1; visibility: visible; }
.slice-light .card-inline-viewer canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.slice-light .inline-3d-hint {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 7;
  transform: translateX(-50%);
  min-height: 30px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  border: 1px solid rgba(34,30,24,.12);
  border-radius: 999px;
  background: rgba(255,253,248,.88);
  color: var(--text-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  pointer-events: none;
  backdrop-filter: blur(10px);
}
.slice-light .inline-3d-loader { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 10px; font-weight: 700; }

.slice-light .steps-grid article {
  border-color: var(--border);
  background: linear-gradient(145deg, rgba(255,255,255,.74), transparent 58%), var(--surface);
  box-shadow: 0 12px 36px rgba(72,57,31,.05);
}
.slice-light .steps-grid article > span { color: var(--gold-dark); }
.slice-light .steps-grid h3 { color: var(--text); }
.slice-light .steps-grid p { color: var(--muted); }

.slice-light .filament-chip { border-color: var(--border); background: rgba(255,253,248,.72); }

/* Feedbacks */
.slice-light .feedback-section { width: var(--page); margin: 0 auto; padding: 10px 0 122px; }
.slice-light .feedback-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.slice-light .feedback-card {
  min-height: 230px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 14px 42px rgba(72,57,31,.055);
}
.slice-light .feedback-quote-mark { color: var(--gold); font-family: Georgia, serif; font-size: 48px; line-height: .8; }
.slice-light .feedback-card blockquote { margin: 18px 0 30px; color: var(--text-soft); font-size: 15px; line-height: 1.7; }
.slice-light .feedback-person { margin-top: auto; display: flex; flex-direction: column; gap: 4px; }
.slice-light .feedback-person strong { color: var(--text); font-size: 12px; }
.slice-light .feedback-person span { color: var(--muted); font-size: 10px; }

.slice-light .cta-band {
  border-color: var(--border);
  background:
    radial-gradient(circle at 50% 8%, rgba(198,146,47,.18), transparent 50%),
    var(--surface);
  box-shadow: 0 24px 70px rgba(72,57,31,.08);
}
.slice-light .cta-band h2 { color: var(--text); }
.slice-light .cta-band p { color: var(--text-soft); }
.slice-light .site-footer { border-top-color: var(--border); }
.slice-light .footer-brand p,
.slice-light .footer-copy,
.slice-light .footer-links a { color: var(--muted); }
.slice-light .footer-links a:hover { color: var(--text); }

.slice-light .detail-overlay { background: rgba(42,35,25,.46); }
.slice-light .detail-panel { border: 1px solid var(--border); background: var(--surface); box-shadow: 0 30px 100px rgba(37,30,20,.26); }
.slice-light .detail-visual,
.slice-light .detail-photo img,
.slice-light #viewer3d-canvas-wrap { background: #f2ece2; }
.slice-light .detail-close,
.slice-light .gallery-nav,
.slice-light .viewer-tabs button,
.slice-light .viewer-controls button,
.slice-light .copy-code { border-color: var(--border); background: rgba(255,253,248,.88); color: var(--text-soft); }
.slice-light .viewer-tabs button.active { border-color: rgba(127,91,24,.38); background: rgba(198,146,47,.12); color: var(--gold-dark); }
.slice-light .detail-info h2,
.slice-light .detail-price { color: var(--text); }
.slice-light .detail-desc,
.slice-light .spec-list dd { color: var(--text-soft); }
.slice-light .spec-list { border-color: var(--border); }
.slice-light .detail-tag { border-color: var(--border); background: var(--surface-2); color: var(--muted); }
.slice-light .toast { border-color: var(--border); background: #fffdf8; color: var(--text); box-shadow: 0 18px 50px rgba(58,44,20,.18); }

/* Admin claro */
.slice-light.developer-mode-page { background: radial-gradient(circle at 82% 0%, rgba(198,146,47,.13), transparent 30rem), var(--bg); }
.slice-light .developer-pill,
.slice-light .version-pill { border-color: var(--border); background: rgba(255,253,248,.7); color: var(--muted); }
.slice-light .developer-pill span { background: var(--gold); }
.slice-light .developer-hero {
  border-color: var(--border);
  background: radial-gradient(circle at 82% 20%, rgba(198,146,47,.2), transparent 28rem), linear-gradient(145deg, rgba(255,255,255,.65), transparent 60%), var(--surface);
  box-shadow: 0 24px 70px rgba(72,57,31,.08);
}
.slice-light .developer-hero h1 { color: var(--text); }
.slice-light .developer-hero p { color: var(--muted); }
.slice-light .admin-stats article,
.slice-light .admin-card,
.slice-light .gate-card { border-color: var(--border); background: var(--surface); box-shadow: 0 14px 42px rgba(72,57,31,.055); }
.slice-light .admin-stats article span,
.slice-light .section-kicker { color: var(--muted); }
.slice-light .admin-stats article strong,
.slice-light .card-heading h2,
.slice-light .gate-card h1 { color: var(--text); }
.slice-light .gate-card > p,
.slice-light .login-help,
.slice-light .login-security { color: var(--muted); }
.slice-light .gate-mark { content: url("../assets/brand-mark-dark.png"); }
.slice-light .form-section { border-color: var(--border); }
.slice-light .form-section-title > span { border-color: rgba(127,91,24,.28); background: rgba(198,146,47,.1); color: var(--gold-dark); }
.slice-light .form-section-title strong { color: var(--text); }
.slice-light .form-section-title small { color: var(--muted); }
.slice-light .field label { color: var(--text-soft); }
.slice-light .field small { color: var(--muted); }
.slice-light .field input,
.slice-light .field textarea,
.slice-light .field select,
.slice-light .admin-filters input,
.slice-light .admin-filters select {
  border-color: var(--border);
  background: #fffcf6;
  color: var(--text);
}
.slice-light .field input:focus,
.slice-light .field textarea:focus,
.slice-light .field select:focus,
.slice-light .admin-filters input:focus,
.slice-light .admin-filters select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(198,146,47,.1); }
.slice-light .field input::placeholder,
.slice-light .field textarea::placeholder { color: #a9a093; }
.slice-light .upload-drop { border-color: var(--border); background: linear-gradient(145deg, rgba(255,255,255,.7), transparent), var(--bg-soft); }
.slice-light .upload-drop:hover { border-color: var(--gold); }
.slice-light .form-footer { border-color: var(--border); background: #f8f3e9; }
.slice-light .switch-field { color: var(--text-soft); }
.slice-light .switch-field > span { background: #d8d0c3; }
.slice-light .switch-field input:checked + span { background: var(--gold); }
.slice-light .existing-media-item,
.slice-light .existing-file-chip { border-color: var(--border); background: var(--surface-2); color: var(--text-soft); }
.slice-light .admin-order-help { color: var(--muted); }
.slice-light .admin-pencil { border-color: rgba(127,91,24,.25); background: rgba(255,247,224,.95); color: var(--gold-dark); box-shadow: 0 8px 24px rgba(85,60,18,.13); }
.slice-light .admin-pencil:hover { border-color: var(--gold); transform: translateY(-2px); }
.slice-light .admin-drag-handle,
.slice-light .admin-position { border-color: var(--border); background: rgba(255,253,248,.9); color: var(--text-soft); }
.slice-light .draft-badge { background: rgba(255,244,212,.92); color: #7b5719; }

/* Ações administrativas maiores e autoexplicativas */
.slice-light .admin-card-actions {
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.slice-light .admin-card-actions button {
  min-height: 42px;
  height: auto;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fffaf2;
  color: var(--text-soft);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}
.slice-light .admin-card-actions button:hover { transform: translateY(-2px); border-color: #c7b58e; background: #fffdf8; color: var(--text); }
.slice-light .admin-card-actions button.action-feature { color: #815d19; background: #fff8e7; }
.slice-light .admin-card-actions button.action-toggle { color: #315f4f; background: #f0f8f3; }
.slice-light .admin-card-actions button.action-duplicate { color: #4b5672; background: #f2f4fa; }
.slice-light .admin-card-actions button.danger { color: #9a3a32; background: #fff3f1; }
.slice-light .admin-card-actions button.danger:hover { border-color: rgba(185,65,54,.45); background: #ffe9e6; color: var(--danger); }
.slice-light .admin-action-icon { font-size: 14px; line-height: 1; }

/* Navegação do painel */
.slice-light .admin-section-tabs {
  margin: 0 0 18px;
  padding: 7px;
  display: flex;
  gap: 7px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,253,248,.78);
  position: sticky;
  top: 78px;
  z-index: 30;
  box-shadow: 0 12px 32px rgba(72,57,31,.07);
  backdrop-filter: blur(15px);
}
.slice-light .admin-tab {
  min-height: 42px;
  padding: 0 17px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.slice-light .admin-tab.active { background: var(--text); color: #fffaf0; box-shadow: 0 9px 22px rgba(28,24,18,.15); }
.slice-light .admin-tab-panel[hidden] { display: none !important; }

.slice-light .site-editor-card { margin-bottom: 18px; overflow: visible; }
.slice-light .site-editor-intro { max-width: 720px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.slice-light .site-section-toggle { margin-top: 10px; }
.slice-light .site-editor-actions { position: sticky; bottom: 12px; z-index: 20; }
.slice-light .feedback-editor-list { display: grid; gap: 12px; }
.slice-light .feedback-editor-item {
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: #fbf7ef;
}
.slice-light .feedback-editor-item .field.quote { grid-column: 1 / -1; }
.slice-light .feedback-editor-remove {
  width: 42px;
  height: 42px;
  border: 1px solid #e2c5c1;
  border-radius: 11px;
  background: #fff2ef;
  color: #9a3a32;
  font-size: 18px;
  cursor: pointer;
}
.slice-light .feedback-editor-remove:hover { background: #ffe6e1; }
.slice-light .custom-section-list { display: grid; gap: 12px; margin-top: 10px; }
.slice-light .custom-section-editor-item {
  padding: 16px;
  display: grid;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: #fbf7ef;
}
.slice-light .custom-section-editor-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.slice-light .custom-section-editor-row .btn.danger { color: #9a3a32; border-color: #e2c5c1; background: #fff2ef; }
.slice-light .custom-section-editor-row .btn.danger:hover { background: #ffe6e1; }
.slice-light .empty-hint { color: var(--muted); font-size: 12px; margin: 8px 0; }
.slice-light .content-save-status { min-height: 18px; color: var(--muted); font-size: 10px; }
.slice-light .drive-setup-banner { border-color: #c9d9ca; background: #eff8ef; color: #315f3d; }
.slice-light .demo-banner { border-color: #dfca97; background: #fff7dd; color: #6b4b12; }
.slice-light .confirm-dialog { border-color: var(--border); background: var(--surface); color: var(--text); }
.slice-light .confirm-dialog::backdrop { background: rgba(42,35,25,.42); }

.slice-light .floating-cart { border-color: var(--border); background: rgba(255,253,248,.92); color: var(--text); box-shadow: 0 14px 34px rgba(72,57,31,.14); }
.slice-light .cart-overlay { background: rgba(42,35,25,.46); }
.slice-light .cart-panel { border: 1px solid var(--border); background: var(--surface); box-shadow: 0 30px 100px rgba(37,30,20,.26); }
.slice-light .cart-item { border-color: var(--border); background: rgba(255,253,248,.72); }
.slice-light .card-cart-btn { border-color: var(--border); color: var(--muted); }
.slice-light .card-cart-btn:hover { border-color: var(--gold); color: var(--gold-dark); }
.slice-light .card-cart-btn.in-cart { border-color: var(--gold); background: rgba(198,146,47,.11); color: var(--gold-dark); }
.slice-light .cart-toggle-btn.in-cart { border-color: var(--gold); color: var(--gold-dark); background: rgba(198,146,47,.08); }

@media (max-width: 1050px) {
  .slice-light .showcase-section { grid-template-columns: 1fr 1fr; }
  .slice-light .feedback-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 860px) {
  .slice-light .visual-header { background: rgba(251,248,241,.92); }
  .slice-light .showcase-section { grid-template-columns: 1fr; margin-bottom: 92px; }
  .slice-light .showcase-media { min-height: 360px; }
  .slice-light .showcase-copy { padding: 38px 30px 42px; }
  .slice-light .feedback-grid { grid-template-columns: 1fr; }
  .slice-light .admin-section-tabs { top: 70px; overflow-x: auto; }
}
@media (max-width: 640px) {
  .slice-light .showcase-section { border-radius: 22px; }
  .slice-light .showcase-media { min-height: 300px; }
  .slice-light .showcase-copy { padding: 30px 22px 34px; }
  .slice-light .showcase-copy h2 { font-size: 34px; }
  .slice-light .showcase-chip { top: 18px; left: 18px; }
  .slice-light .showcase-code { right: 18px; bottom: 18px; }
  .slice-light .feedback-card { min-height: 210px; padding: 24px; }
  .slice-light .admin-card-actions { grid-template-columns: 1fr 1fr; }
  .slice-light .feedback-editor-item { grid-template-columns: 1fr; }
  .slice-light .feedback-editor-item .field.quote { grid-column: auto; }
  .slice-light .feedback-editor-remove { width: 100%; }
}
.slice-light .tab-panel-inactive { display: none !important; }
.slice-light .content-save-status.success { color: #2d6a49; }
.slice-light .content-save-status.error { color: var(--danger); }
.slice-light .site-editor-card { scroll-margin-top: 138px; }
