/* TurnoFacil design system: "the appointment is a ticket". Accent turquoise, violet, ink on lilac. */
/* Fonts served from this site (SIL OFL 1.1, licenses next to the files in static/fonts/), so no
   third party receives visitors' IP addresses. Variable fonts: one file covers every weight. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/BricolageGrotesque-Variable.7225c9dea7fc.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/HankenGrotesk-Variable.4cb65968db2e.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --ink: #1c1530;
  --ground: #efeaf8;
  --paper: #ffffff;
  --soft: #faf8ff;
  --line: #d9d2e8;
  --line-soft: #f0ecf7;
  --body: #4b4362;
  --muted: #6b6283;
  --accent: #2ec4b6;
  --accent-ink: #0b7a70;
  --violet: #6e4bff;
  --violet-soft: #ece6ff;
  --violet-ink: #3b2a8f;
  --warm: #fff3d6;
  --warm-ink: #7a4b00;
  --danger: #b42318;
  --radius: 24px;
  --shadow: 6px 6px 0 var(--ink);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --display: "Bricolage Grotesque", Georgia, serif;
  --text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
/* Entrance animations only on a fresh visit, not on every step of a multi-step form. */
.continuing .step, .continuing .appt { animation: none; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 16px/1.5 var(--text); }
a { color: var(--violet-ink); text-underline-offset: 3px; }
a:hover { color: var(--violet); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.display { font-family: var(--display); letter-spacing: -0.02em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 560px; }
.muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.js .js-hide { display: none !important; }

/* ---------- Top bars ---------- */
.site-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px 0; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 24px; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.logo:hover { color: var(--ink); }
.logo-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--accent); display: grid; place-items: center; transform: rotate(-6deg); flex: 0 0 auto; }
.blob { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 46% 54% 41% 59% / 55% 42% 58% 45%; background: var(--violet); color: #fff; font-family: var(--display); font-weight: 800; font-size: 22px; animation: morph 9s ease-in-out infinite; flex: 0 0 auto; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--paper); border: 1.5px solid var(--ink); font-size: 14px; font-weight: 700; }
.top-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-weight: 700; }
.top-links a { color: var(--ink); }

/* Panel bar: brand, the four daily tabs and the account menu. On phones the tabs become a bottom bar. */
.app-bar { position: sticky; top: 0; z-index: 40; background: var(--ink); color: #fff; }
.app-bar .inner { display: flex; align-items: center; gap: 28px; height: 64px; padding: 0 20px; max-width: 1180px; margin: 0 auto; }
.app-brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: #fff; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.app-brand:hover { color: #fff; }
.app-brand .logo-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: var(--ink); transform: none; }
.app-brand-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.app-tabs { display: flex; gap: 2px; margin-right: auto; }
.app-tabs a { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 8px; color: #c9c0e6; font-weight: 600; font-size: 15px; text-decoration: none; transition: background .15s, color .15s; }
.app-tabs a svg { display: none; }
.app-tabs a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.app-tabs a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .13); }
.app-account { flex: 0 0 auto; }
/* The news bell, just before the account menu (HU-38). */
.app-bell { position: relative; display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; margin-left: auto; border-radius: 999px; color: #e7e1f7; }
.app-bell:hover, .app-bell[aria-current="page"] { background: rgba(255, 255, 255, .1); color: #fff; }
.app-bell + .app-account { margin-left: 0; }
.bell-count { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--ink); }
.news-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.news-item { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: var(--shadow); }
.news-item.is-new { border-color: #c9bcff; box-shadow: 0 0 0 1px #c9bcff, var(--shadow); }
.news-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.news-head strong { font-size: 16px; }
.news-body { margin-top: 8px; color: var(--body); font-size: 15px; }
.news-body p { margin: 0 0 8px; }
.news-link { margin: 4px 0 0; font-weight: 700; }
.app-account > summary { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 4px; border-radius: 999px; color: #e7e1f7; font-weight: 600; font-size: 15px; }
.app-account > summary:hover, .app-account[open] > summary, .app-account > summary.is-current { background: rgba(255, 255, 255, .1); color: #fff; }
.app-account .menu-panel { color: var(--ink); }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--violet); color: #fff; font-weight: 800; font-size: 14px; flex: 0 0 auto; }

/* Dropdown menus built on <details>: they work without JavaScript; app.js closes them on outside clicks. */
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; user-select: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; display: grid; gap: 2px; min-width: 240px; padding: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(28, 21, 48, .16), 0 2px 6px rgba(28, 21, 48, .06); animation: menu-in .12s ease-out; }
.menu-panel form { display: contents; }
.menu-panel a, .menu-panel button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--ink); font-weight: 600; font-size: 15px; text-align: left; text-decoration: none; white-space: nowrap; }
.menu-panel a svg, .menu-panel button svg { color: var(--muted); flex: 0 0 auto; }
.menu-panel a:hover, .menu-panel button:hover, .menu-panel a[aria-current="page"] { background: var(--soft); color: var(--ink); }
.menu-panel .danger, .menu-panel .danger svg { color: var(--danger); }
.menu-panel .danger:hover { background: #fdecea; color: var(--danger); }
.menu-panel hr { width: 100%; margin: 4px 0; border: 0; border-top: 1px solid var(--line-soft); }
.menu-head { margin: 0 0 4px; padding: 8px 12px 10px; border-bottom: 1px solid var(--line-soft); }
.menu-head strong { display: block; font-size: 15px; }
.menu-head span { display: block; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 16px; border: 1.5px solid var(--ink); font-weight: 800; font-size: 16px; text-decoration: none; background: var(--paper); color: var(--ink); transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { color: var(--ink); }
.btn-primary { background: var(--accent); box-shadow: 4px 4px 0 var(--ink); }
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn-primary:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-quiet:hover { background: var(--ink); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; background: #2e2547; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; box-shadow: 4px 4px 0 var(--ink); }
.btn-danger:hover { color: #fff; transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn-small { min-height: 44px; padding: 0 14px; font-size: 14px; border-radius: 12px; border-color: var(--line); background: var(--soft); font-weight: 700; }
.btn-small:hover { border-color: var(--ink); }
.btn-small.danger:hover { border-color: var(--danger); color: var(--danger); }
.btn-block { width: 100%; }
.btn:disabled { background: #e9e4f3; color: var(--muted); border-color: #c7bfdb; box-shadow: none; transform: none; cursor: not-allowed; }
.link-button { background: none; border: 0; padding: 0; font-weight: 700; color: var(--violet-ink); text-decoration: underline; text-underline-offset: 4px; min-height: 44px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Cards and notices ---------- */
.card { background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card + .card { margin-top: 22px; }
.card h2 { margin: 0 0 6px; font-family: var(--display); font-size: 24px; letter-spacing: -0.02em; }
.card > p { margin: 0 0 16px; color: var(--body); }
.notice { padding: 14px 18px; border-radius: 16px; background: var(--warm); border: 1.5px solid #f0d58a; color: var(--warm-ink); font-weight: 500; }
.notice.ok { background: #e3f7f4; border-color: #9fe0d8; color: #075c54; }
.page-title { margin: 40px 0 8px; font-family: var(--display); font-size: clamp(36px, 5vw, 60px); line-height: .98; letter-spacing: -0.03em; }
.page-lead { margin: 0 0 28px; color: var(--body); font-size: 18px; max-width: 640px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--warm); color: var(--warm-ink); }
.badge.violet { background: var(--violet-soft); color: var(--violet-ink); }
.badge.off { background: #ece9f2; color: var(--muted); }

/* ---------- Forms ---------- */
form > div, .field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
label { font-weight: 700; font-size: 15px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="tel"], input[type="date"], input[type="time"], select, textarea {
  width: 100%; padding: 13px 15px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--soft); font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--ink); box-shadow: 4px 4px 0 var(--violet); background: var(--paper); }
input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--violet); }
form > div:has(> input[type="checkbox"]), .consent { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; }
.consent { display: flex; margin-top: 14px; }
form > div:has(> input[type="checkbox"]) > .errorlist, .consent > .errorlist { flex-basis: 100%; }
input[type="checkbox"] { flex-shrink: 0; }
.errorlist { list-style: none; margin: 0; padding: 10px 14px; border-radius: 12px; background: #fdecea; color: var(--danger); font-weight: 600; font-size: 14px; }
.errorlist li + li { margin-top: 4px; }
.helptext { font-size: 14px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
.auth { max-width: 480px; margin: 32px auto 64px; }
.auth .card { padding: 32px; }
.auth h1 { margin: 0 0 6px; font-family: var(--display); font-size: 40px; line-height: 1; letter-spacing: -0.03em; }
.auth .sub { margin: 0 0 24px; color: var(--body); }
.auth .alt { margin-top: 18px; text-align: center; color: var(--body); }

/* ---------- Booking: hero ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin: 28px 0 40px; }
.hero h1 { margin: 0; font-family: var(--display); font-size: clamp(46px, 7.4vw, 104px); line-height: .92; font-weight: 800; letter-spacing: -0.03em; max-width: 820px; }
.hl { position: relative; display: inline-block; color: var(--violet); }
.hl svg { position: absolute; left: -2%; bottom: -0.18em; width: 104%; height: 0.32em; overflow: visible; }
.hl path { stroke: var(--accent); stroke-width: 7; fill: none; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 1.1s .4s cubic-bezier(.65, 0, .35, 1) forwards; }
.lead { font-size: 19px; max-width: 540px; margin: 22px 0 0; color: var(--body); }
.spin-badge { position: relative; width: 150px; height: 150px; flex: 0 0 auto; }
.spin-badge .ring { width: 150px; height: 150px; animation: spin 18s linear infinite; }
.spin-badge .ring text { font-family: var(--text); font-weight: 700; font-size: 13.5px; letter-spacing: 2.4px; fill: var(--ink); }
.spin-badge .core { position: absolute; inset: 38px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: var(--ink); }

/* ---------- Booking: steps ---------- */
.booking { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.steps { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.step { background: var(--paper); border-radius: 28px; padding: 28px; border: 1.5px solid var(--ink); box-shadow: var(--shadow); animation: rise .6s both; scroll-margin-top: 16px; }
.step:nth-child(2) { animation-delay: .06s; } .step:nth-child(3) { animation-delay: .12s; } .step:nth-child(4) { animation-delay: .18s; } .step:nth-child(5) { animation-delay: .24s; }
.step-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.step-head h2 { margin: 0; font-family: var(--display); font-size: 25px; font-weight: 600; letter-spacing: -0.02em; }
.num { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.step.done .num { color: var(--accent); -webkit-text-stroke: 0; }
.step-empty { padding: 18px; border-radius: 16px; border: 1.5px dashed #c7bfdb; color: var(--muted); }

.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.svc { position: relative; display: block; margin: 0; font-weight: 400; }
.svc-body { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; height: 100%; padding: 18px; border-radius: 20px; border: 1.5px solid var(--line); background: var(--soft); min-height: 150px; cursor: pointer; transition: transform .25s var(--spring), background .2s, border-color .2s; }
.svc:hover .svc-body { transform: translateY(-4px) rotate(-1deg); border-color: var(--ink); }
.svc .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--paper); border: 1.5px solid var(--ink); color: var(--violet); }
.svc .nm { font-weight: 700; font-size: 17px; line-height: 1.2; }
.dur { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--violet-soft); color: var(--violet-ink); }
.svc input:checked + .svc-body { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-4px) rotate(-1.5deg); animation: pop .35s var(--spring); }
.svc input:checked + .svc-body .ic { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.svc input:checked + .svc-body .dur { background: #fff; color: var(--ink); }
.svc input:checked + .svc-body .helptext { color: #d8d0f2; }
.svc input:focus-visible + .svc-body, .pro input:focus-visible + .pro-body, .slot input:focus-visible + span { outline: 3px solid var(--violet); outline-offset: 3px; }

.pros { display: flex; flex-wrap: wrap; gap: 14px; }
.pro { position: relative; margin: 0; font-weight: 400; }
.pro-body { display: flex; align-items: center; gap: 14px; padding: 11px 22px 11px 11px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--soft); min-height: 68px; cursor: pointer; transition: transform .25s var(--spring), border-color .2s; }
.pro:hover .pro-body { transform: translateY(-3px); border-color: var(--ink); }
.pro .av { width: 46px; height: 46px; font-size: 20px; }
.pro .pn { font-weight: 700; font-size: 17px; }
.pro input:checked + .pro-body { border-color: var(--ink); background: var(--paper); box-shadow: 0 0 0 4px var(--violet); animation: pop .35s var(--spring); }
.av { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 800; font-family: var(--display); color: var(--ink); flex: 0 0 auto; }

/* ---------- Booking: month day strip ---------- */
.strip-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.strip-head strong { font-family: var(--display); font-size: 20px; }
.strip-nav { display: flex; gap: 8px; }
.round { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--paper); display: inline-grid; place-items: center; color: var(--ink); text-decoration: none; transition: transform .2s var(--spring); }
.round:hover { transform: scale(1.08); color: var(--ink); }
.round[aria-disabled="true"] { opacity: .3; pointer-events: none; }
.days { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.day { flex: 0 0 auto; width: 72px; min-height: 76px; padding: 10px 0; border-radius: 18px; border: 1.5px solid var(--line); background: var(--soft); display: flex; flex-direction: column; align-items: center; gap: 2px; scroll-snap-align: start; transition: transform .25s var(--spring); }
.day small { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.day strong { font-family: var(--display); font-size: 26px; font-weight: 800; line-height: 1.1; }
.day:hover { transform: translateY(-3px); border-color: var(--ink); }
.day.today { border-color: var(--ink); }
.day.selected { background: var(--violet); border-color: var(--violet); color: #fff; animation: pop .35s var(--spring); }
.day.selected small { color: #ece6ff; }
.day:disabled { opacity: .45; cursor: not-allowed; transform: none; border-color: var(--line); background: repeating-linear-gradient(-45deg, #f1edf8 0 6px, var(--soft) 6px 12px); }

/* ---------- Booking: slots ---------- */
.period { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; margin: 4px 0 10px; color: var(--body); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; margin: 0 0 16px; padding: 0; border: 0; }
.slot { position: relative; margin: 0; }
.slot span { display: block; text-align: center; padding: 12px 0; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper); font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; transition: transform .2s var(--spring); }
.slot:hover span { transform: scale(1.06); border-color: var(--ink); }
.slot input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); animation: pop .35s var(--spring); }

/* ---------- Ticket ---------- */
.side { flex: 1 1 340px; min-width: 0; position: sticky; top: 20px; }
.ticket { position: relative; background: var(--paper); border-radius: 28px; border: 1.5px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.t-top { padding: 24px 26px 20px; border-radius: 26px 26px 0 0; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.t-top .sparkle { position: absolute; right: -20px; top: -20px; width: 120px; height: 120px; color: var(--accent); animation: spin 14s linear infinite; }
.t-label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #d8d0f2; }
.t-name { font-family: var(--display); font-size: 30px; font-weight: 800; margin: 4px 0 14px; letter-spacing: -0.02em; position: relative; }
.t-bar { height: 8px; border-radius: 999px; background: #3a3156; overflow: hidden; }
.t-bar span { display: block; height: 100%; border-radius: 999px; background: var(--accent); transition: width .5s var(--spring); }
.t-progress { margin-top: 10px; font-size: 13px; color: #d8d0f2; font-weight: 700; }
.perf { position: relative; height: 0; border-top: 2px dashed var(--ink); margin: 0 22px; }
.perf::before, .perf::after { content: ""; position: absolute; top: -15px; width: 28px; height: 28px; border-radius: 50%; background: var(--ground); border: 1.5px solid var(--ink); }
.perf::before { left: -39px; clip-path: inset(0 0 0 50%); }
.perf::after { right: -39px; clip-path: inset(0 50% 0 0); }
.rows { padding: 22px 26px 8px; display: flex; flex-direction: column; gap: 14px; margin: 0; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1.5px solid var(--line-soft); }
.row:last-child { border-bottom: 0; }
.row dt { font-size: 14px; color: var(--muted); font-weight: 500; }
.row dd { margin: 0; font-weight: 700; text-align: right; }
.row dd.big { font-family: var(--display); font-size: 26px; }
.ph { display: inline-block; width: 110px; height: 14px; border-radius: 999px; background: linear-gradient(90deg, #efeaf8 0%, #e2dbf3 50%, #efeaf8 100%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; vertical-align: middle; }
.t-foot { padding: 12px 26px 26px; }
.fine { font-size: 13px; color: var(--muted); text-align: center; margin: 14px 0 0; }
.stamp { position: absolute; left: 20px; top: 132px; padding: 10px 18px; border: 4px solid var(--accent-ink); border-radius: 12px; color: var(--accent-ink); font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: .06em; transform: rotate(-12deg); background: rgba(255, 255, 255, .9); animation: stamp .5s cubic-bezier(.2, 1.6, .4, 1) both; pointer-events: none; }
.burst { position: absolute; left: 50%; top: 170px; width: 0; height: 0; pointer-events: none; }
.burst i { position: absolute; width: 10px; height: 16px; border-radius: 3px; opacity: 0; transform: rotate(var(--angle)) translateY(0); animation: confetti 1.2s cubic-bezier(.2, .8, .3, 1) forwards; }
.ticket-page { max-width: 480px; margin: 8px auto 40px; }
.ticket-msg { padding: 6px 26px 26px; text-align: center; }
.ticket-msg h2 { margin: 6px 0 6px; font-family: var(--display); font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.ticket-msg p { margin: 0 0 6px; color: var(--body); }
.ticket.cancelled .t-top { background: #5b5470; }
.ticket.cancelled .rows dd { text-decoration: line-through; color: var(--muted); }

/* ---------- Marquee and footers ---------- */
.marquee { margin-top: 64px; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); overflow: hidden; background: var(--ink); color: #fff; }
.marquee .track { display: flex; gap: 40px; width: max-content; padding: 18px 0; animation: marquee 28s linear infinite; font-family: var(--display); font-size: 30px; font-weight: 600; }
.marquee .track span { display: inline-flex; align-items: center; gap: 40px; white-space: nowrap; }
.marquee svg { color: var(--accent); }
.site-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 26px 0 32px; font-size: 14px; color: var(--body); }

/* ---------- Panel ---------- */
.agenda-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 36px 0 24px; }
.eyebrow { margin: 0; font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--violet-ink); }
.agenda-head h1 { margin: 6px 0 0; font-family: var(--display); font-size: clamp(40px, 5.6vw, 72px); line-height: .95; font-weight: 800; letter-spacing: -0.03em; }
.day-nav { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.day-nav .round { width: 52px; height: 52px; }
.date-jump { display: flex; gap: 8px; align-items: center; margin: 0; }
.date-jump input { width: auto; padding: 11px 12px; }

/* Page head shared by the panel pages: what this is, then the actions on the right. */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin: 32px 0 24px; }
.page-head-text { min-width: 0; }
.page-head .page-title { margin: 6px 0 0; }
.page-head .page-lead { margin: 6px 0 0; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.day-switch { display: flex; align-items: center; gap: 6px; }
.day-switch .date-jump input { width: 168px; min-height: 44px; padding: 0 12px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none; flex: 0 0 auto; transition: border-color .15s, background .15s; }
.icon-btn:hover { border-color: #b9b0cf; color: var(--ink); background: var(--soft); }

.panel-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.panel-main { flex: 999 1 560px; min-width: 0; }
.panel-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 22px; padding: 18px 20px; }
.stat b { display: block; font-family: var(--display); font-size: 40px; line-height: 1; font-weight: 800; }
.stat span { color: var(--body); font-weight: 500; }
.summary-line { margin: -6px 0 16px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.filter { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); font-weight: 700; display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }

/* An appointment: time, who and what, then at most three controls (attendance, WhatsApp, more). */
.appts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.appt { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: start; gap: 4px 18px; padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(28, 21, 48, .05); animation: rise .4s both; }
.appt:has(details[open]) { z-index: 10; }
.appt.next { border-color: #c9bcff; box-shadow: inset 3px 0 0 var(--violet), 0 1px 2px rgba(28, 21, 48, .05); }
.appt.past { background: #fbfafd; }
.appt.past .appt-time b { color: var(--muted); }
.appt-time { padding-top: 1px; font-variant-numeric: tabular-nums; }
.appt-time b { display: block; font-size: 18px; font-weight: 800; line-height: 1.2; }
.appt-time span { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.appt-body { min-width: 0; }
.appt-body p { margin: 0; }
.appt-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.appt-name strong { font-size: 17px; line-height: 1.3; }
.appt-meta { display: flex; align-items: center; gap: 8px; margin-top: 2px; color: var(--body); font-size: 15px; }
.appt-meta a { color: var(--body); text-decoration-color: #cfc7e0; }
.appt-meta a:hover { color: var(--violet-ink); }
.appt-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); animation: pulse 1.4s ease-out infinite; }
.appt-actions { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.appt-actions form { margin: 0; }
/* The menu hangs from the whole actions row, so it never runs off the screen edge. */
.appt-more { position: static; }
.btn.icon-only { width: 40px; padding: 0; }

/* Attendance as one segmented control instead of two loose buttons. */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); overflow: hidden; }
.seg form { display: contents; }
.seg button { min-height: 38px; padding: 0 14px; border: 0; background: none; color: var(--body); font-weight: 700; font-size: 14px; white-space: nowrap; }
.seg form + form button { border-left: 1px solid var(--line); }
.seg button:hover { background: var(--soft); color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.seg button[data-value="no_show"][aria-pressed="true"] { background: #5b5470; }
.seg button:focus-visible { outline: 2px solid var(--violet); outline-offset: -2px; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hbars li { display: grid; grid-template-columns: 44px minmax(0, 1fr) 36px; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--muted); }
.hbars .track { height: 12px; border-radius: 999px; background: var(--violet-soft); overflow: hidden; }
.hbars .track i { display: block; height: 100%; border-radius: 999px; background: var(--violet); }
.hbars .n { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.rank-head { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; }
.rank-bar { height: 8px; margin-top: 8px; border-radius: 999px; background: var(--violet-soft); }
.rank-bar i { display: block; height: 100%; border-radius: 999px; background: var(--violet); }
.nowrap { white-space: nowrap; }
.logo-name { min-width: 0; }
.empty-day { padding: 32px; border-radius: 24px; border: 1.5px dashed #c7bfdb; text-align: center; color: var(--body); background: rgba(255, 255, 255, .5); }
.copy-row { display: flex; gap: 8px; align-items: center; }
.copy-row input { flex: 1; min-width: 0; font-size: 14px; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 4px; list-style: none; padding: 0; }
.week a { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); text-decoration: none; }
.week .bar-wrap { display: flex; align-items: flex-end; height: 96px; width: 100%; }
.week i { display: block; width: 100%; border-radius: 8px; background: var(--violet-soft); transition: height .5s var(--spring); }
.week a:hover i { background: #d6cbff; }
.week .count { font-family: var(--display); font-size: 16px; color: var(--ink); }
.week a[aria-current="date"] i { background: var(--violet); }
.week a[aria-current="date"] { color: var(--ink); }

/* ---------- Lists in the panel ---------- */
.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.item { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 22px; padding: 18px 20px; transition: border-color .2s, transform .2s var(--spring); }
.item:hover { border-color: var(--ink); transform: translateY(-2px); }
.item strong { font-size: 18px; }
.item .hours { list-style: none; margin: 6px 0 0; padding: 0; color: var(--body); font-size: 14px; }
.hours-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0 12px; padding: 16px; margin: 0 0 12px; border: 1.5px solid var(--line); border-radius: 18px; background: var(--soft); }
.hours-row > div { margin-bottom: 0; }
.hours-row legend { font-weight: 700; padding: 0 6px; }
.hours-row .hours-delete { flex-direction: row; align-items: center; gap: 8px; align-self: end; padding-bottom: 12px; }
.hours-row.is-deleted { opacity: .5; border-style: dashed; }
.hours-row.is-deleted .hours-delete { opacity: 1; }

/* ---------- Landing ---------- */
.landing-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; margin: 40px 0 80px; }
.landing-hero .copy { flex: 999 1 520px; min-width: 0; }
.kicker { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--paper); border: 1.5px solid var(--ink); font-weight: 700; font-size: 14px; }
.kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-ink); animation: blink 1.6s ease-in-out infinite; }
.landing-hero h1 { margin: 22px 0 0; font-family: var(--display); font-size: clamp(48px, 7vw, 96px); line-height: .92; font-weight: 800; letter-spacing: -0.03em; }
.strike { position: relative; color: #8a80a6; }
.strike::after { content: ""; position: absolute; left: -4%; right: -4%; top: 52%; height: .12em; background: var(--accent); border-radius: 999px; transform: rotate(-4deg) scaleX(0); transform-origin: left; animation: strike .7s .5s cubic-bezier(.65, 0, .35, 1) forwards; }
.violet { color: var(--violet); }
.landing-hero .lead { font-size: 20px; max-width: 560px; margin: 24px 0 32px; }
.phone-wrap { flex: 1 1 320px; display: flex; justify-content: center; position: relative; min-height: 520px; }
.phone { width: 290px; height: 520px; border-radius: 44px; background: var(--ink); padding: 14px; box-shadow: 12px 12px 0 var(--violet); transform: rotate(4deg); animation: float 6s ease-in-out infinite; }
.screen { width: 100%; height: 100%; border-radius: 32px; background: var(--ground); padding: 22px 16px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.mini-title { font-family: var(--display); font-size: 26px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.mini-row { display: flex; gap: 8px; flex-wrap: wrap; }
.mini-pill { padding: 8px 12px; border-radius: 12px; background: var(--paper); border: 1.5px solid var(--line); font-weight: 700; font-size: 13px; }
.mini-pill.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.mini-ticket { margin-top: auto; background: var(--paper); border-radius: 20px; border: 1.5px solid var(--ink); padding: 14px; position: relative; }
.mini-ticket b { display: block; font-family: var(--display); font-size: 22px; }
.mini-stamp { position: absolute; right: 10px; top: -14px; padding: 4px 10px; border: 3px solid var(--accent-ink); color: var(--accent-ink); border-radius: 8px; font-weight: 800; font-family: var(--display); transform: rotate(-10deg); background: var(--paper); animation: stamp-loop 2.4s 1s cubic-bezier(.2, 1.6, .4, 1) infinite; }
.sticker { position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 16px; background: var(--paper); border: 1.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); font-weight: 700; font-size: 14px; }
.sticker.a { left: 0; top: 60px; transform: rotate(-6deg); animation: bob 5s ease-in-out infinite; }
.sticker.b { right: 0; bottom: 70px; transform: rotate(5deg); animation: bob 5.5s .8s ease-in-out infinite; }
.sticker svg { color: var(--violet); }
.section-title { font-family: var(--display); font-size: clamp(36px, 4.6vw, 60px); font-weight: 800; line-height: 1; margin: 0 0 36px; max-width: 760px; letter-spacing: -0.03em; }
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.how .card { display: flex; flex-direction: column; gap: 14px; transition: transform .25s var(--spring); }
.how .card + .card { margin-top: 0; }
.how .card:hover { transform: translateY(-6px) rotate(-1deg); }
.how .n { font-family: var(--display); font-weight: 800; font-size: 56px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.how h3 { margin: 0; font-family: var(--display); font-size: 24px; letter-spacing: -0.02em; }
.how p { margin: 0; color: var(--body); }
.icon-box { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); flex: 0 0 auto; }
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.feat { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 22px; background: var(--soft); border: 1.5px solid var(--line); }
.feat .icon-box { background: var(--accent); color: var(--ink); }
.feat h3 { margin: 0 0 4px; font-size: 18px; }
.feat p { margin: 0; color: var(--body); }
.final { margin: 96px 0 40px; padding: 56px 40px; border-radius: 36px; background: var(--violet); color: #fff; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; position: relative; overflow: hidden; border: 1.5px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.final h2 { margin: 0; font-family: var(--display); font-size: clamp(34px, 4.4vw, 58px); line-height: 1; font-weight: 800; max-width: 640px; letter-spacing: -0.03em; position: relative; }
.final .spin { position: absolute; right: -50px; bottom: -60px; width: 220px; height: 220px; color: rgba(255, 255, 255, .14); animation: spin 20s linear infinite; }
.final .btn { position: relative; }

/* ---------- Error pages ---------- */
.error-page { text-align: center; padding: 64px 0; }
.error-page .code { font-family: var(--display); font-weight: 800; font-size: clamp(96px, 18vw, 200px); line-height: .9; color: transparent; -webkit-text-stroke: 2px var(--ink); }

/* ---------- Motion ---------- */
@keyframes morph { 0%, 100% { border-radius: 46% 54% 41% 59% / 55% 42% 58% 45%; } 50% { border-radius: 58% 42% 55% 45% / 43% 57% 43% 57%; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { scale: .92; } 60% { scale: 1.06; } 100% { scale: 1; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes stamp { 0% { opacity: 0; transform: rotate(-12deg) scale(2.4); } 70% { opacity: 1; transform: rotate(-12deg) scale(.92); } 100% { opacity: 1; transform: rotate(-12deg) scale(1); } }
@keyframes stamp-loop { 0%, 15% { opacity: 0; transform: rotate(-10deg) scale(2); } 30%, 85% { opacity: 1; transform: rotate(-10deg) scale(1); } 100% { opacity: 0; transform: rotate(-10deg) scale(1); } }
@keyframes confetti { 0% { opacity: 1; transform: rotate(var(--angle)) translateY(0) rotate(0); } 100% { opacity: 0; transform: rotate(var(--angle)) translateY(calc(var(--distance) * -1)) rotate(320deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(110, 75, 255, .6); } 100% { box-shadow: 0 0 0 10px rgba(110, 75, 255, 0); } }
@keyframes blink { 50% { opacity: .3; } }
@keyframes strike { to { transform: rotate(-4deg) scaleX(1); } }
@keyframes float { 0%, 100% { transform: rotate(4deg) translateY(0); } 50% { transform: rotate(3deg) translateY(-12px); } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

@media (max-width: 720px) {
  .side { position: static; }
  .hero { margin: 16px 0 24px; }
  .step, .card { padding: 20px; box-shadow: 4px 4px 0 var(--ink); }
  .spin-badge { display: none; }
  .stamp { font-size: 20px; padding: 8px 12px; top: 128px; left: 12px; }
  /* Appointments: time and details side by side, the controls on their own row below. */
  .appt { grid-template-columns: 52px minmax(0, 1fr); padding: 14px; gap: 4px 12px; }
  .appt-actions { grid-column: 1 / -1; justify-content: flex-start; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
  .appt-actions { flex-wrap: nowrap; }
  .appt-actions .seg { flex: 1 1 auto; min-width: 0; }
  .appt-actions .seg form { display: contents; }
  .appt-actions .seg button { flex: 1 1 0; min-width: 0; padding: 0 8px; }
  .appt-actions .btn-wa { flex: 1 1 auto; }
  /* Next to the attendance control, WhatsApp shrinks to its icon so the row never wraps. */
  .appt-actions .seg ~ .btn-wa { flex: 0 0 auto; width: 40px; padding: 0; }
  .appt-actions .seg ~ .btn-wa span { display: none; }
  .appt-time b { font-size: 16px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
  .stats.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 12px; border-radius: 16px; min-width: 0; }
  .stat b { font-size: clamp(19px, 6.4vw, 26px); overflow-wrap: break-word; }
  .stat span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.3; }
  .date-jump { flex-wrap: wrap; }
  .date-jump select { flex: 1 1 100%; min-width: 0; }
  /* Agenda toolbar: the day switcher fills a row, the actions share the next one. */
  .page-head { margin: 20px 0 18px; align-items: stretch; }
  .page-head .toolbar { width: 100%; }
  .day-switch { flex: 1 1 100%; }
  .day-switch .date-jump { flex: 1 1 auto; flex-wrap: nowrap; }
  .day-switch .date-jump input { width: 100%; }
  .toolbar > .btn { flex: 1 1 auto; padding: 0 14px; white-space: nowrap; }
  .landing-hero { margin: 24px 0 48px; }
  .phone-wrap { min-height: 480px; }
  .final { padding: 36px 24px; }
  .agenda-head { margin: 24px 0 16px; }
}

@media (max-width: 860px) {
  /* Phones and small tablets: the panel tabs move to a bottom bar with icons, like a native app. */
  .app-bar .inner { height: 56px; padding: 0 16px; gap: 12px; justify-content: space-between; }
  .app-brand { font-size: 17px; }
  .app-account-label { display: none; }
  .app-account > summary { padding: 0 6px 0 4px; }
  .app-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; margin: 0; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(28, 21, 48, .06); }
  .app-tabs a { flex-direction: column; justify-content: center; gap: 3px; height: 52px; padding: 0 2px; border-radius: 10px; color: var(--muted); font-size: 11.5px; font-weight: 700; }
  .app-tabs a svg { display: block; }
  .app-tabs a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .app-tabs a:hover { background: var(--soft); color: var(--ink); }
  .app-tabs a[aria-current="page"] { color: var(--violet-ink); background: var(--violet-soft); }
  body.app { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .app-account .menu-panel { position: fixed; top: 60px; right: 12px; left: auto; max-width: calc(100vw - 24px); }
}

@media (max-width: 560px) {
  /* Phones: the two buttons first, full width, then the links centred under them. */
  footer.legal-foot { flex-direction: column; align-items: stretch; gap: 14px; margin-top: 40px; }
  footer.legal-foot .legal-buttons { order: 0; }
  footer.legal-foot .legal-links { order: 1; justify-content: center; gap: 8px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hl path { stroke-dashoffset: 0; }
  .strike::after { transform: rotate(-4deg); }
  .burst { display: none; }
}

/* ---------- Plans and subscription ---------- */
.sub-banner { border-bottom: 1.5px solid var(--ink); font-size: 15px; }
.sub-banner .inner { max-width: 1180px; margin: 0 auto; padding: 10px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.sub-banner a { font-weight: 800; color: var(--ink); }
.sub-banner.trial { background: var(--accent); color: var(--ink); }
.sub-banner.locked { background: var(--warm); color: var(--warm-ink); }
.messages { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.plans-top { display: flex; flex-wrap: wrap; gap: 22px; align-items: stretch; margin-bottom: 32px; }
.status-card { flex: 2 1 380px; }
.status-card p { margin: 0 0 8px; color: var(--body); }
.status-line { margin-bottom: 10px !important; }
.days-left b { font-family: var(--display); font-size: 56px; line-height: 1; color: var(--ink); }
.days-left { font-weight: 700; color: var(--ink) !important; }
.trial-box { flex: 1 1 260px; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 26px; border-radius: var(--radius); background: var(--violet); color: #fff; border: 1.5px solid var(--ink); box-shadow: var(--shadow); font-family: var(--display); font-size: 22px; line-height: 1.2; }
.trial-box p { margin: 0; }
.trial-box .icon-box { background: var(--accent); color: var(--ink); }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 28px; padding: 28px; box-shadow: var(--shadow); transition: transform .25s var(--spring); }
.plan:hover { transform: translateY(-6px) rotate(-.5deg); }
.plan.featured { box-shadow: 8px 8px 0 var(--violet); }
.plan.current { outline: 4px solid var(--accent); outline-offset: 4px; }
.plan h2 { margin: 0; font-family: var(--display); font-size: 30px; letter-spacing: -0.02em; }
.plan-tag { position: absolute; top: -14px; right: 20px; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 800; font-size: 13px; transform: rotate(3deg); }
.price { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.price .amount { font-family: var(--display); font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.price .per { color: var(--muted); font-weight: 700; }
.limit { margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 800; padding: 10px 14px; border-radius: 14px; background: var(--violet-soft); color: var(--violet-ink); }
.plan-features { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan-features li { display: flex; gap: 10px; align-items: flex-start; color: var(--body); }
.plan-features svg { color: var(--accent-ink); flex: 0 0 auto; margin-top: 2px; }
.plan form { margin: 0; }
.plan-note { margin: 0; font-size: 14px; color: var(--muted); text-align: center; }
.plans-foot { margin: 28px 0 48px; text-align: center; }

/* ---------- Deposit (seña) ---------- */
.deposit-box { margin-top: 20px; padding: 18px; border: 1.5px dashed var(--ink); border-radius: 18px; background: var(--paper); text-align: left; }
.deposit-box h2 { margin: 0 0 8px; font-size: 18px; }
.deposit-box dl { display: grid; gap: 6px; margin: 12px 0; }
.price-split dd { margin: 0; font-weight: 800; white-space: nowrap; }
.price-split div:last-child { border-top: 1.5px solid var(--line); padding-top: 6px; }
.deposit-box dl div { display: flex; flex-wrap: wrap; gap: 0 8px; }
.deposit-box dt { font-weight: 700; }
.deposit-box dd { margin: 0; overflow-wrap: anywhere; }
.deposit-box .price-split div { flex-wrap: nowrap; justify-content: space-between; gap: 12px; }

/* Legal footer: the two buttons the rule asks for, side by side and the same size, then the links. */
.legal-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; margin-top: 56px; padding: 22px 0 32px; border-top: 1px solid var(--line); font-size: 14px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--body); }
.legal-links a { color: var(--body); text-decoration: none; }
.legal-links a:hover { color: var(--ink); text-decoration: underline; }
.legal-buttons { order: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.legal-btn { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 6px 14px; border: 1px solid var(--ink); border-radius: 10px; background: var(--paper); color: var(--ink); font-weight: 700; font-size: 13px; line-height: 1.25; text-align: center; text-decoration: none; transition: background .15s, color .15s; }
.legal-btn:hover { background: var(--ink); color: #fff; }
.legal-doc h2 { font-size: 22px; margin: 28px 0 8px; }
.legal-doc h2:first-child, .legal-doc h3:first-child { margin-top: 0; }
.legal-doc h3 { font-size: 18px; margin: 22px 0 6px; }
.legal-doc p, .legal-doc li { line-height: 1.6; }
.legal-doc ul { padding-left: 20px; }
.legal-facts { display: grid; gap: 12px; margin: 0; }
.legal-facts dt { font-weight: 700; }
.legal-facts dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.support-wa { margin-top: 22px; }
@media (max-width: 560px) { .support-wa { width: 100%; } }
.legal-code { font-family: ui-monospace, Consolas, monospace; letter-spacing: .04em; }
.deposit-note { margin: 0 0 16px; padding: 14px 16px; border: 1.5px dashed var(--ink); border-radius: 16px; background: var(--soft); text-align: left; font-size: 14px; }
.deposit-note h3 { margin: 0 0 6px; font-size: 16px; }
.deposit-note p { margin: 0 0 8px; }
.deposit-note p:last-child { margin-bottom: 0; }
.badge.ok { background: #e3f7f4; color: #075c54; }
.appt-actions form { display: contents; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- Panel look ----------
   Inside the panel (body.app) the same components turn sober: thin borders, soft shadows, moderate
   type and one dark primary action. The public pages (home, booking) keep the playful system above. */
.app { --ground: #f4f2f8; --line: #e2ddec; --line-soft: #efecf5; --soft: #f8f7fb; --radius: 14px; --shadow: 0 1px 2px rgba(28, 21, 48, .05), 0 1px 8px rgba(28, 21, 48, .04); }
.app main { min-height: 50vh; }
.app .page-title { margin: 32px 0 6px; font-size: clamp(26px, 3.2vw, 32px); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.app .page-head .page-title { margin: 4px 0 0; }
.app .page-lead { margin: 0 0 24px; font-size: 16px; }
.app .agenda-head { margin: 32px 0 24px; }
.app .agenda-head h1 { margin-top: 4px; font-size: clamp(26px, 3.2vw, 32px); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.app .card { padding: 24px; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.app .card + .card { margin-top: 16px; }
.app .card h2 { margin-bottom: 4px; font-family: var(--text); font-size: 17px; font-weight: 800; letter-spacing: 0; }
.app .card > p { font-size: 15px; }
.app .card-tip { margin: 12px 0 0; }

.app .btn { min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 10px; font-weight: 700; font-size: 15px; box-shadow: none; transition: background .15s, border-color .15s, color .15s; }
.app .btn:hover { border-color: #b9b0cf; background: var(--soft); color: var(--ink); transform: none; }
.app .btn-primary, .app .btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: none; }
.app .btn-primary:hover, .app .btn-primary:active, .app .btn-dark:hover { background: #2e2547; border-color: #2e2547; color: #fff; transform: none; box-shadow: none; }
.app .btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; box-shadow: none; }
.app .btn-danger:hover { background: #912018; border-color: #912018; color: #fff; box-shadow: none; }
.app .btn-small { min-height: 38px; padding: 0 12px; border-radius: 8px; font-size: 14px; background: var(--paper); }
.app .btn-small.btn-primary { background: var(--ink); }
.app .btn.icon-only { width: 38px; padding: 0; }
.app .btn:disabled { background: #eeebf4; border-color: var(--line); color: var(--muted); }
.app .round { width: 44px; height: 44px; border: 1px solid var(--line); }
.app .round:hover { transform: none; border-color: #b9b0cf; }
.app .day-nav .round { width: 44px; height: 44px; }

.app label { font-size: 14px; }
.app input[type="text"], .app input[type="email"], .app input[type="password"], .app input[type="number"], .app input[type="tel"], .app input[type="date"], .app input[type="time"], .app select, .app textarea { padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.app input:focus, .app select:focus, .app textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-soft); }
/* A checkbox field reads as one line: the box, its label, and the help text under the label. */
.app form > div:has(> input[type="checkbox"]) { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 10px; }
.app form > div:has(> input[type="checkbox"]) > input { grid-column: 1; grid-row: 1; }
.app form > div:has(> input[type="checkbox"]) > label { grid-column: 2; grid-row: 1; }
.app form > div:has(> input[type="checkbox"]) > .helptext, .app form > div:has(> input[type="checkbox"]) > .errorlist { grid-column: 2; }
.app .errorlist { border-radius: 8px; }
.app .hours-row { border-width: 1px; border-radius: 12px; }

.app .stat { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.app .stat b { font-family: var(--text); font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
.app .stat span { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.app .filter { min-height: 36px; padding: 0 14px; border-width: 1px; font-size: 14px; }
.app .filter:hover { border-color: #b9b0cf; }
.app .items { gap: 10px; }
.app .item { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.app .item:hover { transform: none; border-color: #cfc7e0; }
.app .item strong { font-size: 16px; }
/* List rows keep their edit button on the right, also on phones. */
.app .item { flex-wrap: nowrap; align-items: flex-start; }
.item-main { min-width: 0; }
.item-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.app .item .hours { margin-top: 6px; display: grid; gap: 2px; font-size: 14px; }
.item-main.wide { flex: 1 1 auto; }
.item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.item-head .btn { margin-left: auto; }
.app .plans-hero { margin-top: 32px; }
.app .dur { font-size: 12px; }
.app .empty-day { padding: 28px; border: 1px dashed #cfc7e0; border-radius: 14px; background: var(--paper); }
.empty-title { margin: 0 0 4px; font-weight: 800; font-size: 17px; color: var(--ink); }
.empty-day p { margin: 0; }
.app .notice { margin: 0 0 16px; padding: 12px 16px; border-width: 1px; border-radius: 10px; font-size: 15px; }
.app .messages .notice { margin: 0; }
.app .sub-banner { border-bottom: 1px solid rgba(28, 21, 48, .1); font-size: 14px; }
.app .sub-banner.trial { background: #e3f7f4; color: #075c54; }
.app .week .count { font-family: var(--text); font-size: 14px; font-weight: 800; }

/* Choosing a panel profile (ADR-0006). */
.profile-list { display: grid; gap: 8px; margin: 0 0 18px; padding: 0; border: 0; }
.profile-option { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); cursor: pointer; font-weight: 400; }
.profile-option:hover { border-color: #b9b0cf; }
.profile-option:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.profile-option:has(input:focus-visible) { outline: 3px solid var(--violet); outline-offset: 2px; }
.profile-option input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); flex: 0 0 auto; }
.profile-option .avatar { width: 36px; height: 36px; }
.profile-text { display: grid; gap: 2px; min-width: 0; }
.profile-text small { color: var(--muted); font-size: 13px; }
.profile-option.is-disabled { opacity: .55; cursor: not-allowed; }

.report-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.report-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; flex: 1 1 320px; }
.report-filters select { width: auto; min-width: 180px; flex: 0 1 240px; }
.export-note { margin: 0 0 20px; max-width: 720px; }

.app .plans-top { gap: 16px; margin-bottom: 24px; }
.app .trial-box { padding: 22px; border: 1px solid #d9cfff; border-radius: 14px; background: var(--violet-soft); color: var(--violet-ink); box-shadow: none; font-family: var(--text); font-size: 16px; font-weight: 600; }
.app .plan-grid { gap: 16px; }
.app .plan { padding: 24px; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.app .plan:hover { transform: none; }
.app .plan.featured { border-color: #c9bcff; box-shadow: 0 0 0 1px #c9bcff, var(--shadow); }
.app .plan.current { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
.app .plan h2 { font-family: var(--text); font-size: 20px; font-weight: 800; letter-spacing: 0; }
.app .plan-tag { top: -12px; transform: none; font-size: 12px; }
.app .price .amount { font-family: var(--text); font-size: 34px; }
.app .days-left b { font-family: var(--text); font-size: 40px; }
.app .deposit-box, .app .deposit-note { border-width: 1px; }

/* In the panel the legal buttons stay visible but do not compete with the business's own actions. */
.app .legal-btn { border-color: var(--line); color: var(--body); font-weight: 600; }
.app .legal-btn:hover { border-color: var(--ink); background: var(--paper); color: var(--ink); }

@media (max-width: 720px) {
  .app .card { padding: 18px; }
  .app .page-title { margin-top: 22px; }
  .app .agenda-head { margin: 22px 0 18px; }
  .app .plans-hero { margin-top: 22px; }
  .app .stat b { font-size: clamp(19px, 6vw, 24px); }
  .report-filters select { flex: 1 1 100%; min-width: 0; }
  .report-bar > .btn { width: 100%; }
  /* The appointment menu opens upwards, over its own card, so the bottom bar never hides it. */
  .appt-more .menu-panel { top: auto; bottom: calc(100% + 8px); }
}
