/* =========================================================
   Bubbles & Bows — one stylesheet for the public site,
   customer portal, and owner portal.
   ========================================================= */

@font-face {
  font-family: "Mr Bubble";
  src: url("../../font/MrBubbleFont.ttf") format("truetype");
  font-display: swap;
}

:root {
  --pink: #f553d6;
  --pink-600: #d93cbb;
  --pink-50: #fff0fb;
  --pink-100: #ffd9f4;
  --purple: #4b2275;
  --purple-700: #3a1a5c;
  --purple-50: #f4eefb;
  --sky: #8fd0f8;
  --sky-50: #eef8ff;
  --sky-100: #d7efff;
  --ink: #2a1f38;
  --muted: #6c6280;
  --line: #e9e2f2;
  --bg: #fffafd;
  --card: #ffffff;
  --ok: #148a5b;
  --ok-50: #e7f7ef;
  --warn: #a35b00;
  --warn-50: #fff4e0;
  --bad: #c42a4a;
  --bad-50: #fde9ee;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(75, 34, 117, .06), 0 8px 24px -8px rgba(75, 34, 117, .18);
  --shadow-lg: 0 2px 4px rgba(75, 34, 117, .06), 0 24px 48px -16px rgba(75, 34, 117, .28);
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Fredoka", "Nunito", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
svg { width: 1.2em; height: 1.2em; flex: none; }
h3 > svg { vertical-align: -.18em; margin-right: .2rem; }
a { color: var(--purple); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--pink-600); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; color: var(--purple); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw + .5rem, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw + .4rem, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.wrap-narrow { width: min(720px, 100% - 32px); margin-inline: auto; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; }
.grow { flex: 1; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 250, 253, .9);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--purple); }
.brand img { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--purple); object-fit: cover; }
.brand-name { font-family: "Mr Bubble", var(--display); font-size: 1.45rem; line-height: 1; color: var(--pink); -webkit-text-stroke: 1px var(--purple); letter-spacing: .01em; }
.brand-name small { display: block; font-family: var(--font); -webkit-text-stroke: 0; color: var(--purple); font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; font-weight: 800; margin-top: 3px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: .25rem; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 700; padding: .5rem .8rem; border-radius: 999px; font-size: .98rem; }
.nav a:hover, .nav a.active { background: var(--pink-50); color: var(--pink-600); }
.nav .btn { margin-left: .4rem; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--purple); }
.nav-toggle svg { width: 28px; height: 28px; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--card); border-bottom: 1px solid var(--line);
    padding: .5rem 16px 1rem; box-shadow: var(--shadow);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .85rem 1rem; border-radius: var(--radius-sm); }
  .nav .btn { margin: .5rem 0 0; }
}

.announce { background: var(--purple); color: #fff; text-align: center; padding: .55rem 16px; font-weight: 700; font-size: .95rem; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--pink);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 800 1rem/1 var(--font);
  padding: .85rem 1.35rem; min-height: 48px;
  border-radius: 999px; border: 2px solid var(--b);
  background: var(--b); color: #fff; text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 0 var(--purple);
  transition: transform .08s ease, box-shadow .08s ease, background .15s;
}
.btn:hover { color: #fff; background: var(--pink-600); border-color: var(--pink-600); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--purple); }
.btn.secondary { background: #fff; color: var(--purple); border-color: var(--purple); }
.btn.secondary:hover { background: var(--purple-50); color: var(--purple); }
.btn.ghost { background: transparent; color: var(--purple); border-color: transparent; box-shadow: none; }
.btn.ghost:hover { background: var(--purple-50); }
.btn.danger { --b: var(--bad); box-shadow: 0 4px 0 #7d1530; }
.btn.danger:hover { background: #a3203c; border-color: #a3203c; }
.btn.ok { --b: var(--ok); box-shadow: 0 4px 0 #0b5638; }
.btn.ok:hover { background: #0f7049; border-color: #0f7049; }
.btn.sm { padding: .5rem .9rem; min-height: 38px; font-size: .9rem; box-shadow: 0 3px 0 var(--purple); }
.btn.lg { padding: 1.05rem 1.8rem; font-size: 1.1rem; min-height: 56px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn svg { width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--sky-100) 0%, var(--sky-50) 60%, var(--bg) 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; padding: 4.5rem 0 5rem; position: relative; z-index: 1; }
.hero h1 { color: var(--purple); }
.hero h1 .pop { color: var(--pink); }
.hero p.lead { font-size: 1.2rem; color: var(--ink); max-width: 34ch; }
.hero .cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.5rem; }
.award { display: inline-flex; align-items: center; gap: .5rem; background: #fff; border: 2px solid var(--purple); color: var(--purple); font-weight: 800; padding: .4rem .9rem .4rem .5rem; border-radius: 999px; font-size: .92rem; margin-bottom: 1.2rem; box-shadow: 0 3px 0 var(--purple); }
.award .medal { width: 28px; height: 28px; border-radius: 50%; background: var(--pink); color: #fff; display: grid; place-items: center; font-size: .95rem; }
.hero-photos { position: relative; aspect-ratio: 1 / 1.05; }
.hero-photos figure { position: absolute; margin: 0; border: 6px solid #fff; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--sky-100); }
.hero-photos figure img { width: 100%; height: 100%; object-fit: cover; }
.hero-photos .p1 { inset: 0 22% 18% 0; transform: rotate(-3deg); }
.hero-photos .p2 { width: 52%; aspect-ratio: 1; right: 0; bottom: 0; transform: rotate(4deg); }
.bubble { position: absolute; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.95), rgba(255,255,255,.35) 40%, rgba(143,208,248,.25) 70%); border: 1.5px solid rgba(255,255,255,.9); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .bubble { animation: float 9s ease-in-out infinite; }
  .bubble:nth-child(2n) { animation-duration: 12s; animation-delay: -3s; }
  .bubble:nth-child(3n) { animation-duration: 14s; animation-delay: -6s; }
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding: 2.5rem 0 3rem; gap: 2rem; }
  .hero-photos { max-width: 420px; width: 100%; margin: 0 auto; }
}

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section.tint { background: var(--pink-50); }
.section.sky { background: var(--sky-50); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.eyebrow { display: inline-block; font-weight: 800; color: var(--pink-600); text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; margin-bottom: .5rem; }
.page-head { padding: 3.2rem 0 1.5rem; text-align: center; background: linear-gradient(180deg, var(--sky-50), var(--bg)); }
.page-head p { max-width: 560px; margin-inline: auto; color: var(--muted); }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }
.card.flat { box-shadow: none; }
.card h3 { margin-bottom: .35rem; }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .grid-4 { grid-template-columns: 1fr 1fr; gap: .75rem; } .stat { padding: 1rem; } .stat .v { font-size: 1.7rem; } }

.service-card { display: flex; flex-direction: column; gap: .6rem; position: relative; }
.service-card .price { font-family: var(--display); font-size: 1.6rem; color: var(--pink-600); font-weight: 600; }
.service-card .meta { color: var(--muted); font-size: .92rem; }
.service-card .icon { width: 52px; height: 52px; border-radius: 16px; background: var(--sky-100); display: grid; place-items: center; color: var(--purple); }
.service-card .icon svg { width: 28px; height: 28px; }

/* Price tables */
.price-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 1rem; }
.price-table th, .price-table td { padding: .7rem .9rem; text-align: left; border-bottom: 1px dashed var(--line); }
.price-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 800; }
.price-table td:last-child, .price-table th:last-child { text-align: right; font-weight: 800; color: var(--purple); }
.price-table tr:last-child td { border-bottom: 0; }

/* Gallery */
.gallery { columns: 4 220px; column-gap: 14px; }
.gallery a { display: block; margin-bottom: 14px; border-radius: 16px; overflow: hidden; break-inside: avoid; box-shadow: var(--shadow); background: var(--sky-100); }
.gallery img { width: 100%; height: auto; transition: transform .35s ease; }
.gallery a:hover img { transform: scale(1.04); }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .75rem; }
.strip a { scroll-snap-align: start; border-radius: 18px; overflow: hidden; aspect-ratio: 3/4; box-shadow: var(--shadow); }
.strip img { width: 100%; height: 100%; object-fit: cover; }
.lightbox { position: fixed; inset: 0; background: rgba(28, 12, 44, .92); display: none; align-items: center; justify-content: center; z-index: 100; padding: 16px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 90vh; max-width: 100%; border-radius: 14px; }
.lightbox button { position: absolute; background: #fff; border: 0; border-radius: 50%; width: 46px; height: 46px; font-size: 1.4rem; cursor: pointer; color: var(--purple); font-weight: 800; }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; top: 50%; }
.lightbox .lb-next { right: 16px; top: 50%; }

/* About */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: center; }
.about-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about-photos img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); }
.about-photos > a { display: block; }
.about-photos > :first-child { grid-column: 1 / -1; }
.about-photos > img:first-child, .about-photos > a:first-child img { aspect-ratio: 4/3; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* Info strip */
.info-cards .card { display: flex; gap: 1rem; align-items: flex-start; }
.info-cards .ic { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--pink-100); color: var(--pink-600); display: grid; place-items: center; }
.info-cards .ic svg { width: 24px; height: 24px; }
.hours-list { list-style: none; padding: 0; margin: 0; }
.hours-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; border-bottom: 1px dashed var(--line); }
.hours-list li:last-child { border-bottom: 0; }
.hours-list span:last-child { font-weight: 700; }

.cta-band { background: var(--purple); color: #fff; border-radius: 28px; padding: 3rem 2rem; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #e8dcf5; max-width: 520px; margin-inline: auto; }
.cta-band .btn { box-shadow: 0 4px 0 #1d0b31; }

/* ---------- Footer ---------- */
.site-footer { background: var(--purple-700); color: #e6dcf2; padding: 3rem 0 2rem; margin-top: 4rem; }
.site-footer a { color: #fff; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-size: 1.05rem; }
.site-footer .fine { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.2rem; font-size: .85rem; color: #b8a8cf; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .35rem; }
.field label, .label { font-weight: 800; font-size: .95rem; color: var(--purple); }
.field .hint { font-size: .86rem; color: var(--muted); }
input:not([type]), input[type=search], input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=time], input[type=url], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: .8rem .95rem; min-height: 50px;
  border: 2px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px var(--pink-100); }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 600; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--pink); margin-top: 2px; flex: none; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
.auth-card { max-width: 460px; margin: 2.5rem auto; }

/* ---------- Alerts / badges ---------- */
.flash { padding: .9rem 1.1rem; border-radius: var(--radius-sm); font-weight: 700; margin-bottom: 1rem; border: 2px solid; }
.flash.success { background: var(--ok-50); border-color: #b7e6cf; color: #0d6743; }
.flash.error { background: var(--bad-50); border-color: #f5bccb; color: #9b1c38; }
.flash.info { background: var(--sky-50); border-color: var(--sky-100); color: #1c5a85; }
.flash.warn { background: var(--warn-50); border-color: #f6d8a8; color: var(--warn); }
.badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 800; padding: .25rem .65rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.badge.pending { background: var(--warn-50); color: var(--warn); }
.badge.confirmed { background: var(--sky-100); color: #155c8a; }
.badge.completed { background: var(--ok-50); color: var(--ok); }
.badge.cancelled, .badge.no_show { background: #f1eef5; color: var(--muted); }
.badge.paid { background: var(--ok-50); color: var(--ok); }
.badge.due { background: var(--pink-100); color: var(--pink-600); }

/* ---------- Portal layout ---------- */
.portal { padding: 2rem 0 3rem; }
.portal-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.portal-head h1 { font-size: clamp(1.7rem, 3vw + .5rem, 2.4rem); margin: 0; }
.tabs { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .4rem; margin-bottom: 1.5rem; scrollbar-width: none; }
.tabs a { flex: none; text-decoration: none; font-weight: 800; color: var(--purple); background: #fff; border: 2px solid var(--line); padding: .55rem 1rem; border-radius: 999px; font-size: .95rem; }
.tabs a.active { background: var(--purple); color: #fff; border-color: var(--purple); }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty .em { font-size: 2.6rem; }

.appt-list { display: grid; gap: .9rem; }
.appt { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: inherit; }
a.appt:hover { border-color: var(--pink-100); color: inherit; }
.appt .when { text-align: center; background: var(--pink-50); border-radius: 14px; padding: .5rem .7rem; min-width: 68px; }
.appt .when .m { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--pink-600); }
.appt .when .d { font-family: var(--display); font-size: 1.7rem; line-height: 1; color: var(--purple); font-weight: 600; }
.appt .when .t { font-size: .78rem; font-weight: 700; color: var(--muted); margin-top: 2px; }
.appt .what strong { display: block; font-size: 1.05rem; }
.appt .what span { color: var(--muted); font-size: .92rem; }
.appt .side { display: grid; gap: .4rem; justify-items: end; }
@media (max-width: 560px) {
  .appt { grid-template-columns: auto 1fr; }
  .appt .side { grid-column: 1 / -1; justify-items: start; display: flex; flex-wrap: wrap; gap: .5rem; }
}

.pet-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem .35rem .4rem; border-radius: 999px; background: var(--sky-50); font-weight: 700; }
.pet-chip .av { width: 30px; height: 30px; border-radius: 50%; background: var(--sky); color: #fff; display: grid; place-items: center; font-weight: 800; }

/* ---------- Booking wizard ---------- */
.steps { display: grid; gap: 1.25rem; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.step-title { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.step-title .n { width: 34px; height: 34px; border-radius: 50%; background: var(--pink); color: #fff; font-weight: 800; display: grid; place-items: center; flex: none; }
.step-title h2 { font-size: 1.3rem; margin: 0; }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .75rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label { display: block; height: 100%; padding: 1rem 1.1rem; border: 2px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; background: #fff; transition: border-color .15s, background .15s; }
.choice label strong { display: block; color: var(--purple); font-size: 1.05rem; }
.choice label span { font-size: .9rem; color: var(--muted); }
.choice label .p { color: var(--pink-600); font-weight: 800; }
.choice input:checked + label { border-color: var(--pink); background: var(--pink-50); box-shadow: 0 0 0 3px var(--pink-100); }
.choice input:focus-visible + label { outline: 3px solid var(--sky); }

.cal { user-select: none; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.cal-head strong { font-family: var(--display); font-size: 1.25rem; color: var(--purple); font-weight: 600; }
.cal-nav { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); background: #fff; cursor: pointer; font-size: 1.2rem; color: var(--purple); font-weight: 800; }
.cal-nav:disabled { opacity: .35; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { text-align: center; font-size: .72rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; padding-bottom: 4px; }
.cal-day { aspect-ratio: 1; border-radius: 12px; border: 2px solid transparent; background: #f6f3f9; color: #b3a9c2; font-weight: 800; font: 800 1rem var(--font); display: grid; place-items: center; position: relative; }
.cal-day.open { background: #fff; border-color: var(--sky-100); color: var(--purple); cursor: pointer; }
.cal-day.open::after { content: ""; position: absolute; bottom: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.cal-day.open:hover { border-color: var(--pink); }
.cal-day.full { background: #fdf2f6; color: #d9a4b5; text-decoration: line-through; }
.cal-day.selected { background: var(--pink); border-color: var(--pink); color: #fff; }
.cal-day.selected::after { background: #fff; }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--purple); }
.cal-day.blank { background: transparent; }
.cal-legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin-top: .75rem; }
.cal-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: .5rem; }
.slot { padding: .75rem .5rem; border: 2px solid var(--line); border-radius: 12px; background: #fff; font: 800 1rem var(--font); color: var(--purple); cursor: pointer; min-height: 48px; }
.slot:hover { border-color: var(--pink); }
.slot.selected { background: var(--pink); color: #fff; border-color: var(--pink); }
.book-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.25rem; align-items: start; }
@media (max-width: 900px) { .book-layout { grid-template-columns: 1fr; } }
.summary { position: sticky; top: 88px; }
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; margin: 0 0 1rem; }
.summary dt { color: var(--muted); font-weight: 700; }
.summary dd { margin: 0; font-weight: 800; text-align: right; color: var(--purple); }

/* ---------- Owner portal ---------- */
body.owner { background: #f7f4fb; }
.owner-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.owner-side { background: var(--purple-700); color: #e6dcf2; padding: 1.25rem 1rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 1rem; }
.owner-shell { background: linear-gradient(90deg, var(--purple-700) 250px, transparent 250px); }
@media (max-width: 960px) { .owner-shell { background: none; } }
.owner-side .brand { color: #fff; padding: .3rem .5rem 1rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.owner-side .brand img { border-color: var(--pink); }
.owner-side .brand-name small { color: #d8c7ee; }
.owner-nav { display: grid; gap: 2px; }
.owner-nav a { display: flex; gap: .75rem; align-items: center; color: #e6dcf2; text-decoration: none; padding: .7rem .8rem; border-radius: 12px; font-weight: 700; }
.owner-nav a svg { width: 20px; height: 20px; opacity: .85; flex: none; }
.owner-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.owner-nav a.active { background: var(--pink); color: #fff; }
.owner-nav .count { margin-left: auto; background: #fff; color: var(--pink-600); border-radius: 999px; font-size: .75rem; padding: 0 .5rem; font-weight: 800; }
.owner-side .foot { margin-top: auto; display: grid; gap: 2px; }
.owner-main { padding: 1.75rem clamp(16px, 3vw, 40px) 3rem; min-width: 0; }
.owner-top { display: none; }
.owner-top-close { display: none; }
@media (max-width: 960px) { .owner-top-close { display: block; } }
@media (max-width: 960px) {
  .owner-shell { grid-template-columns: 1fr; }
  .owner-side { display: none; }
  .owner-top { display: flex; align-items: center; justify-content: space-between; background: var(--purple-700); padding: .6rem 16px; position: sticky; top: 0; z-index: 40; }
  .owner-top .brand { color: #fff; }
  .owner-top .brand-name small { color: #d8c7ee; }
  .owner-top button { background: none; border: 0; color: #fff; padding: .4rem; cursor: pointer; }
  .owner-top button svg { width: 28px; height: 28px; }
  .owner-side.open { display: flex; position: fixed; inset: 0; z-index: 60; height: 100%; overflow-y: auto; }
  .owner-bottom { position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: env(safe-area-inset-bottom); }
  .owner-bottom a { display: grid; justify-items: center; gap: 2px; padding: .5rem 0 .55rem; font-size: .72rem; font-weight: 800; color: var(--muted); text-decoration: none; }
  .owner-bottom a svg { width: 24px; height: 24px; }
  .owner-bottom a.active { color: var(--pink-600); }
  .owner-main { padding-bottom: 6rem; }
}
@media (min-width: 961px) { .owner-bottom { display: none; } }

.stat { padding: 1.2rem 1.3rem; }
.stat .k { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.stat .v { font-family: var(--display); font-size: 2.1rem; color: var(--purple); font-weight: 600; line-height: 1.1; margin-top: .2rem; }
.stat .v.pink { color: var(--pink-600); }

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.table th, .table td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { background: #faf7fd; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover td { background: var(--pink-50); }

.help { background: var(--sky-50); border: 2px dashed var(--sky-100); border-radius: var(--radius-sm); padding: .9rem 1.1rem; color: #1c5a85; font-size: .95rem; }
.help strong { color: #13466a; }

.week-row { display: grid; grid-template-columns: 140px auto 1fr; gap: 1rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.week-row:last-child { border-bottom: 0; }
.week-row .times { display: flex; gap: .5rem; align-items: center; flex-wrap: nowrap; }
.week-row .times input { width: 140px; flex: none; }
.week-row.closed .times { opacity: .35; pointer-events: none; }
@media (max-width: 640px) { .week-row { grid-template-columns: 1fr auto; } .week-row .times { grid-column: 1 / -1; } }

.switch { position: relative; display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; font-weight: 800; color: var(--purple); }
.switch input { position: absolute; opacity: 0; }
.switch .track { width: 52px; height: 30px; border-radius: 999px; background: #d9d1e4; position: relative; transition: background .15s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .15s; }
.switch input:checked + .track { background: var(--ok); }
.switch input:checked + .track::after { transform: translateX(22px); }
.switch input:focus-visible + .track { outline: 3px solid var(--sky); }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.photo-tile { position: relative; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.photo-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.photo-tile .bar { display: flex; gap: 4px; padding: 6px; justify-content: space-between; }
.photo-tile .bar button { flex: 1; border: 0; background: #f4eff9; border-radius: 8px; padding: .45rem 0; cursor: pointer; font-weight: 800; color: var(--purple); font-size: .85rem; }
.photo-tile .bar button.del { background: var(--bad-50); color: var(--bad); }
.dropzone { border: 3px dashed var(--pink-100); background: var(--pink-50); border-radius: var(--radius); padding: 2rem 1rem; text-align: center; cursor: pointer; transition: border-color .15s; }
.dropzone:hover, .dropzone.drag { border-color: var(--pink); }
.dropzone strong { color: var(--pink-600); font-size: 1.1rem; }

.mini-cal { display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.mini-cal .dow { background: #faf7fd; padding: .5rem; text-align: center; font-size: .72rem; text-transform: uppercase; font-weight: 800; color: var(--muted); letter-spacing: .08em; border-bottom: 1px solid var(--line); }
.mini-cal .day { min-height: 112px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: .4rem; font-size: .8rem; position: relative; }
.mini-cal .day:nth-child(7n) { border-right: 0; }
.mini-cal .day .num { font-weight: 800; color: var(--purple); font-size: .9rem; display: flex; justify-content: space-between; }
.mini-cal .day.other { background: #fbfafd; }
.mini-cal .day.other .num { color: #c9c0d6; }
.mini-cal .day.closed { background: repeating-linear-gradient(135deg, #faf7fd, #faf7fd 6px, #f3eef9 6px, #f3eef9 12px); }
.mini-cal .day.today .num span:first-child { background: var(--pink); color: #fff; border-radius: 999px; padding: 0 .45rem; }
.mini-cal .ev { display: block; margin-top: 3px; padding: 2px 6px; border-radius: 6px; background: var(--sky-100); color: #12466b; text-decoration: none; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .76rem; }
.mini-cal .ev.pending { background: var(--warn-50); color: var(--warn); }
.mini-cal .ev.completed { background: var(--ok-50); color: var(--ok); }
.mini-cal .ev.cancelled, .mini-cal .ev.no_show { background: #f1eef5; color: var(--muted); text-decoration: line-through; }
@media (max-width: 760px) {
  .mini-cal .day { min-height: 64px; padding: .25rem; }
  .mini-cal .ev { font-size: 0; padding: 0; height: 6px; width: 6px; border-radius: 50%; display: inline-block; margin-right: 2px; background: var(--pink); }
  .mini-cal .ev.pending { background: var(--warn); }
}

.detail-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 1.25rem; align-items: start; }
@media (max-width: 960px) { .detail-grid { grid-template-columns: 1fr; } }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: .55rem 1rem; margin: 0; }
.kv dt { color: var(--muted); font-weight: 700; }
.kv dd { margin: 0; font-weight: 700; }
@media (max-width: 480px) { .kv { grid-template-columns: 1fr; gap: .1rem; } .kv dd { margin-bottom: .5rem; } }

.pay-box { border: 2px solid var(--pink-100); background: linear-gradient(180deg, #fff, var(--pink-50)); }
.pay-amount { font-family: var(--display); font-size: 2.6rem; color: var(--purple); font-weight: 600; line-height: 1; }
.pay-links { display: grid; gap: .7rem; }
.btn.venmo { --b: #008cff; box-shadow: 0 4px 0 #00539a; }
.btn.venmo:hover { background: #0074d4; border-color: #0074d4; }
.btn.paypal { --b: #ffc439; color: #111; box-shadow: 0 4px 0 #b88a13; }
.btn.paypal:hover { background: #f2b52a; border-color: #f2b52a; color: #111; }

.setup-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.setup-steps li { counter-increment: s; position: relative; padding-left: 2.6rem; }
.setup-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--purple); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .9rem; }

[hidden] { display: none !important; }
