:root {
  --tan: #c08e48;
  --tan-deep: #a87635;
  --tan-soft: #f0e4d0;
  --rose: var(--tan);
  --rose-deep: var(--tan-deep);
  --rose-soft: var(--tan-soft);
  --accent: var(--tan);
  --accent-deep: var(--tan-deep);
  --accent-soft: var(--tan-soft);
  --gold: var(--tan);
  --gold-deep: var(--tan-deep);
  --plate: #0c1525;
  --bg: #eff3f7;
  --surface: #fcf8f1;
  --surface-2: #ffffff;
  --text: #0c1525;
  --muted: #6b7a91;
  --line: rgba(12, 21, 37, 0.12);

  --kind-service: var(--accent, var(--rose));
  --kind-service-soft: var(--accent-soft, var(--rose-soft));
  --kind-product: #3d7a8c;
  --kind-product-soft: rgba(61, 122, 140, 0.14);
  --ok: #2f9e6a;
  --danger: #c43c4a;
  --font-display: "Syne", "Segoe UI", system-ui, sans-serif;
  --font: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(12, 21, 37, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 480px at 8% -8%, rgba(192, 142, 72, 0.14), transparent 55%),
    radial-gradient(700px 400px at 100% 0%, rgba(239, 243, 247, 0.9), transparent 50%),
    var(--bg);
  min-height: 100vh;
  line-height: 1.5;
}

a { color: var(--rose-deep); }

.banner {
  background: var(--plate);
  color: #fcf8f1;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding: 0.45rem 1rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 20;
}

.shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

.shell-narrow { max-width: 560px; }
.shell-wide { max-width: 1180px; }

h1, h2, h3 {
  margin: 0 0 10px;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.muted { color: var(--muted); }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand strong { display: block; }
.brand small { color: var(--muted); font-size: 0.8rem; }

.mark {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: url("/assets/mark.svg") center / cover no-repeat;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(192, 142, 72, 0.35);
}

.btn, button {
  border: 0;
  border-radius: 12px;
  background: var(--tan);
  color: var(--text);
  font-weight: 700;
  padding: 0.75rem 1.1rem;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover, button:hover {
  background: var(--tan-deep);
  color: var(--text);
}

.btn:active, button:active { transform: translateY(1px); }

.btn-ghost, button.ghost, a.btn.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
}

.btn-ghost:hover, button.ghost:hover, a.btn.ghost:hover {
  background: var(--rose-soft);
  border-color: rgba(192, 142, 72, 0.45);
  color: var(--rose-deep);
}

.btn-gold, button.btn-gold {
  background: linear-gradient(180deg, #d4a85c, var(--tan));
  color: var(--text);
}

.btn-gold:hover, button.btn-gold:hover {
  background: var(--tan-deep);
  color: var(--text);
}

.btn-danger, button.btn-danger {
  background: rgba(196, 60, 74, 0.1);
  color: var(--danger);
  border: 1px solid rgba(196, 60, 74, 0.22);
}

.btn-sm, button.btn-sm {
  padding: 0.4rem 0.7rem;
  font-size: 0.85rem;
  border-radius: 9px;
}

.grid { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card, .row, .stat, .panel-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: 0 1px 0 rgba(12, 21, 37, 0.02);
}

.stat b {
  display: block;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  color: var(--rose-deep);
}

.stat span {
  color: var(--muted);
  font-size: 0.85rem;
}

.tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: var(--rose-soft);
  color: var(--rose-deep);
  white-space: nowrap;
}

.tag.done { background: rgba(47, 158, 106, 0.14); color: var(--ok); }
.tag.warn { background: rgba(192, 142, 72, 0.2); color: #8a6430; }
.tag.danger { background: rgba(196, 60, 74, 0.12); color: var(--danger); }

label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

input, select, textarea {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  background: var(--surface-2);
  color: var(--text);
  width: 100%;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(192, 142, 72, 0.55);
  box-shadow: 0 0 0 3px rgba(192, 142, 72, 0.18);
}

input[type="color"] { padding: 0.2rem; height: 42px; }

input[type="date"] {
  max-width: 220px;
  min-height: 44px;
  width: auto;
  min-width: 11.5rem;
  color-scheme: light;
  line-height: 1.25;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.75;
  padding: 2px;
}

.form { display: grid; gap: 14px; }
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.cta-row.tight { margin: 0; }

.error { color: var(--danger); font-size: 0.9rem; }
.ok { color: var(--ok); }
.hidden { display: none !important; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.list { display: grid; gap: 10px; }

.cad-search {
  display: block;
  margin: 0 0 12px;
  max-width: 320px;
}

.hours-grid {
  display: grid;
  gap: 8px;
}

.hours-day {
  display: grid;
  grid-template-columns: 4.5rem 1fr 1fr;
  gap: 8px;
  align-items: center;
}

.hours-day span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.row strong { display: block; }
.row small { color: var(--muted); }

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.slot {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 11px;
  padding: 0.7rem;
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.slot small { color: var(--muted); font-weight: 500; }

.slot:hover {
  border-color: rgba(192, 142, 72, 0.5);
  transform: translateY(-1px);
}

.slot.selected {
  border-color: var(--rose);
  background: var(--rose-soft);
  color: var(--rose-deep);
}

.toast {
  position: fixed;
  bottom: 16px;
  right: 16px;
  background: var(--plate);
  color: #fff;
  border: 1px solid transparent;
  padding: 12px 16px;
  border-radius: 12px;
  z-index: 50;
  max-width: 320px;
  box-shadow: var(--shadow);
}

table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
}
th { color: var(--muted); font-weight: 600; }

.panel { animation: fadeIn 0.28s ease; }
.section-gap { margin-top: 28px; }
.stack-gap { margin-bottom: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.date-input { max-width: 180px; }

.reports-topbar {
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
}
.reports-actions {
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
}
.reports-date {
  display: grid;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}
.reports-date input {
  font-weight: 500;
  color: var(--text);
}

.select-auto { width: auto; }
.pro-name {
  border-left: 4px solid var(--rose);
  padding-left: 10px;
  display: block;
}

.pos-step {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}
.pos-step:first-of-type { border-top: 0; padding-top: 0; }
.pos-step-title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.pos-add-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}
.pos-select { width: 100%; }
.pos-disabled { opacity: 0.55; }
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ——— Public home ——— */
.page-public { overflow-x: hidden; }

.hero {
  position: relative;
  min-height: calc(100svh - 34px);
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      180deg,
      rgba(12, 21, 37, 0.22) 0%,
      rgba(12, 21, 37, 0.08) 28%,
      transparent 48%
    ),
    url("/assets/hero-portaria.jpg") center 35% / cover no-repeat;
  animation: fadeIn 1.1s ease both;
}

.hero-photo-zone {
  flex: 1 1 auto;
  min-height: clamp(180px, 38vh, 420px);
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 18px clamp(16px, 4vw, 28px);
  position: relative;
  z-index: 1;
}

.hero-team-link {
  color: #fcf8f1;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
  border-bottom: 1px solid transparent;
  transition: opacity 0.2s ease, border-color 0.2s ease;
  opacity: 0.92;
}

.hero-team-link:hover {
  opacity: 1;
  border-bottom-color: rgba(255, 250, 248, 0.55);
  color: #fcf8f1;
}

.hero-band {
  position: relative;
  z-index: 1;
  background: var(--bg);
  padding: 4px 0 clamp(28px, 5vh, 48px);
}

.hero-band::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: clamp(56px, 10vh, 96px);
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(239, 243, 247, 0.55) 40%,
    var(--bg) 100%
  );
  pointer-events: none;
}

.hero-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

.hero-copy {
  max-width: min(40rem, 94vw);
  animation: riseIn 0.75s ease both;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  animation: riseIn 0.7s ease both;
}

.hero-brand .mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.hero-brand-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.4vw, 3.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  text-wrap: balance;
}

.hero-brand-meta {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 10px;
  max-width: 28em;
  text-wrap: balance;
  color: var(--plate);
}

.hero-lede {
  color: var(--muted);
  max-width: 40ch;
  margin: 0;
  font-size: 1.05rem;
}

.hero-copy .cta-row { animation: riseIn 0.7s ease 0.14s both; }

.page-public .hero-copy .btn.ghost {
  background: var(--surface);
  border-color: rgba(12, 21, 37, 0.14);
}

.public-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 56px 16px 28px;
}

.public-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.section-lede {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.98rem;
}

.service-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.service-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.service-row strong {
  display: block;
  font-weight: 600;
}

.service-row small {
  color: var(--muted);
  font-size: 0.85rem;
}

.service-price {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--text);
}

.section-cta {
  margin: 22px 0 0;
}

.section-cta a {
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  color: var(--rose-deep);
}

.section-cta a:hover { opacity: 0.8; }

.team-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.team-item {
  margin: 0;
  padding: 16px 0 16px 14px;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid var(--pro-accent, var(--rose));
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.public-footer {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 16px 64px;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}

/* ——— Booking steps ——— */
.steps {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.step-pill {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.step-pill.on {
  color: var(--text);
  background: var(--tan);
  border-color: transparent;
}

.code-xl {
  font-size: 1.6rem;
  letter-spacing: 0.12em;
  color: var(--rose-deep);
  font-weight: 800;
}

.code-block {
  margin-top: 0.25rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px dashed rgba(192, 142, 72, 0.45);
  background: rgba(252, 248, 241, 0.85);
  text-align: center;
}

.code-block .muted {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
}

.code-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 2.4rem;
  color: var(--muted, #6b6b6b);
  font-size: 0.95rem;
}

.spinner {
  width: 1.15rem;
  height: 1.15rem;
  border: 2.5px solid rgba(192, 142, 72, 0.28);
  border-top-color: var(--rose-deep, #8a6430);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.receipt-cta {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.receipt-cta .receipt-btn {
  width: 100%;
  min-height: 2.85rem;
  font-size: 1rem;
}

.receipt-cta .receipt-hint {
  margin: 0;
  text-align: center;
  font-size: 0.82rem;
}

a.btn.btn-gold,
a.btn-gold {
  background: linear-gradient(180deg, #d4a85c, var(--tan));
  color: var(--text);
  text-decoration: none;
}

a.btn.btn-gold:hover,
a.btn-gold:hover {
  background: var(--tan-deep);
  color: var(--text);
}

.pay-qr-wrap {
  display: flex;
  justify-content: center;
  margin: 12px 0;
}
.pay-qr-wrap img {
  width: min(240px, 70vw);
  height: auto;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  border: 1px solid var(--line);
}
#pay-brcode,
#pix-modal-brcode {
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  resize: vertical;
}
.pix-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 16px;
}
.pix-modal.hidden { display: none !important; }
.pix-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 21, 37, 0.45);
}
.pix-modal-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  max-height: 90vh;
  overflow: auto;
}

/* ——— Admin shell ——— */
.login-wrap {
  min-height: calc(100vh - 34px);
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.login-card .cred {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 8px 0 0;
}

.app-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 34px);
}

.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: 0;
  height: calc(100vh - 34px);
  overflow-y: auto;
}

.sidebar .brand { padding: 4px 8px 16px; }

.nav-group {
  margin-top: 10px;
}

.nav-group-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 10px 6px;
}

.nav-tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}

.nav-tabs button {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  font-weight: 600;
  padding: 0.55rem 0.85rem;
  justify-content: flex-start;
  border-radius: 10px;
  width: 100%;
}

.nav-tabs button:hover {
  background: rgba(192, 142, 72, 0.08);
  color: var(--text);
}

.nav-tabs button.active {
  background: var(--rose-soft);
  border-color: rgba(192, 142, 72, 0.4);
  color: var(--rose-deep);
}

.app-main {
  padding: 22px 22px 48px;
  min-width: 0;
}

.app-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.sidebar-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
}

.sidebar-backdrop {
  display: none;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media,
  .hero-copy,
  .hero-brand,
  .hero-copy .cta-row,
  .panel,
  .btn, button, .slot {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    left: 0;
    top: 34px;
    bottom: 0;
    width: min(280px, 86vw);
    z-index: 40;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    height: auto;
    box-shadow: var(--shadow);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop.open {
    display: block;
    position: fixed;
    inset: 34px 0 0;
    background: rgba(12, 21, 37, 0.35);
    z-index: 35;
  }
  .sidebar-toggle { display: inline-flex; }
  .app-main { padding: 16px 14px 48px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { min-height: calc(100svh - 34px); }
  .hero-copy .cta-row { flex-direction: column; align-items: stretch; }
  .hero-copy .cta-row .btn { width: 100%; }
  .team-list { grid-template-columns: 1fr; }
  .row {
    flex-direction: column;
    align-items: flex-start;
  }
}

.card-mount {
  min-height: 120px;
  margin: 12px 0;
  padding: 8px 0;
}
#pay-tabs { margin-bottom: 8px; }

.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
.dash-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.mt-16 { margin-top: 16px; }
.spark-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  min-height: 120px;
  padding: 12px 4px 0;
}
.spark-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  height: 110px;
}
.spark-fill {
  width: 100%;
  max-width: 36px;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, var(--accent-soft, var(--rose-soft)), var(--accent, var(--rose)));
  min-height: 2px;
}
.spark-bar span {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
@media (max-width: 900px) {
  .grid-5, .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .dash-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-5, .grid-6 { grid-template-columns: repeat(2, 1fr); }
}

.row.pos-item--service {
  border-left: 4px solid var(--kind-service);
  background: color-mix(in srgb, var(--kind-service-soft) 55%, var(--surface));
}
.row.pos-item--product {
  border-left: 4px solid var(--kind-product);
  background: color-mix(in srgb, var(--kind-product-soft) 70%, var(--surface));
}
.tag.kind-service,
.tag.pos-kind.kind-service {
  background: var(--kind-service-soft);
  color: var(--kind-service);
}
.tag.kind-product,
.tag.pos-kind.kind-product {
  background: var(--kind-product-soft);
  color: var(--kind-product);
}
.pos-kind {
  margin-left: 6px;
  vertical-align: middle;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.row.pos-item--service strong,
.row.pos-item--product strong {
  display: inline;
}
@supports not (background: color-mix(in srgb, red 50%, white)) {
  .row.pos-item--service { background: var(--surface); }
  .row.pos-item--product { background: var(--surface); }
}

/* —— Conta do cliente / account chip —— */
.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.account-chip__avatar {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--accent-soft, var(--rose-soft));
  color: var(--accent-deep, var(--rose-deep));
  flex-shrink: 0;
}
.account-chip__name {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-chip__name strong { color: var(--text); font-weight: 600; }

.page-conta .topbar { margin-bottom: 0.5rem; }

.conta-hero {
  padding: 0.5rem 0 1.25rem;
  animation: conta-fade-up 0.45s ease both;
}
.conta-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
}
.conta-hero .section-lede { margin-bottom: 1rem; max-width: 28rem; }

.conta-next {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  animation: conta-fade-up 0.5s ease 0.06s both;
  position: relative;
  overflow: hidden;
}
.conta-next::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent, var(--rose)), var(--accent-deep, var(--rose-deep)));
}
.conta-next__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.5rem;
}
.conta-next__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
}
.conta-next__meta { margin: 0; color: var(--text); }
.conta-next__code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 0.55rem 0 0;
}
.conta-next__empty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.conta-next__empty p { margin: 0; color: var(--muted); }

.conta-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  padding: 0.65rem 0;
  margin: 0 0 1.25rem;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  animation: conta-fade-up 0.5s ease 0.1s both;
}
.conta-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.conta-nav a:hover { color: var(--text); }
.conta-nav a.is-active {
  color: var(--accent-deep, var(--rose-deep));
  border-bottom-color: var(--accent, var(--rose));
}

.conta-section {
  scroll-margin-top: 3.5rem;
  margin-bottom: 2.25rem;
  animation: conta-fade-up 0.55s ease 0.12s both;
}
.conta-section h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.conta-list { display: grid; gap: 0.65rem; }

.conta-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem 1rem;
  align-items: start;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
  background: var(--surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.conta-row:hover {
  border-color: color-mix(in srgb, var(--accent, var(--rose)) 35%, var(--line));
  box-shadow: 0 8px 24px rgba(42, 31, 34, 0.05);
}
.conta-row__title {
  font-weight: 700;
  margin: 0 0 0.15rem;
  letter-spacing: -0.02em;
}
.conta-row__meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.conta-row__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}
.conta-row__side {
  text-align: right;
  display: grid;
  gap: 0.45rem;
  justify-items: end;
}
.conta-row__price {
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
}
.conta-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}
.conta-row__note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.conta-empty {
  padding: 1.25rem 1rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}
.conta-empty a { font-weight: 600; }

.conta-profile {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.conta-profile form {
  display: grid;
  gap: 0.75rem;
}
.conta-profile h3 {
  font-size: 1rem;
  margin: 0 0 0.15rem;
}

.conta-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(42, 31, 34, 0.45);
  animation: conta-fade 0.2s ease both;
}
.conta-modal.hidden { display: none !important; }
.conta-modal__panel {
  width: min(28rem, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  animation: conta-fade-up 0.25s ease both;
}
.conta-modal__panel label { margin-top: 0.65rem; }

.conta-skel {
  height: 0.85rem;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--line), rgba(255,255,255,0.55), var(--line));
  background-size: 200% 100%;
  animation: conta-shimmer 1.1s ease infinite;
}
.conta-skel--lg { height: 5.5rem; border-radius: var(--radius); }
.conta-skel--md { height: 3.25rem; margin-bottom: 0.5rem; }

@keyframes conta-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes conta-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes conta-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@media (max-width: 640px) {
  .conta-row {
    grid-template-columns: 1fr;
  }
  .conta-row__side {
    text-align: left;
    justify-items: start;
  }
  .conta-row__actions { justify-content: flex-start; }
  .conta-profile { grid-template-columns: 1fr; }
  .account-chip__name { max-width: 6.5rem; }
}
@supports not (background: color-mix(in srgb, red 50%, white)) {
  .conta-nav { background: var(--bg); }
}
