/**
 * styles.css — base e estilos de telas sobre os tokens v2.
 * Ordem das camadas (index.html): tokens.css → components.css → paper.css → motion.css → styles.css.
 * Aqui: base (reset, tipografia, links) → layout de página → componentes de tela → utilitários.
 * Sem cores literais (só var(--token) / color-mix), sem sombra de brilho e sem barras fixas inferiores (R8).
 * O tema escuro é resolvido pelos tokens; não há overrides por tema neste arquivo.
 */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 84% 8%, color-mix(in srgb, var(--wash2) 8%, transparent), transparent 24%),
    radial-gradient(circle at 6% 12%, color-mix(in srgb, var(--info-fill) 8%, transparent), transparent 24%),
    var(--page);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea {
  font: inherit;
  font-family: inherit;
}

.num {
  font-variant-numeric: tabular-nums;
}

.summary-row span:last-child,
.summary-row strong:last-child,
.price-total,
.doc-subtotal-val,
.addon-price-badge,
.table-col-subtotal,
.metric-value {
  font-variant-numeric: tabular-nums;
}
select {
  background-color: var(--raised);
  color: var(--ink);
  border-color: var(--control);
}
select option {
  background-color: var(--raised);
  color: var(--ink);
}
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }

.client-shell { min-height: 100vh; display: flex; flex-direction: column; }
.client-main { flex: 1; }

.brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-sans); font-weight: 800; height: 38px; max-height: 38px; flex-shrink: 0; }

/* ---- Botões v2 (AB#484): primário em gradiente, demais sólidos; rótulo do primário 16/700 em todos os tamanhos ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: auto;
  min-height: var(--h-btn);
  padding: 0 24px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font: 700 15px/22px var(--font-sans);
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--motion-fast), border-color var(--motion-fast);
}
.btn-sm { min-height: var(--h-btn-sm); padding: 0 16px; font-size: 14px; line-height: 20px; }
.btn-lg { min-height: var(--h-btn-lg); padding: 0 30px; font-size: 16px; }
.btn-block { width: 100%; text-align: center; }
@media (max-width: 767px) { .btn { white-space: normal; text-align: center; } }
.btn-primary, .btn-primary.btn-sm, .btn-primary.btn-lg { background: var(--grad); font-size: 16px; font-weight: 700; }
.btn-primary:hover { background: var(--grad-h); }
.btn-line { background: var(--raised); border-color: var(--line); }
.btn-line:hover { background: var(--inset); }
.btn-quiet { background: transparent; }
.btn-quiet:hover { background: var(--wash); }
.btn-danger { background: var(--danger-solid); }
/* Cor do rótulo também em <a> (repouso, hover, foco e visitado): nunca herda a cor de link */
.btn-primary, .btn-primary:hover, .btn-primary:focus, .btn-primary:visited,
.btn-danger, .btn-danger:hover, .btn-danger:focus, .btn-danger:visited { color: var(--on-grad); }
.btn-line, .btn-line:hover, .btn-line:focus, .btn-line:visited { color: var(--ink); }
.btn-quiet, .btn-quiet:hover, .btn-quiet:focus, .btn-quiet:visited { color: var(--brand); }
.btn[aria-disabled="true"], .btn:disabled { opacity: 0.5; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* Botão-ícone (44 px) e CTA só com ícone em gradiente (AB#484 AC3) */
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: var(--h-icon);
  height: var(--h-icon);
  padding: 0;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text2);
  cursor: pointer;
}
.icon-btn:hover { background: var(--inset); color: var(--ink); }
.ico { flex: none; vertical-align: middle; }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn.grad-fill, .icon-btn.grad-fill:hover { background: var(--grad); color: var(--on-grad); }
.grad-fill { background: var(--grad); color: var(--on-grad); }
.btn[aria-busy="true"]::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  animation: spin 700ms linear infinite;
}

.hero {
  min-height: calc(100vh - 64px);
  max-height: 920px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: 70px;
  padding: 48px 0 72px;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ink) 9%, transparent), transparent);
}
.hero h1 {
  font-family: var(--font-sans);
  /* clamp()/vw em tipografia são proibidos (02-tokens.md §1.2.2); tamanho fixo da escala .t-display,
     com o degrau de mobile na consulta de largura máxima de 767px, logo abaixo. */
  font-size: 56px;
  line-height: 60px;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
  max-width: 660px;
}
.hero p { max-width: 530px; color: var(--text2); font-size: 18px; line-height: 30px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--wash), var(--wash2));
  color: var(--brand);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 16px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--raised) 72%, transparent), 0 8px 24px color-mix(in srgb, var(--ink) 5%, transparent);
}

.section { padding: 80px 0; }
.page-title h1 {
  font-family: var(--font-sans);
  font-size: 32px;
  line-height: 40px;
  margin: 8px 0;
}
.page-title p { color: var(--text2); margin: 0; }
.interactive-card:hover { box-shadow: var(--shadow); border-color: var(--brand); }
.tile-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--wash), var(--inset) 55%, var(--wash2));
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 30px;
}
.service-card h3 { font-size: 20px; margin: 18px 0 8px; }
.service-card p { color: var(--text2); min-height: 46px; }
.service-card {
  position: relative;
  overflow: hidden;
  min-height: 310px;
  background:
    radial-gradient(120% 120% at 12% 0%, color-mix(in srgb, var(--raised) 75%, transparent), transparent 58%),
    linear-gradient(145deg, var(--raised), var(--raised));
}
.service-card::after {
  content: "";
  position: absolute;
  right: -58px;
  top: -58px;
  width: 172px;
  height: 172px;
  border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--wash2) 13%, transparent), transparent 68%);
}
.service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}
.service-link { margin-top: 18px; color: var(--brand); font-weight: 800; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step-number {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-grad);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.footer { background: var(--inset); border-top: 1px solid var(--line); padding: 48px 0 28px; color: var(--text2); }
.footer h3 { color: var(--ink); margin-top: 0; }
.auth-card {
  width: min(100%, 400px);
  border-radius: var(--r-card);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform 550ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 550ms cubic-bezier(0.16, 1, 0.3, 1),
              opacity 450ms cubic-bezier(0.22, 1, 0.36, 1),
              filter 450ms ease;
}
.auth-card.auth-card-success {
  box-shadow: 0 28px 80px color-mix(in srgb, var(--info-fill) 22%, transparent), 0 0 60px color-mix(in srgb, var(--wash2) 14%, transparent);
  transform: translateY(-4px) scale(1.01);
}
.auth-card.auth-card-exit {
  opacity: 0;
  transform: translateY(-16px) scale(0.98);
  filter: blur(4px);
  pointer-events: none;
}
.auth-calm-success {
  margin-top: 18px;
  padding: 18px 16px;
  border-radius: var(--r-seg);
  background:
    radial-gradient(circle at 14% 0%, color-mix(in srgb, var(--line) 20%, transparent), transparent 45%),
    linear-gradient(135deg, color-mix(in srgb, var(--raised) 70%, transparent), color-mix(in srgb, var(--bad-bg) 12%, transparent));
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: calmScaleIn 450ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  box-shadow: 0 14px 40px color-mix(in srgb, var(--info-fill) 12%, transparent);
}
.auth-calm-spinner {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 2px;
}
.auth-calm-spinner .calm-halo {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: conic-gradient(from 0deg, var(--brand), var(--wash2), var(--control), var(--brand));
  animation: spin 3s linear infinite, breathe 2.4s ease-in-out infinite;
  opacity: 0.85;
  filter: blur(4px);
}
.auth-calm-spinner .calm-check {
  position: relative;
  z-index: 1;
  color: var(--on-grad);
  background: linear-gradient(135deg, var(--ok-fill), var(--brand));
  border-radius: 999px;
  padding: 6px;
  width: 32px;
  height: 32px;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--ok-fill) 38%, transparent);
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: checkStroke 520ms 140ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.auth-calm-success strong {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.auth-calm-success p {
  margin: 0;
  font-size: 13px;
  color: var(--subtle);
}
@keyframes checkStroke {
  to { stroke-dashoffset: 0; }
}
@keyframes calmScaleIn {
  from { opacity: 0; transform: translateY(8px) scale(0.96); filter: blur(2px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
.auth-card h1 { font-family: var(--font-sans); font-size: 24px; margin: 18px 0 6px; }
.auth-card p { color: var(--subtle); margin-top: 0; }
.form { display: grid; gap: 16px; }
.alert { padding: 12px 14px; border-radius: var(--r-opt); font-weight: 600; }
.alert-error { background: var(--bad-bg); border-left: 4px solid var(--bad-fill); color: var(--bad); }
.alert-warning { background: var(--warn-bg); border-left: 4px solid var(--warn-fill); color: var(--warn); }
.loading-note {
  min-height: 46px;
  border-radius: var(--r-opt);
  background:
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--info-fill) 14%, transparent), transparent 34%),
    linear-gradient(135deg, color-mix(in srgb, var(--wash) 76%, transparent), color-mix(in srgb, var(--wash2) 62%, transparent));
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
  width: 100%;
}
.ethereal-spinner {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  display: inline-flex;
  flex: 0 0 auto;
  animation: spin 740ms linear infinite;
}
.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; align-items: center; }
.strength span { height: 5px; border-radius: 999px; background: var(--line); }
.strength.weak span:nth-child(1) { background: var(--bad-fill); }
.strength.medium span:nth-child(-n+2) { background: var(--warn-fill); }
.strength.strong span:nth-child(-n+4) { background: var(--ok-fill); }

.page { padding: 40px 0 80px; }
.page-title { margin-bottom: 28px; }
.progress { display: flex; align-items: center; gap: 8px; margin-bottom: 28px; }
.progress-step { display: flex; align-items: center; gap: 8px; color: var(--subtle); font-weight: 700; }
.progress-dot {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 2px solid var(--line);
}
.progress-step.done, .progress-step.active { color: var(--ink); }
.progress-step.done .progress-dot, .progress-step.active .progress-dot { background: var(--brand); border-color: var(--brand); color: var(--on-grad); }
.progress-line { flex: 1; height: 2px; background: var(--line); max-width: 120px; }
.progress-step.active .progress-dot { animation: breathe 3.6s ease-in-out infinite; }
.order-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr); gap: 24px; align-items: start; }
.price-sidebar { position: sticky; top: 88px; }
.profile-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 24px;
  align-items: start;
}
.profile-summary {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 12px;
}
.profile-avatar-large {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--wash), var(--wash2));
  color: var(--brand);
  font-family: var(--font-sans);
  font-size: 30px;
  font-weight: 800;
  box-shadow: var(--shadow);
}
.profile-summary h2,
.profile-form-card h2 {
  font-family: var(--font-sans);
  margin: 0;
}
.profile-summary p,
.profile-password-box p {
  color: var(--text2);
  margin: 0;
}
.profile-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.profile-meta div {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--raised) 58%, transparent);
  padding: 12px;
}
.profile-meta span {
  display: block;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 700;
}
.profile-meta strong {
  color: var(--ink);
}
.profile-actions {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}
.profile-form-card {
  display: grid;
  gap: 20px;
}
.profile-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.profile-password-box {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--raised);
  padding: 18px;
  display: grid;
  gap: 12px;
}
.profile-password-box h3 {
  margin: 0;
}
.profile-submit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}
.upload-zone {
  min-height: 190px;
  border: 2px dashed var(--line);
  border-radius: var(--r-seg);
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--raised);
  color: var(--text2);
  overflow: hidden;
  position: relative;
  transition: border-color 150ms ease, transform 150ms ease, background 180ms ease, box-shadow 180ms ease;
}
.upload-zone::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(115deg, transparent 38%, color-mix(in srgb, var(--raised) 62%, transparent), transparent 58%);
  transform: translateX(-45%) rotate(12deg);
  opacity: 0;
  pointer-events: none;
}
.upload-zone.drag,
.upload-zone.is-loading {
  border-color: var(--brand);
  transform: scale(1.01);
  box-shadow: 0 18px 44px color-mix(in srgb, var(--info-fill) 12%, transparent);
}
.upload-zone.is-loading::after {
  opacity: 1;
  animation: uploadShine 1.35s ease-in-out infinite;
}
.upload-zone.is-success {
  border-style: solid;
  border-color: color-mix(in srgb, var(--ok-fill) 56%, transparent);
  background:
    radial-gradient(circle at 24% 12%, color-mix(in srgb, var(--info-fill) 12%, transparent), transparent 32%),
    linear-gradient(135deg, color-mix(in srgb, var(--wash) 70%, transparent), color-mix(in srgb, var(--wash2) 42%, transparent));
}
.upload-state {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 22px;
  position: relative;
  z-index: 1;
}
.upload-state strong { color: var(--ink); }
.upload-state p { margin: 0; max-width: 360px; color: var(--text2); }
.upload-state-loading { color: var(--brand); }
.upload-check {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: var(--on-grad);
  box-shadow: var(--shadow);
  animation: scaleIn 280ms ease-out;
}
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 20px; }
.summary-row strong { font-size: 14px; }
.bottom-price { display: none; }

.order-status-block {
  display: flex;
  align-items: center;
  margin: 4px 0 24px;
}
.timeline { display: grid; gap: 0; }
.order-status-block + .timeline { margin-top: 6px; }
.timeline-item { display: grid; grid-template-columns: 28px 1fr; gap: 12px; min-height: 78px; }
.timeline-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  background: var(--page);
  z-index: 1;
}
.timeline-item.done .timeline-icon { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.timeline-item.active .timeline-icon { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 4px var(--wash); }
.timeline-rail { position: relative; }
.timeline-rail::after { content: ""; position: absolute; left: 13px; top: 30px; bottom: 0; width: 2px; background: var(--line); }
.timeline-item.done .timeline-rail::after { background: var(--brand); }
.timeline-item:last-child .timeline-rail::after { display: none; }
.live-dot { animation: breathe 3.4s ease-in-out infinite; box-shadow: 0 0 10px color-mix(in srgb, var(--ok-fill) 35%, transparent); }
.summary-total strong:last-child,
.price-total {
  animation: breathe 3.8s ease-in-out infinite;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.complete-center { min-height: calc(100vh - 64px); display: grid; place-items: center; text-align: center; }
.checkmark { width: 82px; height: 82px; margin: 0 auto 20px; border-radius: 999px; background: var(--ok-fill); color: var(--on-grad); display: grid; place-items: center; font-size: 42px; animation: scaleIn 400ms ease-out; }

.filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.client-filter {
  min-height: 46px;
  border: 1px solid color-mix(in srgb, var(--line) 96%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--raised) 84%, transparent);
  color: var(--ink);
  padding: 0 16px;
  box-shadow: var(--shadow);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.client-filter:focus {
  border-color: var(--line);
  background: var(--raised);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--info-fill) 14%, transparent), var(--shadow);
}
.client-filter::placeholder { color: var(--subtle); }
.order-list { display: grid; gap: 12px; }
.order-card { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 24px; gap: 22px; align-items: center; padding: 18px; }
.order-card .tile-icon { width: 56px; height: 56px; border-radius: 18px; font-size: 24px; }
.mono { font-family: var(--font-mono); font-size: 13px; }

.op-card {
  background:
    radial-gradient(120% 120% at 12% 0%, color-mix(in srgb, var(--raised) 8%, transparent), transparent 60%),
    var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--r-seg);
  padding: 20px;
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--raised) 8%, transparent);
}
.op-card h3, .op-card h2 { margin-top: 0; }
.op-muted { color: var(--subtle); }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.metric-value { font-size: 32px; font-weight: 800; margin-top: 8px; }
.op-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid var(--line); }
tr.unknown { background: color-mix(in srgb, var(--warn-fill) 12%, transparent); box-shadow: inset 4px 0 0 var(--warn-fill); }
tr.failed { background: color-mix(in srgb, var(--bad-fill) 6%, transparent); box-shadow: inset 4px 0 0 var(--bad-fill); }
.log-box {
  height: 300px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-opt);
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.log-error { color: var(--on-grad); }
.log-warn { color: var(--on-grad); }
.route-loader {
  position: fixed;
  left: 50%;
  top: 82px;
  z-index: 9998;
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--raised) 84%, transparent), color-mix(in srgb, var(--inset) 76%, transparent)),
    color-mix(in srgb, var(--raised) 88%, transparent);
  color: var(--brand);
  box-shadow: 0 18px 48px color-mix(in srgb, var(--ink) 12%, transparent), inset 0 1px 0 color-mix(in srgb, var(--raised) 88%, transparent);
  backdrop-filter: blur(18px) saturate(130%);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px) scale(0.98);
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
.route-loader.show {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}
.route-loader span {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 35%, var(--raised), transparent 34%),
    conic-gradient(from 0deg, var(--brand), var(--wash2), var(--control), var(--brand));
  animation: spin 900ms linear infinite;
  box-shadow: 0 0 18px color-mix(in srgb, var(--info-fill) 34%, transparent);
}

.route-view {
  animation: routeIn 360ms cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: top center;
}

.empty-state {
  border: 1px solid color-mix(in srgb, var(--line) 90%, transparent);
  border-radius: 24px;
  background:
    radial-gradient(120% 120% at 16% 0%, color-mix(in srgb, var(--raised) 90%, transparent), transparent 60%),
    linear-gradient(180deg, var(--raised), var(--raised));
  box-shadow: var(--shadow), inset 0 1px 0 color-mix(in srgb, var(--raised) 90%, transparent);
  padding: 28px;
  text-align: center;
  display: grid;
  gap: 8px;
  justify-items: center;
}
.empty-state h3 { margin: 0; font-family: var(--font-sans); }
.empty-state p { margin: 0 0 12px; color: var(--text2); max-width: 420px; }
.empty-illustration {
  width: 180px;
  height: 120px;
  position: relative;
  margin-bottom: 6px;
}
.empty-orb {
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  top: -6px;
  left: 8px;
  background: radial-gradient(circle at 30% 30%, var(--raised), var(--wash) 45%, transparent 70%);
  filter: blur(0.2px);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--info-fill) 20%, transparent);
}
.empty-card {
  position: absolute;
  right: 10px;
  bottom: 6px;
  width: 90px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--raised), var(--inset));
  border: 1px solid color-mix(in srgb, var(--line) 90%, transparent);
  box-shadow: var(--shadow);
}
.empty-shine {
  position: absolute;
  right: 28px;
  top: 12px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--wash2) 22%, transparent), transparent 65%);
}

@keyframes routeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes uploadShine {
  from { transform: translateX(-55%) rotate(12deg); }
  to { transform: translateX(55%) rotate(12deg); }
}
@keyframes breathe {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.92; }
  50% { transform: translateY(-2px) scale(1.03); opacity: 1; }
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: 0.6; } }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } }
@keyframes scaleIn { from { transform: scale(0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
.log-box {
  background: var(--raised);
  color: var(--ink);
  border-color: var(--line);
}

@media (max-width: 1023px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-art { display: none; }
  .order-grid,
.op-layout,
.profile-grid { grid-template-columns: 1fr; }
  .profile-summary { position: static; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Cabeçalho completo só a partir de 1024 px; abaixo disso, cabeçalho compacto com menu. */

@media (max-width: 767px) {
  .hero h1 { font-size: 32px; line-height: 40px; }
  .filters { flex-direction: column; }
  .filters > * { width: 100%; }
  .section { padding: 56px 0; }
  .steps,
.option-grid,
.metric-grid,
.profile-form-grid { grid-template-columns: 1fr; }
  .profile-submit-row { justify-content: stretch; }
  .profile-submit-row .btn { width: 100%; }
  .progress-line, .progress-step span:not(.progress-dot) { display: none; }
  .price-sidebar { display: none; }
  .bottom-price { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding: 12px 0; }
  .order-card { grid-template-columns: 56px 1fr; gap: 16px; }
  .order-card > :nth-child(3), .order-card > :nth-child(4) { grid-column: 2; }
}

.catalog-category-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Category Badges */
.cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.cat-doc {
  background: color-mix(in srgb, var(--inset) 90%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  color: var(--info);
}
.cat-photo {
  background: color-mix(in srgb, var(--inset) 90%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  color: var(--bad);
}
.cat-paper {
  background: color-mix(in srgb, var(--warn-bg) 90%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  color: var(--warn);
}
.cat-service {
  background: color-mix(in srgb, var(--inset) 90%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  color: var(--brand);
}
.cat-pack {
  background: color-mix(in srgb, var(--inset) 90%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  color: var(--text2);
}

/* Combinable Badges & Chips */
.comb-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.comb-tag-allow {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.comb-tag-addon {
  font-size: 11px;
  font-weight: 600;
  color: var(--text2);
}
.comb-chips {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.comb-chip {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--inset);
  border: 1px solid var(--line);
  color: var(--text2);
}

.showcase-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--warn);
  background: color-mix(in srgb, var(--warn-bg) 70%, transparent);
  border: 1px solid color-mix(in srgb, var(--warn-fill) 60%, transparent);
  padding: 2px 7px;
  border-radius: 6px;
}

.sku-code {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: var(--subtle);
}

/* ==========================================================================
   CATALOG FILTER BAR & PILLS
   ========================================================================== */
.filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  background: var(--raised);
  border: 1px solid var(--line);
  color: var(--text2);
  box-shadow: var(--shadow);
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  line-height: 1.4;
}

.filter-pill:hover {
  background: var(--inset);
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.filter-pill.active {
  background: var(--brand);
  border-color: transparent;
  color: var(--on-brand);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--info-fill) 35%, transparent);
  transform: translateY(-1px);
}

.filter-pill-text {
  white-space: nowrap;
}

.filter-pill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  color: var(--text2);
  transition: background 180ms ease, color 180ms ease;
}

.filter-pill:hover .filter-pill-badge {
  background: color-mix(in srgb, var(--info-fill) 18%, transparent);
  color: var(--brand);
}

.filter-pill.active .filter-pill-badge {
  background: color-mix(in srgb, var(--raised) 28%, transparent);
  color: var(--on-grad);
}

/* ==========================================================================
   PRODUCT EDITION MODAL & FORM REDESIGN
   ========================================================================== */
.catalog-modal-backdrop {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--ink) 65%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms;
}

.catalog-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.catalog-modal-card {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--raised) 80%, transparent) inset;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  transform: translateY(16px) scale(0.97);
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.catalog-modal-backdrop.open .catalog-modal-card {
  transform: translateY(0) scale(1);
}

.catalog-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.catalog-modal-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
  background: linear-gradient(135deg, var(--wash), var(--wash2));
  border: 1px solid color-mix(in srgb, var(--info-fill) 30%, transparent);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.catalog-modal-head h2 {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
}

.catalog-modal-subtitle {
  font-size: 13px;
  color: var(--text2);
  margin: 4px 0 0;
}

.catalog-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--inset);
  color: var(--subtle);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
  flex-shrink: 0;
  font-size: 16px;
}

.catalog-modal-close:hover {
  background: var(--wash);
  color: var(--brand);
  border-color: color-mix(in srgb, var(--info-fill) 40%, transparent);
  transform: rotate(90deg);
}

/* Sections */
.catalog-form-section {
  background: var(--inset);
  border: 1px solid var(--line);
  border-radius: var(--r-seg);
  padding: 18px 20px;
  margin-bottom: 18px;
}

.catalog-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

/* Grid & Fields */
.catalog-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.catalog-form-full {
  grid-column: 1 / -1;
}

.catalog-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.catalog-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.catalog-label .req {
  color: var(--bad);
  margin-left: 2px;
}

.catalog-label .opt {
  color: var(--subtle);
  font-weight: 500;
  font-size: 11.5px;
  margin-left: 4px;
}

.catalog-field-hint {
  font-size: 11px;
  color: var(--subtle);
  line-height: 1.3;
}

.catalog-input,
.catalog-select,
.catalog-textarea {
  width: 100%;
  display: block;
  box-sizing: border-box;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--r-opt);
  padding: 10px 14px;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.catalog-input:focus,
.catalog-select:focus,
.catalog-textarea:focus {
  border-color: var(--brand);
  background: var(--raised);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--info-fill) 20%, transparent);
}

.catalog-input.font-mono {
  font-family: var(--font-mono, monospace);
  font-size: 13px;
}

.catalog-textarea {
  resize: vertical;
  min-height: 76px;
  line-height: 1.5;
}

.catalog-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.catalog-input-prefix {
  position: absolute;
  left: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--subtle);
  pointer-events: none;
  z-index: 1;
}

.catalog-input.prefix-padded {
  padding-left: 36px;
}

.catalog-select-wrap {
  position: relative;
}

.catalog-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 32px;
  cursor: pointer;
}

.catalog-select-wrap::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 5px;
  background-color: var(--subtle);
  clip-path: polygon(100% 0%, 0 0%, 50% 100%);
  pointer-events: none;
}

/* Option Cards (Combinações & Adicionais) */
.catalog-option-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.catalog-option-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--r-opt);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
  user-select: none;
}

.catalog-option-card:hover {
  border-color: color-mix(in srgb, var(--info-fill) 60%, transparent);
  box-shadow: var(--shadow);
}

.catalog-option-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--brand);
  cursor: pointer;
}

.catalog-option-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.catalog-option-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.catalog-option-desc {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.4;
}

.catalog-subcategories {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.catalog-subcategories-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text2);
  display: block;
  margin-bottom: 8px;
}

.catalog-subcategories-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-subcat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--inset);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.catalog-subcat-pill:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.catalog-subcat-pill input[type="checkbox"] {
  accent-color: var(--brand);
}

/* Status & Vitrine Grid */
.catalog-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 640px) {
  .catalog-form-grid,
  .catalog-status-grid {
    grid-template-columns: 1fr;
  }
}

.catalog-toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--r-opt);
  padding: 14px 16px;
}

.catalog-toggle-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  flex: 1;
}

.catalog-toggle-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--brand);
  cursor: pointer;
}

.catalog-toggle-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.catalog-toggle-desc {
  display: block;
  font-size: 11.5px;
  color: var(--text2);
  margin-top: 2px;
}

.catalog-order-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.catalog-order-wrap label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
}

.catalog-order-input {
  width: 52px;
  padding: 6px 8px;
  border-radius: var(--r-paper);
  border: 1px solid var(--line);
  background: var(--inset);
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
}

.catalog-order-input:focus {
  border-color: var(--brand);
  background: var(--raised);
}

/* Modal Footer */
.catalog-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.showcase-carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 16px 8px 24px;
  width: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.showcase-carousel-track::-webkit-scrollbar {
  display: none;
}

.showcase-carousel-track .service-card {
  flex: 0 0 calc(50% - 12px);
  min-width: 320px;
  max-width: 580px;
  scroll-snap-align: start;
  margin: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  text-align: left;
}

@media (min-width: 992px) {
  .showcase-carousel-track.items-count-1 .service-card,
  .showcase-carousel-track.items-count-2 .service-card {
    flex: 1 1 calc(50% - 12px);
  }
}

@media (max-width: 768px) {
  .showcase-carousel-track .service-card {
    flex: 0 0 calc(100% - 24px);
    min-width: 280px;
    scroll-snap-align: center;
  }
}

.showcase-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--control);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: all 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-dot:hover {
  background: var(--brand);
}

.carousel-dot.active {
  width: 26px;
  background: var(--brand);
}

/* ==========================================================================
   Order Flow: Multi-document upload, custom options & simulation styles
   ========================================================================== */
.order-documents-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.doc-item-card {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--r-opt);
  padding: 18px;
  transition: box-shadow 200ms ease, border-color 200ms ease;
}

.doc-item-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--brand);
}

.doc-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 14px;
}

.doc-item-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--ink);
  min-width: 0;
  flex: 1 1 240px;
}

.doc-item-title > div:last-child {
  min-width: 0;
  flex: 1;
}

.doc-name-text {
  font-weight: 700;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.doc-type-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--on-grad);
  background: var(--brand);
}

.doc-type-icon.doc-icon-word {
  background: var(--brand);
}

.doc-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--wash);
  color: var(--brand);
}

.doc-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.doc-options-grid .field {
  margin-bottom: 0;
  min-width: 0;
}

.doc-options-grid label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.doc-options-grid select,
.doc-options-grid input {
  width: 100% !important;
  min-width: 0 !important;
  height: 44px !important;
  padding: 8px 34px 8px 12px !important;
  font-size: 13.5px !important;
  line-height: 1.4 !important;
  border-radius: var(--r-opt) !important;
  border: 1.5px solid var(--line) !important;
  background-color: var(--raised) !important;
  color: var(--ink) !important;
  box-sizing: border-box !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  transition: border-color 150ms ease, box-shadow 150ms ease !important;
}

.doc-options-grid select:focus,
.doc-options-grid input:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok-fill) 18%, transparent) !important;
}

.doc-pages-calc {
  display: block;
  font-size: 11.5px;
  color: var(--brand);
  font-weight: 600;
  margin-top: 5px;
}

.doc-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.doc-pricing-breakdown {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.breakdown-formula {
  font-weight: 600;
  color: var(--ink);
}

.breakdown-detail {
  font-size: 11.5px;
  color: var(--text2);
}

.doc-subtotal-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.doc-subtotal-val {
  font-weight: 800;
  color: var(--brand);
  font-size: 16px;
}

/* Order Notes Textarea - Aprimoramento estético e dimensional */
.order-notes-textarea {
  width: 100% !important;
  min-height: 115px !important;
  max-height: 280px !important;
  padding: 14px 16px !important;
  border-radius: var(--r-opt) !important;
  border: 1.5px solid var(--line) !important;
  background: var(--inset) !important;
  color: var(--ink) !important;
  font-family: inherit !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  resize: vertical !important;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease !important;
  box-sizing: border-box !important;
  display: block !important;
}

.order-notes-textarea:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok-fill) 18%, transparent) !important;
  background: var(--raised) !important;
}

/* Add-ons do Catálogo */
.order-addons-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.addon-card-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: var(--r-opt);
  border: 1.5px solid var(--line);
  background: var(--inset);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
  user-select: none;
}

.addon-card-item:hover {
  border-color: var(--brand);
  background: var(--raised);
}

.addon-card-item.active {
  border-color: var(--brand);
  background: var(--wash);
}

.addon-checkbox {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
  cursor: pointer;
}

.addon-info {
  flex: 1;
}

.addon-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.addon-name {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink);
}

.addon-price-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--raised);
  border: 1px solid var(--line);
  color: var(--brand);
  white-space: nowrap;
}

.addon-desc {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.4;
  margin: 0;
}

.btn-remove-doc {
  background: none;
  border: none;
  color: var(--bad);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--r-paper);
  cursor: pointer;
  transition: background 150ms ease;
}

.btn-remove-doc:hover {
  background: color-mix(in srgb, var(--bad-fill) 10%, transparent);
}

.simulation-panel {
  background: linear-gradient(135deg, color-mix(in srgb, var(--info-fill) 8%, transparent), color-mix(in srgb, var(--wash2) 8%, transparent));
  border: 1px solid var(--brand);
  border-radius: var(--r-seg);
  padding: 20px;
  margin-top: 24px;
}

.simulation-panel h3 {
  margin-top: 0;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.simulation-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.pix-box {
  background: var(--inset);
  border: 1px solid var(--line);
  border-radius: var(--r-seg);
  padding: 24px 20px;
  text-align: center;
  margin: 18px 0;
}

.pix-qr-container {
  width: 200px;
  height: 200px;
  margin: 14px auto;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--r-opt);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.pix-qr-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.pix-qr-mock {
  width: 180px;
  height: 180px;
  margin: 0 auto 14px;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--r-opt);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.pix-code-container {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pix-code-snippet {
  background: var(--raised);
  border: 1px dashed var(--line);
  padding: 10px 12px;
  border-radius: var(--r-paper);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  word-break: break-all;
  user-select: all;
  color: var(--ink);
  max-height: 80px;
  overflow-y: auto;
  text-align: left;
}

.pix-listening-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: color-mix(in srgb, var(--info-fill) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--info-fill) 25%, transparent);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  display: inline-block;
  flex-shrink: 0;
}

.live-dot.pulse {
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 color-mix(in srgb, var(--info-fill) 70%, transparent); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px color-mix(in srgb, var(--info-fill) 0%, transparent); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 color-mix(in srgb, var(--info-fill) 0%, transparent); }
}

.pix-success-card, .pix-expired-card {
  text-align: center;
  padding: 24px 16px;
}

.pix-success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ok-fill) 12%, transparent);
  color: var(--ok);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  margin: 0 auto 14px;
}

.pix-expired-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--bad-fill) 12%, transparent);
  color: var(--bad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 800;
  margin: 0 auto 14px;
}

.btn-success {
  background: var(--ok-fill) !important;
  color: var(--on-grad) !important;
  border-color: var(--ok-fill) !important;
}

.order-items-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0;
}

.order-items-table {
  width: 100%;
  border-collapse: collapse;
}

.order-items-table th,
.order-items-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.order-items-table th {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text2);
  white-space: nowrap;
}

.order-items-table .table-col-doc {
  min-width: 180px;
  max-width: 320px;
}

.order-items-table .doc-filename {
  display: block;
  font-weight: 700;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.35;
  color: var(--ink);
}

.order-items-table .doc-meta {
  font-size: 12px;
  color: var(--subtle);
  margin-top: 3px;
  line-height: 1.3;
}

.order-items-table .table-col-pages,
.order-items-table .table-col-config,
.order-items-table .table-col-copies,
.order-items-table .table-col-subtotal {
  white-space: nowrap;
}

/* Detalhes do Pedido (Documentos) */
.order-detail-doc-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 4px;
}

.order-detail-doc-name {
  font-weight: 700;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.35;
  color: var(--ink);
  flex: 1;
  min-width: 0;
}

.order-detail-doc-price {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}

.order-card > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.order-card strong {
  display: block;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Ferramentas / Colagem Integrada ao Carrinho */
.doc-thumb-preview-wrap {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: var(--r-opt);
  overflow: hidden;
  border: 2px solid var(--wash);
  box-shadow: var(--shadow);
  flex-shrink: 0;
  background: var(--raised);
}

.doc-item-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.doc-thumb-watermark-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: color-mix(in srgb, var(--ink) 65%, transparent);
  color: var(--on-grad);
  font-size: 8.5px;
  font-weight: 700;
  text-align: center;
  padding: 1px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Reusable Confirmation Modal */
@keyframes ioConfirmFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

#op-order-actions {
  display: flex;
  flex-direction: column;
}

#op-order-actions h2 {
  margin-top: 0;
  margin-bottom: 0;
}

#op-order-actions .btn,
#op-order-actions .alert,
#op-order-actions .badge {
  margin-top: auto;
  margin-bottom: auto;
}

#op-order-actions .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  min-height: 48px;
  line-height: 1;
}

.btn-toggle-password {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--r-paper);
  color: var(--text2);
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.btn-toggle-password:hover {
  background-color: var(--inset);
  color: var(--ink);
}

.password-meter {
  display: grid;
  gap: 4px;
  margin-top: 2px;
}

/* ==========================================================================
   C-COUNTER — Stepper de Cópias (US #438, Task #440)
   ========================================================================== */
.counter-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--control);
  border-radius: var(--r-opt);
  background: var(--raised);
  overflow: hidden;
  height: 38px;
  max-width: 140px;
}

.counter-stepper .stepper-btn {
  width: 38px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--raised);
  border: none;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease, opacity 0.15s ease;
  padding: 0;
}

.counter-stepper .stepper-btn:hover:not(:disabled) {
  background: var(--inset);
}

.counter-stepper .stepper-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.counter-stepper .stepper-input {
  width: 58px;
  height: 100%;
  border: none;
  border-left: 1px solid var(--control);
  border-right: 1px solid var(--control);
  border-radius: 0;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  background: var(--raised);
  padding: 0 4px;
  margin: 0;
  -moz-appearance: textfield;
}

.counter-stepper .stepper-input::-webkit-outer-spin-button,
.counter-stepper .stepper-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.counter-stepper .stepper-input:focus {
  background: var(--inset);
}

/* Toast Action Button (Undo / Desfazer) */


/* Order Collage Orientation Banner */
.order-collage-banner {
  background: var(--raised);
  border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
  border-radius: var(--r-seg);
  padding: 16px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: var(--shadow);
}

.order-collage-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 260px;
}

.order-collage-banner-icon {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
}

.order-collage-banner strong {
  display: block;
  font-size: 14.5px;
  color: var(--ink);
  margin-bottom: 4px;
}

.order-collage-banner span {
  display: block;
  font-size: 13px;
  color: var(--text2);
  line-height: 1.4;
}

/* ==========================================================================
   Multi-Address Management & Pictogram Picker Tokens & Styles (Tasks #443, #462, #463)
   ========================================================================== */

.address-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.address-card-item {
  background: var(--raised);
  border: 1.5px solid var(--line);
  border-radius: var(--r-seg);
  padding: 16px;
  position: relative;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.profile-address-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
  cursor: default;
}

.profile-address-card .address-card-text {
  flex: 1;
}

.address-card-item:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--ink) 5%, transparent);
}

.address-card-item.address-card-selected {
  border-color: var(--brand);
  background: var(--wash);
  box-shadow: 0 0 0 1.5px var(--brand);
}

.address-badge-default {
  display: inline-flex;
  align-items: center;
  height: 20px;
  box-sizing: border-box;
  padding: 0 8px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  background: var(--brand);
  color: var(--on-grad);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.address-badge-placeholder {
  display: inline-block;
  height: 20px;
  width: 1px;
  visibility: hidden;
}

.address-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.address-card-actions-slot-default {
  min-height: 38px;
  width: 100%;
  display: flex;
  align-items: center;
}

.address-btn-default,
.address-default-indicator-fixed {
  min-height: 38px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--r-pill);
}

.address-default-indicator-fixed {
  background: var(--wash);
  color: var(--brand);
  border: 1px dashed color-mix(in srgb, var(--brand) 35%, transparent);
}

.address-card-actions-slot-tools {
  min-height: 38px;
  flex-wrap: wrap;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.icon-picker-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 6px;
  margin-bottom: 12px;
}

@media (max-width: 480px) {
  .icon-picker-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
  }
}

.icon-picker-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 4px;
  border: 1.5px solid var(--line);
  background: var(--page);
  border-radius: var(--r-opt);
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
  color: var(--ink);
}

.icon-picker-btn .icon-emoji {
  font-size: 22px;
  line-height: 1;
}

.icon-picker-btn .icon-label {
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.icon-picker-btn:hover {
  border-color: var(--brand);
  background: var(--wash);
}

.icon-picker-btn.active,
.icon-picker-btn[aria-checked="true"] {
  border-color: var(--brand);
  background: var(--wash);
  box-shadow: 0 0 0 2px var(--brand);
}

/* Tooltip standard implementation */
[data-tooltip] {
  position: relative;
  display: inline-block;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 130%;
  right: 0;
  width: max-content;
  max-width: min(240px, calc(100vw - 48px));
  text-align: left;
  background-color: var(--ink);
  color: var(--page);
  padding: 6px 10px;
  border-radius: var(--r-paper);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 150ms ease, visibility 150ms ease;
  z-index: 1000;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--ink) 20%, transparent);
}

[data-tooltip]:hover::after,
[data-tooltip]:focus-within::after {
  opacity: 1;
  visibility: visible;
}

/* Address Modal Backdrop & Card */
.address-modal-backdrop {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--ink) 65%, transparent);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  padding: 16px;
  backdrop-filter: blur(4px);
}

.address-modal-backdrop.open {
  display: flex;
}

.address-modal-card {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: 0 16px 36px color-mix(in srgb, var(--ink) 20%, transparent);
  position: relative;
  animation: addressModalFadeIn 200ms ease;
}

@keyframes addressModalFadeIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
