/* ==========================================================================
   BASE — tokens, reset e componentes compartilhados (site + painel)
   Conceito: placas de barbearia — planos escuros e quentes, filetes finos,
   o dourado da marca como único acento. A cor principal e o estilo de
   tipografia podem ser trocados em Painel > Configurações > Aparência.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Cores (neutros puxados para o tom quente da marca) */
  --bg: #0d0c0a;
  --bg-raised: #13110e;
  --surface: #1a1713;
  --surface-2: #221e19;
  --surface-3: #2c2721;
  --line: rgba(243, 222, 190, 0.1);
  --line-strong: rgba(243, 222, 190, 0.2);
  --text: #f3ede3;
  --text-2: #bfb5a6;
  --text-3: #8f8679;

  --primary: #f39c12;
  --primary-ink: #1a1206;
  --primary-hover: color-mix(in oklab, var(--primary) 80%, white);
  --primary-soft: color-mix(in srgb, var(--primary) 14%, transparent);
  --primary-line: color-mix(in srgb, var(--primary) 45%, transparent);

  /* Cores de status (reservadas: nunca usadas como "cor de série") */
  --success: #3cb371;
  --success-soft: rgba(60, 179, 113, 0.14);
  --danger: #e5574f;
  --danger-soft: rgba(229, 87, 79, 0.14);
  --warning: #f2b632;
  --warning-soft: rgba(242, 182, 50, 0.14);
  --info: #5aa2f0;
  --info-soft: rgba(90, 162, 240, 0.14);
  --neutral-soft: rgba(191, 181, 166, 0.12);

  /* Tipografia */
  --font-brand: 'Rye', 'Georgia', serif;
  --font-heading: 'Rye', 'Georgia', serif;
  --heading-transform: none;
  --heading-tracking: 0.01em;
  --font-display: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: clamp(1.9rem, 3.6vw, 2.6rem);
  --fs-3xl: clamp(2.3rem, 5vw, 3.6rem);
  --fs-hero: clamp(2.7rem, 8vw, 5.4rem);

  /* Espaçamento, raios, sombras */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4.5rem;
  --sp-9: 6.5rem;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.65);
  --shadow-sm: 0 6px 16px -6px rgba(0, 0, 0, 0.6);

  --container: 1200px;
  --gutter: 1rem;
  --header-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Estilos de tipografia selecionáveis no painel */
html[data-font='moderno'] {
  --font-heading: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --heading-transform: uppercase;
  --heading-tracking: 0.02em;
}
html[data-font='elegante'] {
  --font-heading: 'Playfair Display', 'Georgia', serif;
  --heading-tracking: 0;
}

@media (min-width: 640px) {
  :root { --gutter: 1.5rem; }
}
@media (min-width: 1100px) {
  :root { --gutter: 2rem; --header-h: 76px; }
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.15; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:disabled { cursor: not-allowed; }
[hidden] { display: none !important; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-5) 0; }

::selection { background: var(--primary); color: var(--primary-ink); }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Barra de rolagem discreta */
* { scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 10px; border: 2px solid var(--bg); }
*::-webkit-scrollbar-track { background: transparent; }

/* ---------- Tipografia ---------- */
.heading {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: var(--heading-transform);
  letter-spacing: var(--heading-tracking);
}
.brand-font { font-family: var(--font-brand); font-weight: 400; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: currentColor;
}
.eyebrow.plain::before { display: none; }

.lead { font-size: var(--fs-md); color: var(--text-2); max-width: 60ch; }
.muted { color: var(--text-2); }
.subtle { color: var(--text-3); }
.text-sm { font-size: var(--fs-sm); }
.text-xs { font-size: var(--fs-xs); }
.num { font-variant-numeric: tabular-nums; }
.strong { font-weight: 600; color: var(--text); }
.upper {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.stack { display: flex; flex-direction: column; gap: var(--sp-4); }
.stack-sm { display: flex; flex-direction: column; gap: var(--sp-2); }
.stack-lg { display: flex; flex-direction: column; gap: var(--sp-6); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
.cluster-sm { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.spread { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.grow { flex: 1 1 auto; min-width: 0; }
.grid-2 { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.full { grid-column: 1 / -1; }
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Botões ---------- */
.btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--text);
  --btn-bd: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.6rem 1.15rem;
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.1;
  white-space: nowrap;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease);
  user-select: none;
}
.btn:hover { --btn-bd: var(--primary-line); color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.is-loading { opacity: 0.55; pointer-events: none; }
.btn i { font-size: 1.05em; line-height: 1; }

.btn-primary { --btn-bg: var(--primary); --btn-fg: var(--primary-ink); --btn-bd: var(--primary); }
.btn-primary:hover { --btn-bg: var(--primary-hover); --btn-bd: var(--primary-hover); }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--text); --btn-bd: var(--line-strong); }
.btn-outline:hover { --btn-fg: var(--primary); --btn-bd: var(--primary); }
.btn-ghost { --btn-bg: transparent; --btn-bd: transparent; --btn-fg: var(--text-2); }
.btn-ghost:hover { --btn-bg: var(--surface-2); --btn-bd: transparent; --btn-fg: var(--text); }
.btn-success { --btn-bg: var(--success-soft); --btn-fg: var(--success); --btn-bd: rgba(60, 179, 113, 0.35); }
.btn-success:hover { --btn-bg: var(--success); --btn-fg: #06140c; --btn-bd: var(--success); }
.btn-danger { --btn-bg: var(--danger-soft); --btn-fg: var(--danger); --btn-bd: rgba(229, 87, 79, 0.35); }
.btn-danger:hover { --btn-bg: var(--danger); --btn-fg: #1a0605; --btn-bd: var(--danger); }
.btn-whatsapp { --btn-bg: #1f9e55; --btn-fg: #fff; --btn-bd: #1f9e55; }
.btn-whatsapp:hover { --btn-bg: #25b864; --btn-bd: #25b864; --btn-fg: #fff; }

.btn-sm { min-height: 36px; padding: 0.4rem 0.8rem; font-size: 0.9rem; }
.btn-xs { min-height: 30px; padding: 0.25rem 0.6rem; font-size: 0.82rem; letter-spacing: 0.05em; }
.btn-lg { min-height: 54px; padding: 0.8rem 1.6rem; font-size: 1.12rem; }
.btn-block { width: 100%; }
.btn-icon { padding: 0; width: 40px; min-height: 40px; }
.btn-icon.btn-sm { width: 34px; min-height: 34px; }

.btn.is-loading::after {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.link {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Formulários ---------- */
.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.label {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
}
.label .opt { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--text-3); }

.input,
.select,
.textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.85rem;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(243, 222, 190, 0.3); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.input[type='date'], .input[type='time'] { min-height: 46px; }
.input[type='color'] { padding: 4px; width: 56px; cursor: pointer; }
.select {
  appearance: none;
  padding-right: 2.4rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.select option { background: var(--surface); color: var(--text); }

.input-sm { min-height: 38px; padding: 0.4rem 0.7rem; font-size: 0.95rem; }

.input-icon { position: relative; }
.input-icon > i {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
}
.input-icon > .input { padding-left: 2.5rem; }
.input-icon > .input-action {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: var(--text-3);
}
.input-icon > .input-action:hover { color: var(--text); background: var(--surface-3); }
.input-icon:has(.input-action) > .input { padding-right: 2.8rem; }

.help { font-size: var(--fs-sm); color: var(--text-3); }
.error-text { font-size: var(--fs-sm); color: var(--danger); display: none; }
.field.invalid .input,
.field.invalid .select,
.field.invalid .textarea { border-color: var(--danger); }
.field.invalid .error-text { display: block; }

input[type='checkbox'], input[type='radio'] { accent-color: var(--primary); width: 18px; height: 18px; }
.check {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: var(--fs-sm);
  color: var(--text-2);
  cursor: pointer;
  line-height: 1.4;
}
.check input { flex: 0 0 auto; margin-top: 1px; }

/* Interruptor (toggle) */
.switch { display: inline-flex; align-items: center; gap: 0.7rem; cursor: pointer; font-size: var(--fs-sm); color: var(--text-2); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track {
  position: relative;
  flex: 0 0 auto;
  width: 42px;
  height: 24px;
  border-radius: 99px;
  background: var(--surface-3);
  border: 1px solid var(--line-strong);
  transition: background-color 0.2s;
}
.switch .track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-2);
  transition: transform 0.2s var(--ease), background-color 0.2s;
}
.switch input:checked + .track { background: var(--primary); border-color: var(--primary); }
.switch input:checked + .track::after { transform: translateX(18px); background: var(--primary-ink); }
.switch input:focus-visible + .track { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Chips selecionáveis (radio/checkbox estilizados) */
.chip-group { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 38px;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  background: transparent;
  color: var(--text-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s;
}
.chip:hover { border-color: var(--primary-line); color: var(--text); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip.active,
.chip:has(input:checked) {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-ink);
}
.chip:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.chip .count { font-family: var(--font-body); font-size: 0.78rem; opacity: 0.75; }

/* ---------- Cartões e painéis ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card-pad { padding: var(--sp-5); }
@media (min-width: 900px) {
  .card-pad { padding: var(--sp-6); }
}

/* ---------- Status, badges e pílulas ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  border: 1px solid transparent;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.badge i { font-size: 0.85em; }
.badge-confirmado { background: var(--info-soft); color: var(--info); border-color: rgba(90, 162, 240, 0.3); }
.badge-concluido { background: var(--success-soft); color: var(--success); border-color: rgba(60, 179, 113, 0.3); }
.badge-cancelado { background: var(--neutral-soft); color: var(--text-2); border-color: var(--line-strong); }
.badge-faltou { background: var(--danger-soft); color: var(--danger); border-color: rgba(229, 87, 79, 0.3); }
.badge-primary { background: var(--primary-soft); color: var(--primary); border-color: var(--primary-line); }
.badge-neutral { background: var(--neutral-soft); color: var(--text-2); border-color: var(--line); }
.badge-warning { background: var(--warning-soft); color: var(--warning); border-color: rgba(242, 182, 50, 0.3); }

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }

/* ---------- Avatar ---------- */
.avatar {
  --av: 40px;
  flex: 0 0 auto;
  width: var(--av);
  height: var(--av);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--av-bg, var(--surface-3));
  color: var(--av-fg, var(--text));
  font-family: var(--font-display);
  font-weight: 700;
  font-size: calc(var(--av) * 0.38);
  letter-spacing: 0.04em;
  overflow: hidden;
  border: 2px solid var(--av-ring, transparent);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { --av: 32px; }
.avatar-lg { --av: 64px; }
.avatar-xl { --av: 96px; }

/* ---------- Tabelas ---------- */
.table-wrap { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table th {
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
.table td {
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.table tbody tr { transition: background-color 0.12s; }
.table tbody tr:hover { background: rgba(243, 222, 190, 0.03); }
.table .num, .table .right { text-align: right; }
.table tfoot td { font-weight: 700; border-bottom: 0; border-top: 1px solid var(--line-strong); }

/* ---------- Modal (usa <dialog>) ---------- */
dialog.modal {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}
dialog.modal[open] { display: flex; flex-direction: column; animation: modal-in 0.22s var(--ease); }
dialog.modal.modal-sm { width: min(420px, calc(100vw - 24px)); }
dialog.modal.modal-lg { width: min(820px, calc(100vw - 24px)); }
dialog.modal::backdrop { background: rgba(5, 4, 3, 0.72); backdrop-filter: blur(3px); }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.modal-body { padding: 1.25rem; overflow-y: auto; display: flex; flex-direction: column; gap: var(--sp-4); }
.modal-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--sp-2);
  padding: 0.9rem 1.25rem;
  border-top: 1px solid var(--line);
  background: var(--bg-raised);
}
.modal-foot .left { margin-right: auto; }

/* ---------- Toast ---------- */
.toasts {
  position: fixed;
  z-index: 1000;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
@media (min-width: 640px) {
  .toasts { left: auto; right: 20px; bottom: 20px; align-items: flex-end; }
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  width: min(420px, 100%);
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: var(--surface-3);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  font-size: 0.95rem;
  animation: toast-in 0.25s var(--ease);
}
.toast i { font-size: 1.15rem; line-height: 1.3; }
.toast > div { min-width: 0; overflow-wrap: anywhere; }
.toast.success i { color: var(--success); }
.toast.error i { color: var(--danger); }
.toast.info i { color: var(--info); }
.toast.leaving { opacity: 0; transform: translateY(6px); transition: all 0.2s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Menu suspenso ---------- */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 60;
  min-width: 220px;
  padding: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: var(--shadow);
  display: none;
}
.dropdown.open .dropdown-menu { display: block; animation: modal-in 0.15s var(--ease); }
.dropdown-menu a,
.dropdown-menu button {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  color: var(--text-2);
  font-size: 0.95rem;
  text-align: left;
}
.dropdown-menu a:hover,
.dropdown-menu button:hover { background: var(--surface-3); color: var(--text); }
.dropdown-menu .sep { height: 1px; background: var(--line); margin: 6px 0; }
.dropdown-menu .menu-head { padding: 0.55rem 0.7rem 0.4rem; }

/* ---------- Abas ---------- */
.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative;
  padding: 0.75rem 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}
.tab:hover { color: var(--text); }
.tab[aria-selected='true'] { color: var(--primary); }
.tab[aria-selected='true']::after {
  content: '';
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: -1px;
  height: 2px;
  background: var(--primary);
}

/* ---------- Estado vazio ---------- */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: var(--sp-7) var(--sp-4);
  color: var(--text-3);
}
.empty > i { font-size: 2rem; color: var(--text-3); }
.empty strong { color: var(--text); font-size: 1.05rem; }
.empty p { max-width: 42ch; font-size: var(--fs-sm); }

/* ---------- Faixa "poste de barbeiro" ---------- */
.pole {
  height: 6px;
  border-radius: 99px;
  background: repeating-linear-gradient(-45deg, var(--primary) 0 9px, var(--text) 9px 18px, var(--surface-3) 18px 27px);
  background-size: 38px 100%;
}
.pole.animated { animation: pole 1.4s linear infinite; }
@keyframes pole { to { background-position: 38px 0; } }

/* ---------- Faixa de demonstração ---------- */
.demo-ribbon {
  position: relative;
  z-index: 70;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 0.9rem;
  padding: 0.4rem var(--gutter);
  background: repeating-linear-gradient(-45deg, rgba(243, 156, 18, 0.12) 0 12px, transparent 12px 24px), var(--bg-raised);
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--text-2);
  text-align: center;
}
.demo-ribbon strong { color: var(--primary); font-family: var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; }
.demo-ribbon a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Acessibilidade de movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
.empty .btn { margin-top: 0.5rem; }

/* Grade de formulário (site e painel) */
.form-grid { display: grid; gap: var(--sp-4); }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 0.4rem; }

/* Aviso em linha */
.notice {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: var(--sp-4);
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.95rem;
}
.notice > i { color: var(--primary); font-size: 1.2rem; line-height: 1.3; }
.notice.warn { border-color: rgba(242, 182, 50, 0.35); background: var(--warning-soft); }
.notice.warn > i { color: var(--warning); }


/* ---------- Instalar o app (passo a passo do iPhone) ---------- */
.install-steps { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.6rem; color: var(--text-2); }
.install-steps i { color: var(--primary); }

/* ---------- Planos (página do produto e Painel › Assinatura) ---------- */
.plans { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.plan-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.plan-card.is-featured, .plan-card.is-current { border-color: var(--primary-line); background: linear-gradient(180deg, var(--primary-soft), var(--surface) 60%); }
.plan-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; line-height: 1.1; }
.plan-team { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--text-2); }
.plan-team i { color: var(--primary); }
.plan-price { display: flex; align-items: baseline; gap: 0.3rem; margin-top: auto; }
.plan-price strong { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.plan-price span { color: var(--text-3); }
.plan-tag { align-self: flex-start; }

/* ---------- Pular para o conteúdo ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 300;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  background: var(--primary);
  color: var(--primary-ink);
  font-weight: 700;
}
.skip-link:focus { top: 12px; color: var(--primary-ink); }
