/* ─── Design tokens ────────────────────────────────────────────────────────── */
:root {
  color-scheme: light;

  /* Surfaces */
  --canvas:        #f0ebe4;
  --surface:       #fffefb;
  --surface-soft:  #f8f4ef;
  --surface-muted: #ede8e1;

  /* Text */
  --ink:           #2c2826;
  --ink-soft:      #6b6460;
  --ink-faint:     #a09890;

  /* Separator */
  --line:          #ddd5cc;

  /* Brand — cobre/âmbar */
  --brand:         #8b6036;
  --brand-strong:  #6d4720;
  --brand-hover:   #5a3a17;
  --brand-soft:    #e8d9c4;
  --brand-pale:    #f5ede0;
  --brand-muted:   #f9f4ec;

  /* Blush — estado selecionado / detalhe feminino */
  --blush:         #c9897a;
  --blush-soft:    #f5e8e5;
  --blush-pale:    #fbf3f1;

  /* Sage — confirmação / sucesso */
  --sage:          #5a7a65;
  --sage-soft:     #deeae2;
  --sage-pale:     #eef5f0;

  /* Semânticos */
  --success:       var(--sage);
  --warning:       #8a592b;
  --danger:        #a04040;

  /* Elevation */
  --shadow-sm:     0 2px 8px rgba(44, 32, 20, 0.08);
  --shadow-md:     0 8px 32px rgba(44, 32, 20, 0.12);
  --shadow-lg:     0 24px 72px rgba(44, 32, 20, 0.16);

  /* Shape */
  --radius-panel:   24px;
  --radius-control: 14px;
  --radius-pill:    999px;

  /* Motion */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:   160ms;
  --dur-base:   220ms;
  --dur-slow:   340ms;

  /* Spacing scale (4px base) */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-7:  28px;
  --sp-8:  32px;
  --sp-9:  36px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-14: 56px;
  --sp-16: 64px;
}

/* ─── Typography roles ─────────────────────────────────────────────────────── */
:root {
  /* Display: Cormorant Garamond — personalidade editorial do salão */
  --font-display: "Cormorant Garamond", Georgia, serif;
  /* UI/Body: DM Sans — legível, moderna, calorosa */
  --font-ui:      "DM Sans", system-ui, -apple-system, sans-serif;

  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
}

/* ─── Vector SVG Icon System (Anti-Emoji, High-End Editorial) ────────────── */
.svg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: -0.15em;
  width: 1.15em;
  height: 1.15em;
  line-height: 1;
  flex-shrink: 0;
}
.svg-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  stroke: currentColor;
}
.svg-icon--fill svg {
  stroke: none;
  fill: currentColor;
}
.svg-icon-sm {
  width: 0.95em;
  height: 0.95em;
}
.svg-icon-lg {
  width: 1.35em;
  height: 1.35em;
}

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

html {
  background: var(--canvas);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  max-width: 100vw;
  background:
    radial-gradient(ellipse 60% 40% at 8% 0%, oklch(80% 0.06 55 / 0.22), transparent),
    radial-gradient(ellipse 40% 30% at 92% 100%, oklch(75% 0.05 15 / 0.12), transparent),
    var(--canvas);
  color: var(--ink);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input {
  font: inherit;
  color: inherit;
}

/* Focus ring — on-brand, accessible */
button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* Text selection */
::selection {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-faint); }

/* ─── Skip link ────────────────────────────────────────────────────────────── */
.skip-link {
  position: fixed;
  z-index: 10;
  top: var(--sp-3);
  left: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-control);
  background: var(--ink);
  color: var(--surface);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--dur-base) var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

/* ─── Prototype stage (desktop two-column) ─────────────────────────────────── */
.prototype-stage {
  display: grid;
  grid-template-columns: minmax(260px, 400px) minmax(360px, 520px);
  align-items: center;
  justify-content: center;
  gap: clamp(40px, 7vw, 100px);
  min-height: 100dvh;
  padding: var(--sp-12);
}

/* ─── Luxury Brand Sidebar (Desktop) ────────────────────────────────────────── */
.prototype-notes {
  max-width: 440px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 14px;
  margin-bottom: var(--sp-4);
  border-radius: var(--radius-pill);
  background: var(--brand-muted);
  border: 1px solid var(--brand-soft);
  color: var(--brand-strong);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 2px var(--sage-soft);
}

.brand-title {
  margin: 0 0 var(--sp-4);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--ink);
}

.brand-tagline {
  margin: 0 0 var(--sp-7);
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.6;
}

.brand-pillars {
  display: grid;
  gap: var(--sp-3);
  margin-bottom: var(--sp-7);
}

.pillar-card {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(139, 96, 54, 0.12);
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.pillar-card:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateX(4px);
}

.pillar-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-muted);
  color: var(--brand);
  margin-top: 2px;
}
.pillar-icon svg { width: 18px; height: 18px; }

.pillar-card strong {
  display: block;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
}

.pillar-card p {
  margin: 2px 0 0;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.studio-footer-card {
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}

.studio-hours {
  margin-bottom: var(--sp-4);
}
.studio-hours small {
  display: block;
  color: var(--ink-faint);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.studio-hours strong {
  display: block;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 2px;
}

.brand-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  width: 100%;
  max-width: 320px;
  padding: 12px 18px;
  border-radius: var(--radius-control);
  background: #15803d;
  color: #fffaf4;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(21, 128, 61, 0.2);
  transition: all var(--dur-base) var(--ease-out);
}
.brand-whatsapp-btn svg { width: 18px; height: 18px; }
.brand-whatsapp-btn:hover {
  background: #166534;
  box-shadow: 0 4px 14px rgba(22, 101, 52, 0.35);
  transform: translateY(-1px);
}

.aside-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
}

.text-action {
  display: inline-block;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1.5px solid currentColor;
  background: transparent;
  color: var(--brand-strong);
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color var(--dur-base) var(--ease-out);
}
.text-action:hover { color: var(--ink); }

/* ─── Device shell ──────────────────────────────────────────────────────────── */
.device-shell {
  width: min(100%, 500px);
  min-height: min(880px, calc(100dvh - var(--sp-12)));
  overflow: hidden;
  border: 1px solid rgba(110, 80, 48, 0.14);
  border-radius: 32px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

/* ─── App header ────────────────────────────────────────────────────────────── */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: 72px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 251, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.brand-logo {
  max-width: 130px;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  flex: 0 0 auto;
}

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn-my-bookings {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  border: 1px solid #dec29b;
  background: linear-gradient(135deg, #fff 0%, #fdf8f0 100%);
  color: var(--brand-strong);
  font-size: 0.6875rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--dur-fast) var(--ease-out);
}

.btn-my-bookings:hover {
  background: #fcf1e0;
  border-color: var(--brand);
  transform: translateY(-1px);
}

/* ─── PWA: instalar app ─────────────────────────────────────────────────────── */
.btn-install-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: var(--brand);
  color: #fffaf4;
  font-size: 0.6875rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}

.btn-install-app svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.btn-install-app:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-install-app[hidden] {
  display: none;
}

/* ─── PWA: banner de instalação manual (iOS) ───────────────────────────────── */
.ios-install-banner {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin: var(--sp-4) var(--sp-5) 0;
  padding: var(--sp-4);
  border-radius: var(--radius-control);
  background: var(--brand-pale);
  border: 1px solid var(--brand-soft);
  animation: iosBannerIn var(--dur-slow) var(--ease-out);
}

.ios-install-banner[hidden] {
  display: none;
}

.ios-install-banner-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--brand-strong);
  box-shadow: var(--shadow-sm);
}

.ios-install-banner-text {
  flex: 1 1 auto;
  min-width: 0;
}

.ios-install-banner-text strong {
  display: block;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.ios-install-banner-text p {
  color: var(--ink-soft);
  font-size: 0.8125rem;
  line-height: 1.5;
  margin: 0;
}

.ios-install-banner-close {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--ink-faint);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.ios-install-banner-close:hover {
  background: var(--surface-muted);
  color: var(--ink);
}

.ios-install-banner-close svg {
  width: 15px;
  height: 15px;
}

@keyframes iosBannerIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mode-switch {
  display: flex;
  gap: var(--sp-1);
  padding: var(--sp-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface-soft);
}

.mode-button {
  min-height: 34px;
  padding: 0 var(--sp-3);
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  transition:
    background var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out);
}
.mode-button.is-active {
  background: var(--ink);
  color: var(--surface);
}

/* ─── Views ─────────────────────────────────────────────────────────────────── */
.view { animation: view-in 280ms var(--ease-out) both; }

/* ─── Booking head ──────────────────────────────────────────────────────────── */
.booking-head {
  padding: var(--sp-8) var(--sp-6) var(--sp-5);
}

.booking-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
}

.booking-head > p {
  margin: var(--sp-2) 0 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* ─── Stepper ───────────────────────────────────────────────────────────────── */
.stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 var(--sp-5) var(--sp-5);
}

.step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: var(--sp-2);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-faint);
  cursor: pointer;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.step::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 13px;
  left: -50%;
  width: 100%;
  height: 1px;
  background: var(--line);
}
.step:first-child::before { display: none; }

.step span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-faint);
  font-size: 0.75rem;
  transition:
    background var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out);
}

.step.is-active,
.step.is-complete {
  color: var(--brand-strong);
}
.step.is-active span,
.step.is-complete span {
  border-color: var(--brand);
  background: var(--brand);
  color: #fffaf4;
}
.step.is-complete::before,
.step.is-active::before {
  background: var(--brand);
}

/* ─── Selection strip ───────────────────────────────────────────────────────── */
.selection-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin: 0 var(--sp-5);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-control);
  background: var(--brand-muted);
  border: 1px solid var(--brand-soft);
}

.selection-strip div { min-width: 0; }

.selection-strip span,
.selection-strip strong { display: block; }

.selection-strip span {
  color: var(--ink-soft);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.selection-strip div strong {
  overflow: hidden;
  margin-top: var(--sp-1);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9375rem;
  font-weight: 500;
}

.selection-strip > strong {
  flex: 0 0 auto;
  color: var(--brand-strong);
  font-size: 1.0625rem;
  font-weight: 700;
}

/* ─── Step panels ───────────────────────────────────────────────────────────── */
.step-panel {
  padding: var(--sp-7) var(--sp-5) var(--sp-6);
}

.step-panel.is-active {
  animation: panel-in-next var(--dur-slow) var(--ease-out) both;
}
.step-panel.is-active[data-direction="prev"] {
  animation: panel-in-prev var(--dur-slow) var(--ease-out) both;
}

.section-heading { margin-bottom: var(--sp-6); }

.section-heading h3,
.admin-section-heading h3,
.confirmation-heading h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.section-heading p,
.admin-section-heading p,
.confirmation-heading p {
  margin: var(--sp-1) 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* ─── Service list ──────────────────────────────────────────────────────────── */
.service-list,
.payment-list {
  display: grid;
}

.service-option,
.payment-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  min-height: 76px;
  padding: var(--sp-3) var(--sp-1);
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition:
    background var(--dur-fast) var(--ease-out),
    padding var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.service-option:hover,
.payment-option:hover {
  padding-right: var(--sp-3);
  padding-left: var(--sp-3);
  background: var(--surface-soft);
}

.service-option[aria-pressed="true"],
.payment-option[aria-pressed="true"] {
  padding-right: var(--sp-3);
  padding-left: var(--sp-3);
  background: var(--brand-muted);
}

/* ─── Service icon ──────────────────────────────────────────────────────────── */
.service-icon,
.payment-icon {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--brand);
  transition:
    background var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out);
}

.service-icon svg,
.payment-icon svg {
  width: 20px;
  height: 20px;
}

.service-option[aria-pressed="true"] .service-icon,
.payment-option[aria-pressed="true"] .payment-icon {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

/* Admin icon variant */
.admin-icon {
  width: 38px;
  height: 38px;
}
.admin-icon svg {
  width: 17px;
  height: 17px;
}

.service-copy,
.payment-option > span:nth-child(2) { min-width: 0; }

.service-copy strong,
.service-copy small,
.payment-option strong,
.payment-option small { display: block; }

.service-copy strong,
.payment-option strong { font-size: 0.9375rem; font-weight: 500; }

.service-copy small,
.payment-option small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 0.8125rem;
}

.service-price {
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink);
  text-align: right;
}

.service-price .price-prefix {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: -2px;
}

.service-price .price-on-quote {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-strong);
  background: var(--brand-wash);
  padding: 3px 8px;
  border-radius: var(--radius-control);
  border: 1px solid var(--brand-line);
}

.service-pricing-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  padding: 2px 7px;
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: 9999px;
  width: fit-content;
}

.service-pricing-badge.is-starting {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.service-pricing-badge.is-quote {
  background: #fdf4ff;
  color: #86198f;
  border: 1px solid #f5d0fe;
}

/* ─── Check mark ────────────────────────────────────────────────────────────── */
.check-mark {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: transparent;
  transition:
    background var(--dur-base) var(--ease-spring),
    border-color var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-spring);
}

.check-mark svg {
  width: 12px;
  height: 12px;
}

.service-option[aria-pressed="true"] .check-mark {
  border-color: var(--brand);
  background: var(--brand);
  color: #fffaf4;
  transform: scale(1.08);
}

/* ─── Fieldset / legend ─────────────────────────────────────────────────────── */
.field-group {
  margin: 0 0 var(--sp-6);
  padding: 0;
  border: 0;
}

.field-group legend {
  margin-bottom: var(--sp-2);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ─── Segmented chips / date scroller ──────────────────────────────────────── */
.segmented-options {
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  padding: 2px 4px var(--sp-2);
  scrollbar-width: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.segmented-options::-webkit-scrollbar { display: none; }

/* ─── Structured Date Grid (3 rows x 5 columns = 15 days) ─────────────────── */
.calendar-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
}

.calendar-header-bar legend {
  margin: 0;
}

.calendar-month-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--brand-muted);
  border: 1px solid var(--brand-soft);
  color: var(--brand-strong);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.date-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  width: 100%;
}

.choice-chip,
.week-strip button,
.filter-button {
  flex: 0 0 auto;
  border: 1.5px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  transition:
    border-color var(--dur-base) var(--ease-out),
    background var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out),
    transform var(--dur-fast) var(--ease-spring);
}

.choice-chip {
  min-height: 40px;
  padding: 0 var(--sp-4);
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 500;
}

.choice-chip.is-selected,
.week-strip button.is-selected {
  border-color: var(--brand);
  background: var(--brand);
  color: #fffaf4;
}

.date-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 62px;
  padding: 6px 2px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  line-height: 1.1;
  text-align: center;
  transition:
    border-color var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-spring),
    box-shadow var(--dur-fast) var(--ease-out);
}

.date-option:hover {
  border-color: var(--brand-soft);
  background: var(--surface-soft);
  transform: translateY(-1px);
}

.date-option.is-selected {
  border-color: var(--brand);
  background: var(--brand);
  color: #fffaf4;
  box-shadow: 0 4px 12px rgba(139, 96, 54, 0.28);
  transform: translateY(-1px);
}

.date-option span {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.date-option strong {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
}

.date-option small {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-top: 2px;
  opacity: 0.85;
}

.date-option.is-selected span,
.date-option.is-selected strong,
.date-option.is-selected small {
  color: #fffaf4;
}

/* ─── Time grid ─────────────────────────────────────────────────────────────── */
.time-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
}

.time-option {
  min-height: 44px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9375rem;
  transition:
    background var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    transform var(--dur-fast) var(--ease-spring);
}
.time-option:hover { border-color: var(--brand); }
.time-option.is-selected {
  border-color: var(--brand);
  background: var(--brand);
  color: #fffaf4;
}

.skeleton-time {
  height: 44px;
  border-radius: var(--radius-control);
  background: linear-gradient(90deg,
    var(--surface-muted) 0%,
    var(--surface-soft) 50%,
    var(--surface-muted) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
}

.empty-slots {
  grid-column: 1 / -1;
  padding: var(--sp-5) var(--sp-4);
  border-radius: var(--radius-control);
  background: var(--surface-soft);
  color: var(--ink-soft);
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ─── Horários Sob Consulta (Flexibilidade / Encaixes) ───────────────────── */
.time-option-consultation {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  min-height: 48px;
  border: 1.5px dashed rgba(139, 96, 54, 0.45);
  background: var(--surface-soft);
  color: var(--ink);
  cursor: pointer;
  position: relative;
  transition: all var(--dur-fast) var(--ease-out);
}

.time-option-consultation:hover {
  border-color: #25d366;
  background: #f0fdf4;
  color: #166534;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.15);
}

.time-option-consultation span {
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.1;
}

.consultation-tag {
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--brand-strong);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.time-option-consultation:hover .consultation-tag {
  color: #166534;
}

.time-option-consultation::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 6px;
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b45309' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1 3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.75;
}

.slots-section-title {
  grid-column: 1 / -1;
  margin: 12px 0 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--brand-strong);
  display: flex;
  align-items: center;
  gap: 6px;
}

.consultation-help-card {
  grid-column: 1 / -1;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-control);
  background: #fdfaf7;
  border: 1px solid var(--brand-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.consultation-help-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.consultation-help-text {
  flex: 1 1 200px;
  min-width: 0;
}

.consultation-help-text strong {
  display: block;
  font-size: 0.8125rem;
  color: var(--ink);
  margin-bottom: 2px;
}

.consultation-help-text p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--ink-soft);
  line-height: 1.35;
}

.consultation-help-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: #25d366;
  color: #ffffff !important;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--dur-fast);
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.3);
}

.consultation-help-btn:hover {
  background: #1eb954;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
}

/* ─── Payment options ───────────────────────────────────────────────────────── */
.payment-option {
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 88px;
}

.radio-mark {
  display: block;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px var(--surface);
  transition:
    background var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}
.payment-option[aria-pressed="true"] .radio-mark {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: inset 0 0 0 3px var(--surface);
}

/* ─── Pix note callout ──────────────────────────────────────────────────────── */
.pix-note {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
  padding: var(--sp-4);
  border-radius: var(--radius-control);
  background: var(--brand-muted);
  border: 1px solid var(--brand-soft);
}

.note-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-strong);
}
.note-icon svg { width: 14px; height: 14px; }

.pix-note-content {
  flex: 1;
  min-width: 0;
}

.pix-note strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.pix-key-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  margin: var(--sp-2) 0 var(--sp-1);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-control);
  background: var(--surface);
  border: 1.5px solid var(--line);
}

.pix-key-box code {
  font-family: ui-monospace, monospace;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand-strong);
  letter-spacing: 0.02em;
}

.copy-badge-button {
  padding: 4px 10px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--brand-strong);
  color: #fffaf4;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  transition: background var(--dur-base) var(--ease-out);
}
.copy-badge-button:hover {
  background: var(--brand-hover);
}

.pix-receiver {
  display: block;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

/* ─── Inline error ──────────────────────────────────────────────────────────── */
.inline-message {
  min-height: 20px;
  margin: var(--sp-3) 0 0;
  color: var(--danger);
  font-size: 0.8125rem;
  font-weight: 600;
}

/* ─── Confirmation step ─────────────────────────────────────────────────────── */
.confirm-icon {
  display: grid;
  width: 56px;
  height: 56px;
  margin-bottom: var(--sp-5);
  place-items: center;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--sage);
}
.confirm-icon svg { width: 28px; height: 28px; }

.confirmation-heading { margin-bottom: var(--sp-1); }

/* ─── Review list ───────────────────────────────────────────────────────────── */
.review-list {
  margin: var(--sp-6) 0 var(--sp-5);
  border-top: 1px solid var(--line);
}

.review-list > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: var(--sp-5);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line);
}

.review-list dt {
  color: var(--ink-soft);
  font-size: 0.8125rem;
}

.review-list dd {
  margin: 0;
  text-align: right;
  font-size: 0.875rem;
  font-weight: 500;
}

.review-list .review-total dt,
.review-list .review-total dd {
  color: var(--brand-strong);
  font-size: 1rem;
  font-weight: 700;
}

/* ─── Contact fields ────────────────────────────────────────────────────────── */
.contact-fields {
  display: grid;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

.field-label {
  display: grid;
  gap: var(--sp-1);
}

.field-label span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.field-label input {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9375rem;
  transition:
    border-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

.field-label input::placeholder { color: var(--ink-faint); }

.field-label input:focus-visible {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

/* ─── Consent row ───────────────────────────────────────────────────────────── */
.consent-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: var(--sp-3);
  color: var(--ink-soft);
  font-size: 0.875rem;
  cursor: pointer;
}

.consent-row input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--brand);
}

.turnstile-wrap {
  display: grid;
  justify-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}

#bookingTurnstile {
  width: 100%;
  min-height: 65px;
}

.security-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

/* ─── Booking actions (sticky bottom bar with smooth reveal) ──────────────── */
.booking-actions {
  position: sticky;
  z-index: 10;
  bottom: 0;
  display: flex;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5) calc(var(--sp-3) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 254, 251, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 -4px 16px rgba(44, 30, 16, 0.08);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.booking-actions[hidden] {
  display: none !important;
}

/* ─── Buttons ───────────────────────────────────────────────────────────────── */
.primary-button,
.secondary-button,
.compact-button {
  min-height: 48px;
  border-radius: var(--radius-control);
  cursor: pointer;
  font-weight: 600;
  transition:
    background var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out),
    transform var(--dur-fast) var(--ease-spring),
    box-shadow var(--dur-base) var(--ease-out);
}

.booking-actions .primary-button {
  flex: 1;
}

.booking-actions .secondary-button {
  flex: 0 0 100px;
}

.primary-button {
  border: 1.5px solid var(--brand-strong);
  background: var(--brand-strong);
  color: #fffaf4;
  font-size: 0.9375rem;
}
.primary-button:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  box-shadow: 0 4px 16px rgba(109, 71, 32, 0.3);
}

.secondary-button {
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.875rem;
}
.secondary-button:hover { background: var(--surface-soft); }

/* ─── Admin head ────────────────────────────────────────────────────────────── */
.admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-4);
  padding: var(--sp-6) var(--sp-5) var(--sp-4);
}

.admin-head-brand {
  flex: 1 1 180px;
  min-width: 0;
}

.admin-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--ink);
}

.admin-head-brand p {
  margin: var(--sp-1) 0 0;
  color: var(--ink-soft);
  font-size: 0.8125rem;
}

.admin-head-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.compact-button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 var(--sp-3);
  border: 1.5px solid var(--brand-strong);
  background: var(--brand-strong);
  color: #fffaf4;
  font-size: 0.8125rem;
  font-weight: 600;
}
.compact-button:hover { background: var(--brand-hover); border-color: var(--brand-hover); }

.ghost-button {
  min-height: 32px;
  padding: 0 var(--sp-3);
  border: 1.5px solid var(--brand-soft);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--brand-strong);
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  flex: 0 0 auto;
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.ghost-button:hover { background: var(--brand-soft); }

/* ─── Admin Navigation Bar & App Drawer ───────────────────────────────────── */
.admin-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
  box-sizing: border-box;
}

.admin-menu-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1.5px solid var(--brand-line);
  border-radius: var(--radius-control);
  color: var(--brand-strong);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: background var(--dur-fast), transform var(--dur-fast), border-color var(--dur-fast);
}

.admin-menu-toggle-btn:hover {
  background: var(--surface-muted);
  border-color: var(--brand);
  transform: translateY(-1px);
}

.admin-menu-toggle-btn .menu-icon {
  font-size: 1.125rem;
  line-height: 1;
}

.admin-menu-toggle-btn .chevron-icon {
  opacity: 0.7;
}

.admin-nav-hint {
  font-size: 0.6875rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Modal Drawer de Navegação */
.admin-drawer-dialog {
  border: none;
  border-radius: var(--radius-card);
  padding: 0;
  width: 90%;
  max-width: 420px;
  background: var(--surface);
  box-shadow: var(--shadow-modal);
  overflow: hidden;
}

.admin-drawer-dialog::backdrop {
  background: rgba(20, 16, 12, 0.45);
  backdrop-filter: blur(4px);
}

.admin-drawer-content {
  padding: var(--sp-5);
}

.admin-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--sp-3);
}

.drawer-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast);
}

.drawer-close-btn:hover {
  background: var(--surface-muted);
  color: var(--ink);
}

.admin-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-control);
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  transition: background var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
}

.drawer-nav-item:hover {
  background: var(--surface-soft);
  border-color: var(--line);
}

.drawer-nav-item.is-active {
  background: var(--surface-soft);
  border-color: var(--brand-line);
}

.drawer-item-icon {
  font-size: 1.25rem;
  line-height: 1;
  width: 28px;
  text-align: center;
}

.drawer-item-text {
  flex: 1;
}

.drawer-item-text strong {
  display: block;
  font-size: 0.875rem;
  color: var(--ink);
}

.drawer-nav-item.is-active .drawer-item-text strong {
  color: var(--brand-strong);
}

.drawer-item-text small {
  display: block;
  font-size: 0.6875rem;
  color: var(--ink-soft);
}

.drawer-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  background: var(--sage);
  color: #ffffff;
}

/* ─── Notification Bell in Admin Header ────────────────────────────────────── */
.admin-greeting-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-greeting-row h2 {
  margin: 0;
}

.admin-notif-bell-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.125rem;
  transition: all var(--dur-fast) var(--ease-out);
  box-shadow: 0 2px 8px rgba(44, 30, 16, 0.08);
  flex-shrink: 0;
}

.admin-notif-bell-btn:hover {
  background: var(--brand-muted);
  border-color: var(--brand-soft);
  transform: translateY(-1px);
}

.admin-notif-bell-btn:active {
  transform: translateY(1px);
}

.bell-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 9999px;
  background: #dc2626;
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--surface);
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.45);
  animation: bellBadgePulse 2.2s infinite ease-in-out;
}

@keyframes bellBadgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

/* ─── Notification Center Modal ────────────────────────────────────────────── */
.notif-center-modal {
  max-width: 480px;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-card);
}

.notif-center-body {
  padding: 14px 16px 20px;
  max-height: 65vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notif-card-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-control);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  cursor: pointer;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
  transition: all var(--dur-fast);
}

.notif-card-item:hover {
  background: var(--surface);
  border-color: var(--brand-soft);
  box-shadow: 0 3px 10px rgba(139, 96, 54, 0.12);
  transform: translateY(-1px);
}

.notif-card-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.notif-card-content {
  flex: 1;
  min-width: 0;
}

.notif-card-content strong {
  display: block;
  font-size: 0.8125rem;
  color: var(--ink);
  line-height: 1.3;
}

.notif-card-content p {
  margin: 2px 0 0;
  font-size: 0.75rem;
  color: var(--ink-soft);
  line-height: 1.35;
}

.notif-card-tag {
  font-size: 0.6875rem;
  color: var(--brand-strong);
  font-weight: 700;
  margin-top: 4px;
  display: inline-block;
}

/* ─── Admin panel ───────────────────────────────────────────────────────────── */
.admin-panel {
  padding: var(--sp-6) var(--sp-5) var(--sp-8);
  animation: panel-in-next var(--dur-slow) var(--ease-out) both;
}

/* ─── Today overview ────────────────────────────────────────────────────────── */
.today-overview,
.payment-summary {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--sp-5);
  padding: var(--sp-5);
  border-radius: var(--radius-panel);
  background: var(--ink);
  color: var(--surface);
}

.primary-stat span,
.primary-stat small,
.payment-summary span,
.payment-summary small {
  display: block;
  color: var(--ink-faint);
  font-size: 0.75rem;
}
/* Override for dark surface */
.today-overview .primary-stat span,
.today-overview .primary-stat small,
.payment-summary span,
.payment-summary small {
  color: #b5aca6;
}

.primary-stat strong,
.payment-summary > div > strong {
  display: block;
  margin: var(--sp-1) 0;
  color: var(--surface);
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.payment-summary > div > strong { font-size: 1.875rem; }

.supporting-stats,
.payment-summary dl {
  display: grid;
  align-content: center;
  gap: var(--sp-3);
  margin: 0;
  padding-left: var(--sp-5);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.supporting-stats div,
.payment-summary dl div { display: grid; gap: 2px; }

.supporting-stats dt,
.payment-summary dt {
  color: #b5aca6;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.supporting-stats dd,
.payment-summary dd {
  margin: 0;
  color: var(--surface);
  font-size: 0.9375rem;
  font-weight: 600;
}

/* ─── Admin section heading ─────────────────────────────────────────────────── */
.admin-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin: var(--sp-7) 0 var(--sp-3);
}
.admin-section-heading .text-action { margin: 0; }
.admin-section-heading.stacked { display: block; margin-top: 0; }

/* ─── Appointment list ──────────────────────────────────────────────────────── */
.appointment-list {
  display: grid;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
}

.appointment-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-control);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  transition: all var(--dur-fast) var(--ease-out);
}

.appointment-row:hover {
  background: var(--surface);
  border-color: var(--brand-soft);
}

.appointment-row time {
  color: var(--brand-strong);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.appointment-row strong {
  display: block;
  font-size: 0.875rem;
  color: var(--ink);
}

.appointment-row p {
  margin: 2px 0 0;
  color: var(--ink-soft);
  font-size: 0.8125rem;
}

.appointment-row small {
  display: block;
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 0.75rem;
}

.appointment-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 110px;
}

.appointment-btn-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.appointment-row.is-cancelled {
  opacity: 0.55;
  background: var(--surface-muted);
}

.appt-complete-btn {
  padding: 4px 8px;
  border: 1px solid rgba(22, 101, 52, 0.25);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--sage);
  cursor: pointer;
  font-size: 0.6875rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all var(--dur-base) var(--ease-out);
}
.appt-complete-btn:hover {
  background: var(--sage-soft);
  border-color: var(--sage);
}

.appt-cancel-btn {
  padding: 4px 8px;
  border: 1px solid rgba(197, 48, 48, 0.25);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--danger);
  cursor: pointer;
  font-size: 0.6875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all var(--dur-base) var(--ease-out);
}
.appt-cancel-btn:hover {
  background: #fdf2f2;
  border-color: var(--danger);
}

/* ─── Status badges ─────────────────────────────────────────────────────────── */
.status {
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--radius-pill);
  background: var(--surface-muted);
  color: var(--ink-soft);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.status-paid {
  background: var(--sage-soft);
  color: var(--sage);
}

.status-warning {
  background: var(--blush-soft);
  color: var(--blush);
}

/* ─── Notification badge ────────────────────────────────────────────────────── */
.notification-badge {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
  padding: var(--sp-4);
  border-radius: var(--radius-control);
  background: var(--brand-muted);
  border: 1px solid var(--brand-soft);
}

.notif-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.notification-badge > div { flex: 1; min-width: 0; }

.notification-badge strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
}

.notification-badge p {
  margin: 2px 0 0;
  color: var(--ink-soft);
  font-size: 0.8125rem;
}

/* ─── Admin Date Grid (3 rows x 5 columns = 15 days) ──────────────────────── */
.admin-date-grid,
.week-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: var(--sp-4);
  width: 100%;
}

.admin-date-grid button,
.week-strip button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  padding: 6px 2px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  line-height: 1.1;
  text-align: center;
  transition: all var(--dur-fast) var(--ease-spring);
}

.admin-date-grid button:hover,
.week-strip button:hover {
  border-color: var(--brand-soft);
  background: var(--surface-soft);
  transform: translateY(-1px);
}

.admin-date-grid button.is-selected,
.week-strip button.is-selected {
  border-color: var(--brand);
  background: var(--brand);
  color: #fffaf4;
  box-shadow: 0 4px 12px rgba(139, 96, 54, 0.28);
  transform: translateY(-1px);
}

.admin-date-grid button span,
.week-strip button span {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.admin-date-grid button strong,
.week-strip button strong {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1;
}

.admin-date-grid button small,
.week-strip button small {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-top: 2px;
  opacity: 0.85;
}

.admin-date-grid button.is-selected span,
.admin-date-grid button.is-selected strong,
.admin-date-grid button.is-selected small,
.week-strip button.is-selected span,
.week-strip button.is-selected strong,
.week-strip button.is-selected small {
  color: #fffaf4;
}

/* ─── Agenda timeline ───────────────────────────────────────────────────────── */
.agenda-timeline { display: grid; gap: var(--sp-2); }

.agenda-timeline > div:not(.agenda-extension-box):not(.agenda-notice-box),
.open-slot {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: var(--sp-3);
  min-height: 68px;
  padding: var(--sp-3) var(--sp-4);
  border: 0;
  border-radius: var(--radius-control);
  background: var(--surface-soft);
}

.agenda-timeline time,
.open-slot {
  color: var(--brand-strong);
  font-size: 0.8125rem;
  font-weight: 700;
}

.agenda-timeline p { margin: 0; }

.agenda-timeline p strong,
.agenda-timeline p span {
  display: block;
  font-size: 0.8125rem;
}

.agenda-timeline p span,
.agenda-timeline small {
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.open-slot {
  width: 100%;
  border: 1.5px dashed var(--brand-soft);
  background: var(--brand-muted);
  text-align: left;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background var(--dur-base) var(--ease-out);
}
.open-slot:hover { background: var(--brand-pale); }

.open-slot span {
  color: var(--ink-soft);
  font-weight: 400;
}

/* ─── Filters / transactions / service admin ────────────────────────────────── */
.filter-button {
  min-height: 32px;
  padding: 0 var(--sp-3);
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  font-size: 0.8125rem;
  font-weight: 500;
}

.transaction-list,
.service-admin-list { border-top: 1px solid var(--line); }

.transaction-list article,
.service-admin-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--line);
}

.transaction-list article > div strong,
.transaction-list article > div small,
.service-admin-list article > div strong,
.service-admin-list article > div small { display: block; }

.transaction-list article > div strong,
.service-admin-list article > div strong { font-size: 0.875rem; font-weight: 500; }

.transaction-list article > div small,
.service-admin-list article > div small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.transaction-list article > strong,
.service-admin-list article > strong { font-size: 0.875rem; font-weight: 600; }

.transaction-initial {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--brand-strong);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.service-admin-list article {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.service-admin-list button {
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--brand-strong);
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: color var(--dur-base) var(--ease-out);
}
.service-admin-list button:hover { color: var(--brand-hover); }

/* ─── Toast ─────────────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  z-index: 8;
  right: var(--sp-6);
  bottom: var(--sp-6);
  max-width: min(340px, calc(100vw - var(--sp-8)));
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-control);
  background: var(--ink);
  color: var(--surface);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(var(--sp-2));
  transition:
    opacity var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out);
}
.toast.is-visible { opacity: 1; transform: translateY(0); }

/* ─── Success dialog ────────────────────────────────────────────────────────── */
.success-dialog {
  width: min(380px, calc(100vw - var(--sp-8)));
  padding: var(--sp-8);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.success-dialog::backdrop {
  background: rgba(44, 32, 20, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.success-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto var(--sp-5);
  place-items: center;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--sage);
}
.success-icon svg { width: 32px; height: 32px; }

.success-dialog h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.success-dialog p {
  margin: var(--sp-2) 0 var(--sp-6);
  color: var(--ink-soft);
  font-size: 0.9375rem;
  max-width: 28ch;
  margin-inline: auto;
  line-height: 1.55;
}

.dialog-actions-stack {
  display: grid;
  gap: var(--sp-2);
}

.whatsapp-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  width: 100%;
  border-color: #166534;
  background: #15803d;
  color: #fffaf4;
  text-decoration: none;
}
.whatsapp-cta-btn svg { width: 20px; height: 20px; }
.whatsapp-cta-btn:hover {
  background: #166534;
  border-color: #166534;
  box-shadow: 0 4px 16px rgba(22, 101, 52, 0.3);
}

.success-dialog .secondary-button { width: 100%; }

/* ─── Professional Admin List ────────────────────────────────────────────────── */
.professional-admin-list {
  display: grid;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
}

.prof-admin-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-control);
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.prof-card-main {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-width: 0;
}

.prof-avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-weight: 700;
  font-size: 0.9375rem;
}

.prof-details { min-width: 0; }
.prof-details strong { display: block; font-size: 0.9375rem; }
.prof-details p { margin: 2px 0 0; color: var(--ink-soft); font-size: 0.8125rem; }
.prof-details small { color: var(--ink-faint); font-size: 0.75rem; }

.prof-card-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.prof-badge-status {
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  background: var(--sage-soft);
  color: var(--sage);
  font-size: 0.6875rem;
  font-weight: 700;
}

.prof-remove-btn {
  padding: 4px 8px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--danger);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  transition: background var(--dur-base) var(--ease-out);
}
.prof-remove-btn:hover { background: #fdf2f2; }

/* ─── Custom Modal Dialog ───────────────────────────────────────────────────── */
.custom-modal {
  width: min(440px, calc(100vw - var(--sp-8)));
  padding: var(--sp-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}

.custom-modal::backdrop {
  background: rgba(44, 32, 20, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
}

.modal-header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
}

.close-modal-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.modal-form {
  display: grid;
  gap: var(--sp-3);
}

.login-subtext {
  margin: 0 0 var(--sp-2);
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}

.modal-actions {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}
.modal-actions button { flex: 1; }

.modal-actions-stack {
  display: grid;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}

.wa-quick-section {
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}

.wa-quick-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--sp-3);
}

.wa-quick-header strong {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.wa-quick-grid {
  display: grid;
  gap: 8px;
}

.btn-wa-action {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-control);
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease-out);
}

.btn-wa-action:hover {
  background: #dcfce7;
  border-color: #86efac;
  transform: translateX(3px);
}

.btn-wa-action svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: #15803d;
}

.btn-wa-action span {
  flex: 1;
  text-align: left;
}

.admin-head-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.logout-btn {
  padding: 6px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all var(--dur-base) var(--ease-out);
}
.logout-btn:hover {
  background: #fdf2f2;
  border-color: var(--danger);
  color: var(--danger);
}

/* ─── Client CRM Search Card ────────────────────────────────────────────────── */
.client-search-card {
  position: relative;
  margin-top: var(--sp-4);
}

.client-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.client-search-input-wrap .search-icon {
  position: absolute;
  left: 14px;
  width: 17px;
  height: 17px;
  color: var(--ink-faint);
  pointer-events: none;
}

.client-search-input-wrap input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px 0 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.875rem;
  font-family: inherit;
  transition: all var(--dur-fast) var(--ease-out);
}

.client-search-input-wrap input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.client-search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
  border-radius: var(--radius-control);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  z-index: 50;
}

.client-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--radius-control);
  cursor: pointer;
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
  transition: background var(--dur-fast) var(--ease-out);
}

.client-search-item:hover {
  background: var(--surface-soft);
}

.client-search-item strong {
  display: block;
  font-size: 0.875rem;
  color: var(--ink);
}

.client-search-item small {
  display: block;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.client-search-item-meta {
  text-align: right;
}

.client-search-item-meta span {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-strong);
}

.client-search-item-meta small {
  font-size: 0.6875rem;
  color: var(--ink-faint);
}

/* ─── Client Profile Modal ──────────────────────────────────────────────────── */
.client-profile-modal {
  width: min(480px, calc(100vw - var(--sp-6)));
}

.client-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--line);
}

.client-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-strong);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.client-hero-info h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--ink);
}

.client-hero-info p {
  margin: 2px 0 0;
  color: var(--ink-soft);
  font-size: 0.8125rem;
}

.client-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  margin: var(--sp-4) 0;
}

.client-stat-box {
  padding: 12px;
  border-radius: var(--radius-control);
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.client-stat-box span {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

.client-stat-box strong {
  display: block;
  margin-top: 4px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-strong);
}

/* ─── Cartão Fidelidade VIP ─────────────────────────────────────────────────── */
.loyalty-card-crm {
  margin: var(--sp-4) 0;
  padding: 14px 16px;
  border-radius: var(--radius-control);
  background: linear-gradient(135deg, #fdf8f0 0%, #faedd8 100%);
  border: 1.5px solid #e8cd9e;
  box-shadow: 0 4px 12px rgba(139, 96, 54, 0.08);
}

.loyalty-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.loyalty-badge {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #85531d;
  display: flex;
  align-items: center;
  gap: 4px;
}

.loyalty-count {
  font-size: 0.75rem;
  font-weight: 700;
  color: #633c11;
}

.loyalty-stamps-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.loyalty-stamp {
  flex: 1;
  aspect-ratio: 1 / 1;
  max-width: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.125rem;
  transition: all var(--dur-base) var(--ease-spring);
}

.loyalty-stamp.is-filled {
  background: radial-gradient(circle, #fcd34d 0%, #f59e0b 100%);
  color: #78350f;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
  border: 1.5px solid #d97706;
}

.loyalty-stamp.is-empty {
  background: rgba(255, 255, 255, 0.6);
  border: 1.5px dashed #d1b181;
  color: #c4a472;
}

.loyalty-reward-banner {
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(217, 119, 6, 0.25);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #78350f;
  text-align: center;
}

.loyalty-reward-banner.is-reward-ready {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-color: #f59e0b;
  color: #92400e;
  font-weight: 700;
}

/* ─── Fidelidade no Comprovante ─────────────────────────────────────────────── */
.receipt-loyalty-card {
  margin: var(--sp-5) 0 var(--sp-4);
  padding: 16px;
  border-radius: var(--radius-control);
  background: linear-gradient(135deg, #fdfbf7 0%, #f6ecdc 100%);
  border: 1.5px solid #dec29b;
}

.receipt-loyalty-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.receipt-loyalty-head span {
  font-size: 0.75rem;
  font-weight: 800;
  color: #85531d;
  letter-spacing: 0.04em;
}

.receipt-loyalty-head strong {
  font-size: 0.8125rem;
  color: #633c11;
}

.receipt-loyalty-stamps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.receipt-loyalty-text {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #78350f;
  text-align: center;
}

.client-history-section {
  margin-top: var(--sp-4);
}

.history-title {
  margin-bottom: 10px;
}

.history-title strong {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.client-history-list {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.client-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--radius-control);
  background: var(--surface);
  border: 1px solid var(--line);
}

.client-history-item strong {
  display: block;
  font-size: 0.8125rem;
  color: var(--ink);
}

.client-history-item p {
  margin: 2px 0 0;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.client-history-item-right {
  text-align: right;
}

.client-history-item-right strong {
  color: var(--brand-strong);
  font-size: 0.8125rem;
}

.payment-action-btns {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.btn-action-small {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--brand-strong);
  cursor: pointer;
  font-size: 0.6875rem;
  font-weight: 600;
  transition: all var(--dur-base) var(--ease-out);
}
.btn-action-small:hover { background: var(--surface-soft); }
.btn-action-small.btn-refund { color: var(--danger); }
.btn-action-small.btn-refund:hover { background: #fdf2f2; border-color: var(--danger); }

.status-refunded {
  background: var(--surface-muted);
  color: var(--ink-faint);
}

/* ─── Financial Period Filter Bar ───────────────────────────────────────────── */
.financial-filter-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}

.filter-pill:hover {
  background: var(--surface-soft);
  border-color: var(--brand-soft);
  color: var(--ink);
}

.filter-pill.is-active {
  background: var(--brand-strong);
  border-color: var(--brand-strong);
  color: #fff;
  box-shadow: 0 2px 6px rgba(109, 71, 32, 0.25);
}

/* ─── App Footer & Versioning ──────────────────────────────────────────────── */
.app-footer {
  margin-top: calc(var(--sp-8) + 16px);
  margin-bottom: 0;
  padding: 28px var(--sp-5) 24px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
  box-sizing: border-box;
}

.app-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 340px;
}

.footer-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--brand-line);
  flex-shrink: 0;
}

.footer-brand-info strong {
  display: block;
  font-size: 0.8125rem;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
}

.footer-brand-info p {
  margin: 3px 0 0;
  font-size: 0.6875rem;
  color: var(--ink-soft);
  line-height: 1.35;
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-admin-link {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-control);
  transition: all var(--dur-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.footer-admin-link:hover {
  background: var(--surface);
  border-color: var(--brand-line);
  color: var(--brand-strong);
  transform: translateY(-1px);
}

.app-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  font-size: 0.6875rem;
  color: var(--ink-faint);
  flex-wrap: wrap;
  gap: 8px;
}

.app-version-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.app-version-badge::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sage);
}

/* ─── Utils ──────────────────────────────────────────────────────────────────── */
[hidden] { display: none !important; }

/* ─── Animations ─────────────────────────────────────────────────────────────── */
@keyframes view-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes panel-in-next {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes panel-in-prev {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Responsive: mobile (≤920px) ──────────────────────────────────────────── */
@media (max-width: 920px) {
  body { background: var(--surface); }

  .prototype-stage {
    display: block;
    min-height: 100dvh;
    padding: 0;
  }

  .prototype-notes { display: none; }

  .device-shell {
    width: 100%;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  #customerView {
    padding-bottom: var(--sp-6);
  }

  body:has(.booking-actions:not([hidden])) #customerView {
    padding-bottom: calc(85px + env(safe-area-inset-bottom));
  }

  .app-footer {
    margin-bottom: var(--sp-6);
  }

  body:has(.booking-actions:not([hidden])) .app-footer {
    margin-bottom: calc(90px + env(safe-area-inset-bottom));
  }

  .booking-actions {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
  }
}

/* ─── Responsive: small phones (≤430px) ────────────────────────────────────── */
@media (max-width: 430px) {
  .app-header {
    min-height: 96px;
    padding: var(--sp-1) var(--sp-4);
  }

  .brand-logo { width: 136px; }

  .mode-button {
    min-height: 32px;
    padding: 0 var(--sp-2);
    font-size: 0.75rem;
  }

  .booking-head { padding: var(--sp-6) var(--sp-5) var(--sp-4); }
  .booking-head h2 { font-size: 1.875rem; }

  .admin-head { padding: var(--sp-6) var(--sp-5) var(--sp-4); }

  .step { font-size: 0.625rem; }

  .appointment-row {
    grid-template-columns: 50px minmax(0, 1fr);
    align-items: start;
    gap: 8px 12px;
    padding: 12px 14px;
  }

  .appointment-row time {
    grid-column: 1;
    grid-row: 1 / 3;
    font-size: 0.875rem;
    padding-top: 2px;
  }

  .appointment-main-info {
    grid-column: 2;
    grid-row: 1;
  }

  .appointment-actions {
    grid-column: 2;
    grid-row: 2;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 4px;
    width: 100%;
    min-width: unset;
  }

  .appointment-btn-group {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .today-overview,
  .payment-summary { grid-template-columns: 1fr; }

  .supporting-stats,
  .payment-summary dl {
    grid-template-columns: repeat(2, 1fr);
    padding: var(--sp-4) 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 0;
  }

  .service-admin-list article {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .service-admin-list article > button {
    grid-column: 2;
    justify-self: start;
  }
}

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

/* ─── Galeria Lookbook (Cliente & Admin) ─────────────────────────────────────── */
.lookbook-customer-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(209, 143, 86, 0.08) 0%, rgba(209, 143, 86, 0.02) 100%);
  border: 1px dashed rgba(209, 143, 86, 0.4);
  border-radius: var(--radius-control);
}

.lookbook-banner-info strong {
  display: block;
  font-size: 0.875rem;
  color: var(--brand-strong);
  font-family: var(--font-body);
}

.lookbook-banner-info p {
  margin: 2px 0 0;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.lookbook-banner-btn {
  flex-shrink: 0;
  padding: 8px 14px;
  background: var(--brand-strong);
  color: #fffaf4;
  border: none;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--dur-fast), background var(--dur-fast);
}

.lookbook-banner-btn:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
}

/* Grid Admin Lookbook */
.gallery-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.gallery-admin-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.gallery-admin-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--surface-soft);
}

.gallery-admin-meta {
  padding: 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gallery-admin-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-admin-cat {
  font-size: 0.6875rem;
  color: var(--brand-strong);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.gallery-admin-actions {
  margin-top: 8px;
  display: flex;
  gap: 4px;
}

.gallery-admin-actions button {
  flex: 1;
  padding: 4px 6px;
  font-size: 0.6875rem;
  border-radius: 4px;
  cursor: pointer;
}

/* Lookbook Cliente Masonry */
.lookbook-masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 4px;
}

.lookbook-card {
  border-radius: var(--radius-control);
  overflow: hidden;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  position: relative;
  transition: transform var(--dur-fast);
}

.lookbook-card:hover {
  transform: translateY(-2px);
}

.lookbook-card-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.lookbook-card-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px 8px 8px;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
  color: #ffffff;
}

.lookbook-card-title {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.lookbook-card-cat {
  font-size: 0.625rem;
  opacity: 0.85;
  text-transform: uppercase;
}

#customerLookbookLightboxDialog::backdrop {
  background: rgba(18, 12, 7, 0.85);
  backdrop-filter: blur(8px);
}

#customerLookbookLightboxDialog {
  animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Central de Lembretes & WhatsApp 1-Clique ───────────────────────────── */
.reminder-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reminder-item-card {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  transition: transform var(--dur-fast), border-color var(--dur-fast), background var(--dur-fast);
}

.reminder-item-card:hover {
  border-color: var(--brand-line);
  transform: translateY(-1px);
}

.reminder-item-card.is-sent {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.reminder-item-card.is-sent-today {
  border-left: 4px solid #16a34a;
}

.reminder-item-main {
  flex: 1;
  min-width: 220px;
}

.reminder-item-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.reminder-item-meta {
  font-size: 0.8125rem;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
}

.reminder-actions-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.reminder-actions-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.reminder-wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  background: #25d366;
  color: #ffffff;
  border-radius: var(--radius-control);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.25);
  transition: transform var(--dur-fast), background var(--dur-fast), box-shadow var(--dur-fast);
  white-space: nowrap;
}

.reminder-wa-btn:hover {
  background: #20ba5a;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.35);
  color: #ffffff;
}

.reminder-wa-btn.is-sent-btn {
  background: #15803d;
}

.reminder-wa-btn svg {
  width: 16px;
  height: 16px;
}

.btn-reminder-aux {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
  white-space: nowrap;
}

.btn-reminder-aux:hover {
  background: var(--surface-soft);
  border-color: var(--brand-line);
  color: var(--brand-strong);
}

.badge-count {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 9999px;
  margin-left: 4px;
}

.filter-pill.is-active .badge-count {
  background: rgba(255, 255, 255, 0.25);
  border-color: transparent;
  color: inherit;
}

/* ─── Desktop Shell & Sidebar Architecture ───────────────────────────────── */
.admin-desktop-shell {
  display: block;
  width: 100%;
}

.admin-sidebar {
  display: none;
}

.admin-main-viewport {
  width: 100%;
  box-sizing: border-box;
}

.admin-split-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}

/* Link de Acesso no Rodapé */
.footer-admin-link {
  background: transparent;
  border: none;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-control);
  transition: color var(--dur-fast), background var(--dur-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.footer-admin-link:hover {
  color: var(--brand-strong);
  background: var(--surface-muted);
}

/* Regras de Expansão para o Painel Administrativo */
body.is-admin-mode .prototype-notes,
body:has(#adminView.is-active) .prototype-notes,
body:has(#adminView:not([hidden])) .prototype-notes {
  display: none !important;
}

body.is-admin-mode .app-header,
body:has(#adminView.is-active) .app-header,
body:has(#adminView:not([hidden])) .app-header {
  display: none !important;
}

body.is-admin-mode .prototype-stage,
body:has(#adminView.is-active) .prototype-stage,
body:has(#adminView:not([hidden])) .prototype-stage {
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start !important;
  width: 100% !important;
  max-width: 1360px !important;
  margin: 0 auto !important;
  padding: 24px 20px !important;
  box-sizing: border-box !important;
}

body.is-admin-mode .device-shell,
body:has(#adminView.is-active) .device-shell,
body:has(#adminView:not([hidden])) .device-shell {
  width: 100% !important;
  max-width: 1300px !important;
  min-height: 85vh !important;
  border-radius: 20px !important;
  box-shadow: 0 16px 48px rgba(44, 30, 16, 0.12) !important;
  background: var(--surface) !important;
}

/* Regras para Desktop (>= 1024px) */
@media (min-width: 1024px) {
  .admin-desktop-shell {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 720px;
    background: var(--surface);
    border-radius: var(--radius-card);
    overflow: hidden;
  }

  /* Sidebar Lateral Fixa Desktop */
  .admin-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--surface-soft);
    border-right: 1px solid var(--line);
    padding: 24px 16px 18px;
    box-sizing: border-box;
  }

  .admin-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 16px;
  }

  .admin-sidebar-logo {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--brand-line);
  }

  .admin-sidebar-brand-text {
    display: flex;
    flex-direction: column;
  }

  .admin-sidebar-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
  }

  .admin-sidebar-badge {
    font-size: 0.6875rem;
    color: var(--brand-strong);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

  .admin-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
  }

  .admin-sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-control);
    border: 1px solid transparent;
    background: transparent;
    color: var(--ink-soft);
    font-size: 0.8125rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    transition: all var(--dur-fast);
  }

  .admin-sidebar-nav-item:hover {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--line);
  }

  .admin-sidebar-nav-item.is-active {
    background: var(--surface);
    color: var(--brand-strong);
    border-color: var(--brand-line);
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    font-weight: 700;
  }

  .admin-sidebar-nav-item .sidebar-icon {
    font-size: 1.125rem;
    line-height: 1;
    width: 20px;
    text-align: center;
  }

  .admin-sidebar-nav-item .sidebar-label {
    flex: 1;
  }

  .sidebar-badge {
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 9999px;
    background: var(--sage);
    color: #fff;
  }

  .admin-sidebar-footer {
    padding-top: 14px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .admin-sidebar-user {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .admin-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand-strong);
    font-size: 0.6875rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .admin-user-info {
    display: flex;
    flex-direction: column;
  }

  .admin-user-info strong {
    font-size: 0.75rem;
    color: var(--ink);
    line-height: 1.1;
  }

  .admin-user-info small {
    font-size: 0.625rem;
    color: var(--ink-soft);
  }

  .admin-sidebar-logout-btn {
    padding: 4px 8px;
    border-radius: var(--radius-control);
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-soft);
    font-size: 0.6875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--dur-fast);
  }

  .admin-sidebar-logout-btn:hover {
    color: var(--danger);
    border-color: var(--danger);
  }

  /* Oculta o seletor móvel no desktop */
  .admin-nav-bar {
    display: none;
  }

  /* Split-View no Painel Hoje (65% / 35%) */
  .admin-split-layout {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 24px;
    align-items: start;
  }

  .admin-panel {
    padding: 24px 28px 36px;
  }
}

/* ─── Painel administrativo em celulares e tablets ───────────────────────── */
@media (max-width: 1023px) {
  body.is-admin-mode,
  body:has(#adminView.is-active),
  body:has(#adminView:not([hidden])) {
    overflow-x: hidden;
    background: var(--surface);
  }

  body.is-admin-mode .prototype-stage,
  body:has(#adminView.is-active) .prototype-stage,
  body:has(#adminView:not([hidden])) .prototype-stage {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.is-admin-mode .device-shell,
  body:has(#adminView.is-active) .device-shell,
  body:has(#adminView:not([hidden])) .device-shell {
    width: 100% !important;
    max-width: none !important;
    min-height: 100dvh !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.is-admin-mode .app-footer,
  body:has(#adminView.is-active) .app-footer,
  body:has(#adminView:not([hidden])) .app-footer {
    display: none;
  }

  #adminView,
  .admin-desktop-shell,
  .admin-main-viewport,
  .admin-split-primary,
  .admin-split-secondary {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .admin-head {
    padding: var(--sp-4) max(14px, env(safe-area-inset-right)) var(--sp-4) max(14px, env(safe-area-inset-left));
    box-sizing: border-box;
  }

  .admin-head-brand {
    flex: 1 1 100%;
  }

  .admin-head-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
    margin-top: 8px;
  }

  .admin-head-actions .compact-button,
  .admin-head-actions .logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 6px 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    box-sizing: border-box;
  }

  .admin-nav-bar {
    position: sticky;
    z-index: 20;
    top: 0;
    gap: var(--sp-2);
    padding: 8px max(14px, env(safe-area-inset-right)) 8px max(14px, env(safe-area-inset-left));
    box-sizing: border-box;
  }

  .admin-panel {
    padding: var(--sp-4) max(14px, env(safe-area-inset-right)) var(--sp-8) max(14px, env(safe-area-inset-left));
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: hidden;
  }

  .admin-section-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  .admin-section-heading > div {
    flex: 1 1 180px;
    min-width: 0;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .admin-quick-reminders-box > div:first-child {
    align-items: flex-start !important;
    flex-wrap: wrap;
  }

  /* Agenda Timeline no Mobile / Tablet */
  .agenda-timeline > div,
  .open-slot {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px 12px;
    box-sizing: border-box;
  }
}

/* ─── Ajustes finos para telas menores que 600px ─────────────────────────── */
@media (max-width: 600px) {
  .reminder-item-card {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 14px;
  }

  .reminder-item-main {
    width: 100%;
    min-width: 0;
  }

  .reminder-actions-stack {
    align-items: stretch;
    width: 100%;
    gap: 8px;
  }

  .reminder-actions-row {
    width: 100%;
    justify-content: stretch;
  }

  .reminder-actions-row .reminder-wa-btn {
    width: 100%;
  }

  .reminder-actions-row .btn-reminder-aux {
    flex: 1 1 auto;
    text-align: center;
  }

  .agenda-timeline > div:not(.agenda-extension-box):not(.agenda-notice-box),
  .open-slot {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 8px 10px;
    padding: 10px 12px;
  }

  .agenda-timeline > div:not(.agenda-extension-box):not(.agenda-notice-box) > time,
  .open-slot > time {
    grid-column: 1;
    grid-row: 1;
  }

  .agenda-timeline > div:not(.agenda-extension-box):not(.agenda-notice-box) > div:first-of-type {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .agenda-timeline > div:not(.agenda-extension-box):not(.agenda-notice-box) > div:last-of-type,
  .open-slot > div:last-of-type {
    grid-column: 1 / 3;
    grid-row: 2;
    justify-self: end;
    margin-top: 4px;
    flex-wrap: wrap;
  }

  .agenda-extension-box {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .agenda-extension-box button {
    width: 100% !important;
    justify-content: center !important;
    white-space: nowrap !important;
  }

  .filter-pills {
    gap: 6px;
    width: 100%;
  }

  .filter-pill {
    padding: 6px 10px;
    font-size: 0.75rem;
    flex: 0 1 auto;
  }
}

@media (max-width: 430px) {
  .notification-badge {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr);
    align-items: start;
  }

  .notification-badge .notif-dot {
    margin-top: 6px;
  }

  .notification-badge .ghost-button {
    grid-column: 2;
    justify-self: start;
    min-height: 36px;
  }

  .transaction-list article {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .transaction-list article > strong,
  .transaction-list article > .payment-action-btns {
    grid-column: 2;
    justify-self: start;
  }

  .admin-date-grid,
  .week-strip {
    gap: 4px;
  }

  .admin-date-grid button,
  .week-strip button {
    min-height: 52px;
    padding: 4px 1px;
  }

  .admin-date-grid button strong,
  .week-strip button strong {
    font-size: 0.9375rem;
  }
}

@media (max-width: 359px) {
  .admin-head,
  .admin-panel {
    padding-right: 10px;
    padding-left: 10px;
  }

  .admin-nav-bar {
    padding-inline: 10px;
  }

  .admin-nav-hint {
    display: none;
  }

  .admin-menu-toggle-btn {
    width: 100%;
    justify-content: space-between;
  }

  .admin-section-heading .compact-button,
  .admin-section-heading .text-action {
    max-width: 100%;
  }
}
