﻿:root {
  --nav-h: 72px;
  --bg: #f4f6fb;
  --surface: #ffffff;
  --text: #1a2238;
  --muted: #5f6b85;
  --primary: #2f5bd3;
  --primary-contrast: #ffffff;
  --border: #dbe2f4;
  --shadow: 0 16px 34px rgba(0, 0, 0, 0.1);
  --radius: 10px;
  --radius-lg: 16px;
  --font: 'Segoe UI', Tahoma, sans-serif;
  --font-heading: 'Segoe UI', Tahoma, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.4;
}

main,
.page {
  padding-top: var(--nav-h);
}

section[id] {
  scroll-margin-top: calc(var(--nav-h) + 12px);
}


a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  margin: 0;
}

p {
  margin: 0;
}

.app-shell {
  width: min(1180px, 94vw);
  margin: 0 auto;
  padding: 18px 0 48px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 3vw;
  backdrop-filter: blur(8px);
  background: color-mix(in oklab, var(--bg) 84%, transparent);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand .brand-logo {
  width: auto;
  height: 62px;
  max-height: 80px;
  max-width: 260px;
  border-radius: 14px;
  object-fit: contain;
  background: transparent;
  border: 0;
  padding: 0;
  /* Shadow without a "box background", works well for transparent PNGs */
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.16));
}

.brand[data-has-logo='1'] .brand-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* In the topbar, push the navigation a bit more to the right. */
.topbar .nav {
  margin-left: auto;
  justify-content: flex-end;
}

.nav a {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  padding: 8px 12px;
  font-size: 0.9rem;
  transition: transform 0.16s ease;
}

.nav a:hover {
  transform: translateY(-1px);
}

.cp-manage-edge {
  position: fixed;
  top: 0;
  right: 0;
  width: 18px;
  height: 100vh;
  z-index: 1200;
}

.cp-manage-drawer {
  position: fixed;
  top: 78px;
  right: 10px;
  width: 260px;
  max-height: calc(100vh - 96px);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-strong, var(--shadow));
  z-index: 1201;
  transform: translateX(calc(100% + 20px));
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.cp-manage-drawer.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.cp-manage-drawer-header {
  font-weight: 800;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.cp-manage-drawer-nav {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.cp-manage-link {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
}

.cp-manage-link:hover {
  transform: translateY(-1px);
}

.cp-manage-link.active {
  border-color: transparent;
  background: var(--primary);
  color: var(--primary-contrast);
}

.cp-menu-icon-btn {
  width: 42px;
  min-width: 42px;
  padding: 10px 0;
  font-size: 20px;
  line-height: 1;
  border-radius: 999px;
}

.cp-menu-icon-btn.active {
  background: var(--primary);
  color: var(--primary-contrast);
  border-color: transparent;
  box-shadow: 0 8px 18px color-mix(in oklab, var(--primary) 40%, transparent);
}

#cp-nav-wrap .cp-menu-icon-btn.active {
  background: var(--primary);
  color: var(--primary-contrast);
  border-color: transparent;
  font-weight: 800;
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 16px;
}

.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}

.tab.active {
  background: var(--primary);
  color: var(--primary-contrast);
  border-color: transparent;
}

/* CP topbar: keep active tab visible (avoid white text on white background). */
.topbar .nav a.tab.active {
  background: var(--primary);
  color: var(--primary-contrast);
  border-color: transparent;
}

.topbar .nav a.tab.active:hover {
  background: color-mix(in oklab, var(--primary) 90%, black 10%);
  color: var(--primary-contrast);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card + .card {
  margin-top: 12px;
}

.card-header {
  padding: 14px 16px 8px;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 72%, transparent);
}

.card-title {
  font-size: 1.03rem;
  font-weight: 700;
}

.card-subtitle {
  color: var(--muted);
  margin-top: 6px;
  font-size: 0.92rem;
}

.card-body {
  padding: 14px 16px;
}

.card:hover {
  transform: translateY(calc(-1 * var(--card-hover-lift, 4px)));
  box-shadow: var(--shadow-strong, var(--shadow));
}

.card.no-hover:hover {
  transform: none;
  box-shadow: var(--shadow);
}

.card-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: color-mix(in oklab, var(--surface) 78%, var(--bg));
  border-bottom: 1px solid color-mix(in oklab, var(--border) 72%, transparent);
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.cp-thumb {
  width: 96px;
  height: 68px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 78%, var(--bg));
}

.cp-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--muted);
}

.plan-card {
  display: flex;
  flex-direction: column;
}

.plan-card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.plan-card .card-actions {
  margin-top: auto;
  padding-top: 12px;
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 10px 14px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-contrast);
}

.btn-primary:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0px);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  transform: translateY(-1px);
}

.btn-danger {
  background: #d93e3e;
  color: #fff;
}

.label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}

.textarea {
  min-height: 96px;
  resize: vertical;
}

.form-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.form-grid {
  display: grid;
  gap: 10px;
}

.badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}

.badge[data-status='SCHEDULED'] {
  background: #e8f0ff;
  color: #2648a5;
}

.badge[data-status='CONFIRMED'] {
  background: #e4f7e8;
  color: #1e7f3f;
}

.badge[data-status='DONE'] {
  background: #e9eef2;
  color: #374151;
}

.badge[data-status='NO_SHOW'] {
  background: #fff0f0;
  color: #9f1239;
}

.badge[data-status='CANCELED'] {
  background: #fde8e8;
  color: #9b1c1c;
}

.badge[data-status='BLOCKED'] {
  background: #fff3dc;
  color: #8a5a00;
}

.badge[data-kind='PLAN'] {
  background: color-mix(in oklab, var(--primary) 14%, white);
  color: color-mix(in oklab, var(--primary) 78%, black);
  border-color: color-mix(in oklab, var(--primary) 30%, var(--border));
}

.toast {
  position: fixed;
  right: 14px;
  top: 14px;
  z-index: 9999;
  border-radius: var(--radius);
  padding: 10px 14px;
  background: #0b8f3a;
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.36);
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal {
  width: min(620px, 100%);
  max-height: 92vh;
  overflow: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.modal-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.modal-body {
  padding: 14px 16px;
}

.modal-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.calendar {
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}

#calendarRoot {
  width: 100%;
}

.calendar-viewport {
  flex: 1 1 auto;
  width: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: inherit;
  max-height: calc(100vh - 280px);
}

.calendar-header {
  position: sticky;
  top: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: 72px repeat(7, minmax(130px, 1fr));
  border-bottom: 1px solid var(--border);
  min-width: 980px;
  background: var(--surface);
}

.calendar-grid {
  width: max-content;
  display: grid;
  grid-template-columns: 72px repeat(7, minmax(130px, 1fr));
  min-width: 980px;
}

.hour-col {
  border-right: 1px solid var(--border);
  position: relative;
}

.day-col {
  border-right: 1px solid var(--border);
  min-height: 780px;
  position: relative;
  background-image: linear-gradient(to bottom, color-mix(in oklab, var(--border) 65%, transparent) 1px, transparent 1px);
  background-size: 100% 30px;
}

.event {
  position: absolute;
  left: 5px;
  right: 5px;
  border-radius: 8px;
  border: 1px solid color-mix(in oklab, var(--primary) 44%, black);
  background: color-mix(in oklab, var(--primary) 23%, white);
  padding: 6px 8px;
  font-size: 0.78rem;
  line-height: 1.15;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.event[data-status='DONE'] {
  opacity: 0.82;
  background: #e6ebf1;
  border-color: #b7c2cf;
}

.event[data-status='NO_SHOW'] {
  background: #fff1f2;
  border-color: #e11d48;
}

.event[data-status='CANCELED'] {
  opacity: 0.55;
  text-decoration: line-through;
}

.event[data-status='CONFIRMED'] {
  background: #e5f8ec;
  border-color: #58b47e;
}

.event[data-status='BLOCKED'] {
  background: #fff4df;
  border-color: #d8a24b;
}

.calendar-grid .hour-col {
  position: sticky;
  left: 0;
  z-index: 3;
  background: var(--surface);
}

#calendarRoot .card,
#calendarRoot .calendar {
  overflow: hidden;
}

.calendar-tooltip {
  position: fixed;
  z-index: 2000;
  max-width: 320px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  font-size: 0.82rem;
  line-height: 1.2;
  pointer-events: none;
}

.calendar-tooltip[data-status='SCHEDULED'] {
  background: #e8f0ff;
  border-color: #2648a5;
}

.calendar-tooltip[data-status='CONFIRMED'] {
  background: #e4f7e8;
  border-color: #1e7f3f;
}

.calendar-tooltip[data-status='DONE'] {
  background: #e9eef2;
  border-color: #374151;
}

.calendar-tooltip[data-status='NO_SHOW'] {
  background: #fff1f2;
  border-color: #be123c;
}

.calendar-tooltip[data-status='CANCELED'] {
  background: #fde8e8;
  border-color: #9b1c1c;
}

.calendar-tooltip[data-status='BLOCKED'] {
  background: #fff6e8;
  border-color: #a16207;
}

.calendar-tooltip .tt-title {
  font-weight: 900;
  margin-bottom: 6px;
}

.calendar-tooltip .tt-row {
  margin-top: 4px;
  color: var(--muted);
}

.calendar-tooltip .tt-row strong {
  color: var(--text);
}

.cards-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* In grids, spacing is controlled by `gap`. Cancel the global sibling margin. */
.cards-grid > .card {
  margin-top: 0;
}

/* Reports page */
.report-page .report-table-wrap {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.report-page .report-table {
  min-width: 560px;
}

.report-page .report-kpis-grid > .card,
.report-page .report-stats-grid > .card {
  min-width: 0;
}

.report-page .card-body > div[style*='font-size'] {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Sections / hero */
.section {
  margin-top: 16px;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.section-title-center {
  text-align: center;
}

.section-head-center {
  text-align: center;
}

.section-head-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  margin-top: 6px;
  color: var(--muted);
  max-width: 68ch;
}

.site-footer {
  margin-top: 24px;
  border: 1px solid color-mix(in oklab, var(--border) 82%, transparent);
  background: linear-gradient(
    135deg,
    color-mix(in oklab, var(--surface) 94%, white 6%),
    color-mix(in oklab, var(--bg) 90%, var(--surface) 10%)
  );
  border-radius: calc(var(--radius-lg) + 2px);
  padding: 16px;
  box-shadow: 0 10px 26px rgba(10, 22, 70, 0.08);
}

.site-footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.site-footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-social-link {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.site-social-link:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--primary) 40%, var(--border));
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
}

.site-social-link svg {
  width: 22px;
  height: 22px;
}

.site-social-link[aria-label='Instagram']:hover {
  color: #d62976;
}

.site-social-link[aria-label='Facebook']:hover {
  color: #1877f2;
}

.site-footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 0.96rem;
}

.site-footer-copy {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid color-mix(in oklab, var(--border) 76%, transparent);
  color: var(--muted);
  font-size: 0.9rem;
}

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

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

.hero {
  position: relative;
  border-radius: calc(var(--radius-lg) + 10px);
  overflow: hidden;
  border: 1px solid color-mix(in oklab, var(--border) 85%, transparent);
  box-shadow: var(--shadow-strong, var(--shadow));
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    var(--hero-overlay-from, rgba(0, 0, 0, 0.06)),
    var(--hero-overlay-to, rgba(0, 0, 0, 0.22))
  );
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  filter: saturate(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--hero-overlay-from, rgba(0, 0, 0, 0.06)), var(--hero-overlay-to, rgba(0, 0, 0, 0.22)));
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 14px;
  padding: 26px 22px;
  align-items: stretch;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: color-mix(in oklab, var(--text) 82%, var(--muted));
}

.hero-title {
  margin-top: 10px;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  margin-top: 10px;
  color: color-mix(in oklab, var(--text) 72%, var(--muted));
  max-width: 62ch;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.btn-accent {
  background: var(--hero-accent, var(--primary));
  color: var(--primary-contrast);
}

.btn-accent:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.stat-card {
  align-self: stretch;
  background: color-mix(in oklab, var(--surface) 78%, transparent);
  border: 1px solid color-mix(in oklab, var(--border) 85%, transparent);
  border-radius: var(--radius-lg);
  padding: 16px 16px;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
}

.stat-card h3 {
  font-size: 1rem;
  font-weight: 900;
  margin: 0;
}

.stat-row {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.stat-row strong {
  color: var(--text);
}

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-card .card-actions {
  margin-top: auto;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 900;
  font-size: 0.74rem;
  border: 1px solid color-mix(in oklab, var(--border) 85%, transparent);
  background: color-mix(in oklab, var(--surface) 70%, var(--bg));
  color: color-mix(in oklab, var(--text) 82%, var(--muted));
}

.plan-card.featured {
  outline: 2px solid color-mix(in oklab, var(--hero-accent, var(--primary)) 48%, transparent);
  box-shadow: var(--shadow-strong, var(--shadow));
}

.plan-featured-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: color-mix(in oklab, var(--hero-accent, var(--primary)) 22%, var(--surface));
  color: color-mix(in oklab, var(--hero-accent, var(--primary)) 75%, black);
  border: 1px solid color-mix(in oklab, var(--hero-accent, var(--primary)) 35%, var(--border));
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.bullets {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.bullets li {
  margin-top: 6px;
}

.benefits {
  margin-top: 8px;
  padding-left: 0;
  list-style: none;
}

.benefits li {
  font-size: 14px;
  color: #555;
  margin-bottom: 4px;
}

/* Media previews (CP personalization) */
.help-text {
  color: var(--muted);
  font-size: 0.9rem;
}

.media-preview {
  width: 100%;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: color-mix(in oklab, var(--surface) 85%, var(--bg));
}

.media-preview[data-ratio='16-6'] {
  aspect-ratio: 16 / 6;
}

.media-preview[data-ratio='1-1'] {
  aspect-ratio: 1 / 1;
  max-width: 220px;
}

.media-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.danger-zone {
  border-color: color-mix(in oklab, #d93e3e 40%, var(--border));
  color: #9b1c1c;
}

/* Public booking availability picker */
.availability {
  display: grid;
  gap: 10px;
  padding: 10px 0 0;
}

.availability-title {
  font-weight: 800;
  letter-spacing: 0.01em;
}

.day-chip-row {
  display: flex;
  gap: 10px;
  overflow: auto;
  padding: 6px 2px;
  scroll-snap-type: x mandatory;
}

.day-chip {
  scroll-snap-align: start;
  min-width: 110px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 10px 10px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.06);
}

.day-chip.active {
  border-color: color-mix(in oklab, var(--primary) 55%, var(--border));
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.1);
}

.day-chip-top {
  font-weight: 900;
}

.day-chip-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.time-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
}

.time-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  padding: 10px 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.time-chip:hover {
  transform: translateY(-1px);
  border-color: color-mix(in oklab, var(--primary) 40%, var(--border));
}

.time-chip.active {
  background: var(--primary);
  color: var(--primary-contrast);
  border-color: transparent;
}

.availability-empty {
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--muted);
  background: color-mix(in oklab, var(--surface) 82%, var(--bg));
}

.availability-skeleton {
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--muted);
  background: linear-gradient(
    90deg,
    color-mix(in oklab, var(--surface) 86%, var(--bg)) 0%,
    color-mix(in oklab, var(--surface) 72%, var(--bg)) 50%,
    color-mix(in oklab, var(--surface) 86%, var(--bg)) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.1s ease-in-out infinite;
}

/* Floating WhatsApp button (public pages) */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

.whatsapp-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  padding: 0;
  line-height: 0;
  overflow: hidden;
  background: #25d366;
  color: #fff;
  font-size: 26px;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  animation: pulseZapSoft 2.8s ease-out infinite;
}

.whatsapp-float a:hover {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.whatsapp-icon {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-icon svg {
  width: 30px;
  height: 30px;
  display: block;
  transform: translateY(0.5px);
}

@keyframes pulseZapSoft {
  0% {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18), 0 0 0 0 rgba(37, 211, 102, 0.35);
  }
  70% {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18), 0 0 0 14px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18), 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-float::after {
  content: 'Fale no WhatsApp';
  position: absolute;
  right: 72px;
  bottom: 14px;
  background: rgba(20, 20, 20, 0.9);
  color: #fff;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 10px;
  opacity: 0;
  transform: translateY(2px);
  transition: 0.18s ease;
  pointer-events: none;
  white-space: nowrap;
}

.whatsapp-float:hover::after {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 900px) {
  .topbar {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .topbar .nav {
    display: none;
    width: 100%;
    margin-top: 10px;
    gap: 10px;
    flex-direction: column;
    align-items: stretch;
  }

  .topbar.nav-open .nav {
    display: flex;
  }

  .topbar .nav a {
    width: 100%;
    text-align: center;
  }

  /* CP: keep primary nav visible on mobile (CP has no public nav-toggle flow). */
  #cp-nav-wrap .topbar .nav {
    display: flex;
    width: auto;
    margin-top: 0;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
  }

  #cp-nav-wrap .topbar .nav a,
  #cp-nav-wrap .topbar .nav button {
    width: auto;
    text-align: center;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 20px 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer-contact {
    width: 100%;
    font-size: 0.92rem;
  }

  .report-page .report-kpis-grid {
    grid-template-columns: 1fr !important;
  }

  .report-page .report-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .report-page .card-body > div[style*='font-size'] {
    font-size: 1.05rem !important;
    line-height: 1.2;
  }

  .report-page .form-row > .label {
    min-width: 0 !important;
    width: 100%;
  }

  .report-page #btnUpdate {
    width: 100%;
  }

}

@media (max-width: 520px) {
  .report-page .report-stats-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 600px) {
  .whatsapp-float {
    bottom: 16px;
    right: 16px;
  }

  .whatsapp-float a {
    width: 56px;
    height: 56px;
    font-size: 22px;
  }

  .whatsapp-icon svg {
    width: 27px;
    height: 27px;
  }

  .whatsapp-float::after {
    display: none;
  }
}

/* Tablet only: corrige corte parcial em cards de servicos/planos sem afetar desktop/mobile */
@media (min-width: 768px) and (max-width: 1024px) {
  body.public .cards-grid,
  body.public .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  body.public .service-card,
  body.public .plan-card {
    height: auto;
    min-height: 0;
  }

  body.public .service-card .card-media,
  body.public .plan-card .card-media {
    aspect-ratio: 16 / 10;
    height: auto;
    overflow: hidden;
  }

  body.public .service-card .card-media img,
  body.public .plan-card .card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}

@media (max-width: 900px) {
  .brand .brand-logo {
    height: 56px;
    max-width: 200px;
  }
}

@media (min-width: 901px) {
  .brand .brand-logo {
    height: 72px;
    max-width: 280px;
    border-radius: 18px;
  }
}

/* Home: remove chips/letras na seção de benefícios abaixo do hero */
#beneficios .chip {
  display: none !important;
}


/* === Public premium aesthetic === */
body.public {
  font-family: "Inter", sans-serif;
  background: linear-gradient(180deg, #fdf7fb 0%, #f5eef6 100%);
  color: #1f1f1f;
}

body.public .app-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}


body.public .topbar {
  background: transparent;
  border-radius: 18px;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 18px rgba(40, 20, 30, 0.04);
  backdrop-filter: blur(10px);
  margin-bottom: 14px;
}

body.public .topbar .nav a {
  border-radius: 999px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

body.public .topbar .nav a:hover {
  background: rgba(255, 77, 166, 0.12);
  box-shadow: 0 6px 16px rgba(255, 77, 166, 0.18);
  transform: translateY(-1px);
}

body.public .card,
body.public .service-card,
body.public .plan-card,
body.public .stat-card {
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.public .card:hover,
body.public .service-card:hover,
body.public .plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

body.public .hero {
  position: relative;
  display: block;
  min-height: clamp(240px, 30vw, 360px);
  border-radius: 24px;
  overflow: hidden;
}

body.public.page-hero-compact .hero {
  min-height: clamp(160px, 22vw, 240px);
}

body.public .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transform: none;
}

body.public .hero-bg::before {
  content: none;
}

body.public .hero-overlay {
  display: none;
}

body.public .hero-inner {
  position: relative;
  z-index: 1;
  min-height: inherit;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 14px;
  align-items: center;
  color: #fff;
  padding: clamp(18px, 2.8vw, 30px);
}

body.public .hero-inner--single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 720px;
}

body.public .cards-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

body.public .hero + section {
  margin-top: 24px;
}

body.public .card-actions-center {
  display: flex;
  justify-content: center;
}

body.public .btn-soft-action {
  padding: 9px 16px;
  font-size: 0.92rem;
  border-radius: 999px;
}

body.public .hero-title,
body.public .hero-subtitle,
body.public .hero-kicker {
  color: #fff;
}

body.public .btn-primary,
body.public .btn.btn-primary,
body.public .btn.btn-accent {
  background: linear-gradient(135deg, #ff4da6, #ff7bbd);
  color: #fff;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.public .btn-primary:hover,
body.public .btn.btn-primary:hover,
body.public .btn.btn-accent:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 20px rgba(255, 77, 166, 0.3);
}

body.public .btn-ghost {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 999px;
}

body.public .luxe-service-thumb,
body.public .service-thumb,
body.public .mock-thumb {
  border-radius: 16px;
  height: 154px;
  object-fit: cover;
  width: 100%;
}

body.public .service-card .card-media img,
body.public .plan-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

body.public .service-card .card-title,
body.public .service-card .luxe-service-name,
body.public .mock-card-title {
  font-size: 18px;
  font-weight: 600;
}

body.public .service-card .card-subtitle,
body.public .mock-card-meta {
  color: #777;
}

body.public .service-card .price,
body.public .mock-card-price {
  font-size: 18px;
  font-weight: bold;
  color: #222;
}

body.public .section-hours-bottom {
  display: flex;
  justify-content: center;
}

body.public .section-hours-bottom .card {
  width: min(640px, 100%);
}

body.public .benefit-hours-card .card-body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 8px;
}

body.public .benefit-hours-card .card-title {
  margin-bottom: 2px;
}

body.public .benefit-hours-card .card-subtitle {
  margin: 0;
  line-height: 1.35;
}

body.public .benefit-hours-card .btn {
  margin-top: 8px;
}

body.public .plan-card,
body.public .mock-plan-card {
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
}

body.public .plan-card.featured,
body.public .mock-plan-card.featured {
  border: 2px solid #ff4da6;
}

body.public .badge-featured,
body.public .mock-badge {
  background: #ff4da6;
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
}

body.public .plan-card .card-media {
  margin: 0;
  border-radius: 0;
  overflow: hidden;
}

body.public .plan-card .card-media img {
  height: 100%;
  object-fit: cover;
}

body.public .site-footer,
body.public .mock-footer {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88));
  border: 1px solid rgba(255, 77, 166, 0.14);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

body.public .mock-footer-inner {
  width: 100%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

body.public .site-footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.public .site-social-link {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid rgba(255, 77, 166, 0.2);
  color: #252525;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

body.public .site-social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 77, 166, 0.2);
}

body.public .whatsapp-float a {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@media (max-width: 900px) {
  body.public .hero {
    min-height: clamp(200px, 52vw, 280px);
  }

  body.public .hero-inner {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 18px 16px;
  }

  body.public .cards-grid,
  body.public .grid-3,
  body.public .grid-4,
  body.public .mock-card-grid,
  body.public .mock-plan-grid {
    grid-template-columns: 1fr;
  }
}









