:root {
  --ink: #2c2622;
  --muted: #81736b;
  --paper: #f7efe7;
  --panel: #fffdf9;
  --soft: #f3ece5;
  --line: #eadbd0;
  --rose: #b77769;
  --rose-deep: #8d3348;
  --gold: #d8bd72;
  --green: #69c770;
  --shadow: 0 24px 70px rgba(32, 23, 19, 0.28);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(48, 35, 30, 0.62) 0%, rgba(48, 35, 30, 0.36) 48%, rgba(48, 35, 30, 0.16) 100%),
    url("aesthetic-studio-real.jpg") center / cover no-repeat;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

[hidden] {
  display: none !important;
}

.app-shell {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100svh;
  padding: 26px;
}

.install-banner {
  position: fixed;
  top: calc(10px + env(safe-area-inset-top));
  left: 50%;
  z-index: 45;
  width: min(440px, calc(100% - 20px));
  transform: translateX(-50%);
}

.install-banner-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 9px 10px;
  color: var(--ink);
  background: rgba(255, 253, 249, 0.96);
  border: 1px solid rgba(234, 219, 208, 0.88);
  border-radius: 10px;
  box-shadow: 0 14px 36px rgba(32, 23, 19, 0.16);
  backdrop-filter: blur(12px);
}

.install-banner-inner > svg {
  width: 22px;
  height: 22px;
  color: var(--rose-deep);
}

.install-banner strong,
.install-banner small {
  display: block;
}

.install-banner strong {
  font-size: 0.82rem;
  line-height: 1.1;
}

.install-banner small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.2;
  font-weight: 750;
}

.install-action,
.install-close {
  border: 0;
  border-radius: 999px;
  font-weight: 850;
}

.install-action {
  min-height: 34px;
  padding: 0 12px;
  color: #fff;
  background: var(--rose-deep);
  font-size: 0.74rem;
}

.install-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--muted);
  background: #f8f4ef;
}

.install-close svg {
  width: 16px;
  height: 16px;
}

.landing-view {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: end;
  gap: 34px;
  width: min(1120px, 100%);
  height: min(680px, calc(100svh - 52px));
  color: #fffaf4;
  overflow: hidden;
}

.landing-hero {
  align-self: stretch;
  display: grid;
  align-content: end;
  justify-items: start;
  gap: 15px;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: clamp(28px, 5vw, 58px) 0;
}

.landing-logo {
  width: 118px;
  height: 118px;
  object-fit: contain;
  background: #faf4ee;
  border: 1px solid rgba(255, 246, 239, 0.48);
  border-radius: 50%;
  box-shadow: 0 16px 44px rgba(16, 10, 8, 0.28);
}

.landing-kicker {
  margin: 0;
  color: #f5d4c8;
  font-size: 0.86rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.landing-copy {
  width: min(560px, 100%);
  margin: 0;
  color: rgba(255, 250, 244, 0.88);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.5;
  font-weight: 650;
}

.landing-cta,
.landing-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  border: 0;
  border-radius: 6px;
  font-weight: 900;
  transition: box-shadow 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.landing-cta {
  min-width: 220px;
  padding: 0 22px;
  color: #fff;
  background: var(--rose-deep);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
}

.landing-cta:hover,
.landing-secondary:hover {
  transform: translateY(-2px);
}

.landing-cta:hover {
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.26);
}

.landing-cta svg,
.landing-secondary svg {
  width: 19px;
  height: 19px;
}

.landing-cta span,
.landing-secondary span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-info {
  display: grid;
  gap: 12px;
  align-content: end;
  width: 100%;
  min-width: 0;
  padding-bottom: clamp(28px, 5vw, 58px);
}

.landing-info-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 94px;
  padding: 16px;
  color: var(--ink);
  background: rgba(255, 253, 249, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(18, 12, 10, 0.2);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.landing-info-item:hover {
  box-shadow: 0 22px 48px rgba(18, 12, 10, 0.26);
  transform: translateY(-2px);
}

.landing-info-item svg {
  width: 23px;
  height: 23px;
  color: var(--rose-deep);
}

.landing-info-item small,
.landing-info-item em {
  display: block;
  color: var(--muted);
  font-size: 0.77rem;
  font-style: normal;
  font-weight: 800;
}

.landing-info-item strong {
  display: block;
  margin: 3px 0;
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.15;
  text-overflow: ellipsis;
}

.profile-photo-wrap {
  position: relative;
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
}

.profile-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 8px 18px rgba(44, 38, 34, 0.16);
}

.profile-badge {
  position: absolute;
  right: -3px;
  bottom: -3px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #fff;
  background: var(--rose-deep);
  border: 2px solid #fffdf9;
  border-radius: 50%;
}

.profile-badge svg {
  width: 10px;
  height: 10px;
  color: #fff;
}

.landing-secondary {
  width: 100%;
  padding: 0 18px;
  color: var(--ink);
  background: #fffdf9;
}

.admin-footer-link {
  position: absolute;
  right: 0;
  bottom: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  color: rgba(255, 250, 244, 0.72);
  background: rgba(22, 16, 14, 0.16);
  border: 1px solid rgba(255, 253, 249, 0.18);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.admin-footer-link:hover {
  color: #fffaf4;
  background: rgba(22, 16, 14, 0.28);
  transform: translateY(-1px);
}

.admin-footer-link svg {
  width: 14px;
  height: 14px;
}

.admin-view {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(43, 34, 30, 0.62);
  backdrop-filter: blur(10px);
}

.admin-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(980px, 100%);
  max-height: min(760px, calc(100svh - 44px));
  overflow: hidden;
  color: var(--ink);
  background: #fffdf9;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.admin-header small {
  color: var(--rose-deep);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.admin-header h2 {
  margin: 2px 0 0;
  font-size: 1.35rem;
}

.admin-login,
.admin-schedule {
  min-height: 0;
  overflow: auto;
  padding: 20px;
}

.admin-login {
  display: grid;
  align-content: center;
  gap: 14px;
  max-width: 420px;
  width: 100%;
  justify-self: center;
}

.admin-login p,
.admin-toolbar p,
.admin-blocks p,
.admin-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
  font-weight: 700;
}

.admin-schedule {
  display: grid;
  gap: 16px;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-toolbar > div {
  display: flex;
  gap: 10px;
  align-items: center;
}

.admin-logout {
  color: var(--muted);
}

.admin-week {
  display: grid;
  gap: 10px;
}

.admin-services {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #fbf8f5;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-section-head h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.admin-service-list {
  display: grid;
  gap: 10px;
}

.admin-service-item {
  display: grid;
  grid-template-columns: 86px minmax(180px, 1.5fr) minmax(90px, .7fr) minmax(90px, .7fr) 42px;
  align-items: end;
  gap: 10px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-service-active {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  color: var(--ink);
}

.admin-service-active input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--rose-deep);
}

.admin-service-name input,
.admin-service-item input[type="number"] {
  min-height: 40px;
  padding: 8px 10px;
}

.admin-remove-service {
  color: var(--rose-deep);
  background: #f8f4ef;
}

.admin-day {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: #f8f4ef;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-day-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 0.92rem;
}

.admin-day-toggle input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--rose-deep);
}

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

.admin-periods label {
  font-size: 0.72rem;
}

.admin-periods input {
  min-height: 38px;
  padding: 7px 9px;
  font-size: 0.86rem;
}

.admin-blocks {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #fbf8f5;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-blocks h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.block-date-form {
  display: flex;
  gap: 10px;
}

.block-date-form input {
  max-width: 210px;
}

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

.blocked-chip,
.empty-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 850;
}

.blocked-chip svg {
  width: 14px;
  height: 14px;
  color: var(--rose-deep);
}

.app-card {
  display: grid;
  grid-template-columns: 270px minmax(420px, 1fr) 300px;
  width: min(1120px, 100%);
  height: min(680px, calc(100svh - 52px));
  overflow: hidden;
  background: var(--panel);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.side-panel,
.flow-panel,
.summary-panel {
  min-height: 0;
}

.side-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  padding: 24px;
  background: #f4f1ee;
  border-right: 1px solid var(--line);
}

.step-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.step-dot {
  width: 7px;
  height: 7px;
  background: #d9d2cc;
  border-radius: 50%;
  transition: background-color 180ms ease, transform 180ms ease;
}

.step-dot.is-active,
.step-dot.is-done {
  background: #6a6560;
}

.step-dot.is-active {
  transform: scale(1.25);
}

.side-center {
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.side-logo {
  width: 132px;
  height: 132px;
  margin-bottom: 18px;
  object-fit: contain;
  background: #faf4ee;
  border: 1px solid rgba(183, 119, 105, 0.32);
  border-radius: 50%;
  box-shadow: 0 14px 36px rgba(57, 39, 33, 0.12);
}

.side-center h1 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.side-center p,
.help-link {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.help-link {
  justify-self: center;
  text-align: center;
  font-weight: 700;
}

.flow-panel {
  display: grid;
  grid-template-rows: 72px minmax(0, 1fr) 56px;
  background: #fff;
}

.flow-header,
.flow-footer {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.flow-header {
  justify-content: space-between;
  gap: 16px;
  padding: 0 22px;
}

.flow-header h2 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.flow-footer {
  position: relative;
  z-index: 3;
  justify-content: flex-end;
  padding: 0 22px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.icon-action,
.text-action,
.primary-action,
.calendar-day,
.time-option,
.service-card,
.pay-option {
  border: 0;
  border-radius: 6px;
}

.icon-action {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: transparent;
}

.icon-action:disabled {
  color: #c9c0b8;
  cursor: default;
}

.icon-action svg,
.text-action svg {
  width: 18px;
  height: 18px;
}

.primary-action {
  min-width: 172px;
  min-height: 42px;
  padding: 0 22px;
  color: #fff;
  background: var(--rose-deep);
  font-weight: 800;
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.primary-action:disabled {
  opacity: 0.45;
  cursor: default;
}

.primary-action:not(:disabled):hover {
  box-shadow: 0 10px 24px rgba(141, 51, 72, 0.22);
  transform: translateY(-1px);
}

.step {
  position: relative;
  z-index: 1;
  display: none;
  min-height: 0;
  padding: 18px 34px 12px;
  overflow: hidden;
}

.step-active {
  display: grid;
}

#stepSchedule {
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
}

.month-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.month-bar strong {
  font-size: 1.18rem;
}

.text-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  color: #4f4945;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 700;
}

.text-action:last-child {
  justify-self: end;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  align-content: center;
}

.weekday {
  color: #a1968e;
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
  letter-spacing: 0.08em;
}

.calendar-day {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
  width: 90%;
  min-height: 36px;
  color: #aeb7cc;
  background: #f5f6fb;
  font-weight: 800;
  transition: background-color 170ms ease, color 170ms ease, box-shadow 170ms ease, transform 170ms ease;
}

.calendar-day:not(:disabled):hover {
  box-shadow: 0 8px 18px rgba(44, 38, 34, 0.12);
  transform: translateY(-1px);
}

.calendar-day::after {
  position: absolute;
  right: 8px;
  bottom: 6px;
  left: 8px;
  height: 3px;
  content: "";
  background: transparent;
  border-radius: 99px;
}

.calendar-day.has-slots::after {
  background: var(--green);
}

.calendar-day.is-today {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

.calendar-day.is-selected {
  color: #fff;
  background: var(--ink);
}

.calendar-day.is-disabled,
.calendar-day.is-outside {
  color: #d0d6e5;
  background: #f7f7f9;
}

.time-block {
  display: grid;
  gap: 8px;
  min-height: 0;
  overflow: hidden;
  align-content: start;
  text-align: center;
}

.time-block p {
  margin: 0;
  font-weight: 800;
  line-height: 1.25;
}

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

.time-option {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 44px;
  color: var(--ink);
  background: #f0f0f0;
  font-weight: 850;
  transition: background-color 170ms ease, color 170ms ease, box-shadow 170ms ease, transform 170ms ease;
}

.time-option:hover {
  box-shadow: 0 8px 18px rgba(44, 38, 34, 0.1);
  transform: translateY(-1px);
}

.time-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.time-option.is-selected,
.time-option:has(input:checked) {
  color: #fff;
  background: var(--rose-deep);
}

.soft-note {
  grid-column: 1 / -1;
  min-height: 44px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--soft);
  border-radius: 6px;
  font-weight: 700;
}

#stepService {
  align-content: center;
}

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

.service-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  min-height: 128px;
  padding: 18px;
  text-align: left;
  background: #f8f4ef;
  border: 1px solid transparent;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.service-card:hover {
  box-shadow: 0 12px 26px rgba(44, 38, 34, 0.1);
  transform: translateY(-2px);
}

.service-card span {
  font-weight: 900;
  line-height: 1.2;
}

.service-card strong {
  margin-top: 10px;
  color: var(--rose-deep);
  font-size: 1.35rem;
}

.service-card small {
  align-self: end;
  color: var(--muted);
  font-weight: 700;
}

.service-card.is-selected {
  background: #fff;
  border-color: var(--rose);
  box-shadow: inset 0 0 0 2px rgba(183, 119, 105, 0.18);
}

#stepDetails {
  align-content: center;
}

.details-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
}

input,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  color: var(--ink);
  background: #fbf8f5;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
}

textarea {
  min-height: 78px;
  resize: none;
}

input:focus,
textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(183, 119, 105, 0.16);
}

.pay-choice {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.pix-tip {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 12px;
  color: #6f4f10;
  background: #fff3c4;
  border: 1px solid #ead280;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 850;
}

.pix-tip[hidden] {
  display: none;
}

.pix-tip svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.pay-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 12px;
  color: var(--ink);
  background: #f8f4ef;
  text-align: left;
  font-weight: 850;
  transition: background-color 170ms ease, color 170ms ease, transform 170ms ease, box-shadow 170ms ease;
}

.pay-option:hover {
  box-shadow: 0 8px 18px rgba(44, 38, 34, 0.1);
  transform: translateY(-1px);
}

.pay-option svg {
  width: 20px;
  height: 20px;
  color: var(--rose-deep);
  flex: 0 0 auto;
}

.pay-option span {
  display: grid;
  gap: 2px;
}

.pay-option small {
  font-size: 0.72rem;
  font-weight: 750;
  opacity: 0.82;
}

.pay-option.is-selected {
  color: #fff;
  background: var(--rose-deep);
}

.pay-option.is-selected svg {
  color: #fff;
}

.form-message {
  min-height: 20px;
  margin: 0;
  color: var(--rose-deep);
  font-size: 0.88rem;
  font-weight: 800;
}

.pix-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(43, 34, 30, 0.58);
  backdrop-filter: blur(10px);
}

.pix-modal-card {
  display: grid;
  gap: 12px;
  width: min(460px, 100%);
  color: var(--ink);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.pix-modal-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pix-modal-card small {
  color: var(--rose-deep);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pix-modal-card h2 {
  margin: 2px 0 0;
  font-size: 1.25rem;
}

.pix-amount {
  min-height: 42px;
  display: grid;
  place-items: center start;
  padding: 0 12px;
  color: #6f4f10;
  background: #fff3c4;
  border: 1px solid #ead280;
  border-radius: 6px;
  font-weight: 900;
}

#pixCodeText {
  min-height: 116px;
  font-size: 0.78rem;
  line-height: 1.35;
  resize: none;
}

#pixCopyButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#pixCopyButton svg {
  width: 17px;
  height: 17px;
}

.pix-copy-message,
.pix-instruction {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
  font-weight: 750;
}

.pix-copy-message {
  min-height: 18px;
  color: var(--rose-deep);
}

.summary-panel {
  padding: 24px 20px;
  background: #fff;
  border-left: 1px solid var(--line);
}

.summary-title {
  margin-bottom: 26px;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
}

.summary-title::before,
.summary-title::after {
  content: "::";
  margin: 0 6px;
  letter-spacing: 0;
}

dl {
  margin: 0;
}

dt {
  margin-top: 18px;
  color: #b5aaa1;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

dd {
  min-height: 32px;
  margin: 5px 0 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-weight: 850;
}

#summaryPrice {
  font-size: 1.2rem;
}

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

@media (max-width: 980px) {
  .app-shell {
    padding: 0;
  }

  .install-banner {
    top: calc(8px + env(safe-area-inset-top));
    width: min(420px, calc(100% - 18px));
  }

  .install-banner-inner {
    min-height: 54px;
    gap: 8px;
    padding: 8px;
  }

  .install-action {
    min-height: 32px;
    padding: 0 10px;
  }

  .landing-view {
    width: 100%;
    height: 100svh;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 10px;
    padding: calc(18px + env(safe-area-inset-top)) 18px calc(18px + env(safe-area-inset-bottom));
  }

  .landing-hero {
    align-content: center;
    width: min(100%, calc(100vw - 36px));
    padding: 0;
  }

  .landing-logo {
    width: 86px;
    height: 86px;
  }

  .landing-hero h1 {
    max-width: 100%;
    font-size: clamp(2.18rem, 10.5vw, 3.15rem);
    line-height: 0.98;
  }

  .landing-copy {
    width: min(34rem, 100%);
    font-size: 0.98rem;
  }

  .landing-cta {
    width: 100%;
  }

  .landing-info {
    width: min(100%, calc(100vw - 36px));
    padding-bottom: 34px;
  }

  .landing-info-item {
    min-height: 76px;
    padding: 12px;
  }

  .admin-footer-link {
    right: 14px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    min-height: 30px;
    padding: 0 9px;
    font-size: 0.68rem;
    opacity: 0.72;
  }

  .admin-view {
    padding: 0;
  }

  .admin-card {
    width: 100%;
    max-height: 100svh;
    height: 100svh;
    border-radius: 0;
  }

  .admin-header {
    padding: calc(12px + env(safe-area-inset-top)) 14px 12px;
  }

  .admin-login,
  .admin-schedule {
    padding: 14px;
  }

  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-toolbar > div {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
  }

  .admin-day {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .admin-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-service-item {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }

  .admin-service-active,
  .admin-service-name {
    grid-column: 1 / -1;
  }

  .admin-remove-service {
    justify-self: end;
  }

  .admin-periods {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .block-date-form {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .block-date-form input {
    max-width: none;
  }

  .landing-info-item strong {
    font-size: 0.92rem;
  }

  .landing-info-item em {
    font-size: 0.7rem;
  }

  .profile-photo-wrap {
    width: 42px;
    height: 42px;
  }

  .app-card {
    width: 100%;
    height: 100svh;
    grid-template-columns: 1fr;
    grid-template-rows: 88px minmax(0, 1fr) 78px;
    border-radius: 0;
  }

  .side-panel {
    position: relative;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    align-items: center;
    gap: 0;
    padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
    background: linear-gradient(180deg, #fffdf9 0%, #f7f0ea 100%);
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .step-dots {
    position: absolute;
    top: calc(18px + env(safe-area-inset-top));
    right: 16px;
    justify-content: flex-end;
    gap: 6px;
  }

  .side-center {
    width: min(100%, 320px);
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    justify-items: start;
    gap: 2px 10px;
    text-align: left;
  }

  .side-logo {
    grid-row: 1 / 3;
    width: 52px;
    height: 52px;
    margin: 0;
    box-shadow: 0 8px 20px rgba(57, 39, 33, 0.12);
  }

  .side-center h1 {
    max-width: calc(100% - 54px);
    margin: 0;
    overflow: hidden;
    font-size: 1.02rem;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .side-center p {
    max-width: 100%;
    overflow: hidden;
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .help-link {
    display: none;
  }

  .flow-panel {
    grid-template-rows: 54px minmax(0, 1fr) 64px;
  }

  .flow-header {
    gap: 8px;
    padding: 0 12px;
    background: #fffdf9;
  }

  .flow-header h2 {
    min-width: 0;
    font-size: 0.98rem;
    text-align: center;
  }

  .flow-header .icon-action {
    width: 38px;
    height: 38px;
    background: #f8f4ef;
    border: 1px solid var(--line);
    border-radius: 999px;
  }

  .flow-footer {
    align-items: center;
    padding: 7px 12px calc(9px + env(safe-area-inset-bottom));
    background: #fffdf9;
    border-top: 0;
    box-shadow: 0 -10px 24px rgba(44, 38, 34, 0.08);
  }

  .primary-action {
    width: 100%;
    min-height: 46px;
    border-radius: 8px;
  }

  .step {
    padding: 12px 16px 8px;
  }

  #stepSchedule {
    grid-template-rows: auto minmax(0, 1fr) minmax(0, auto);
    gap: 8px;
  }

  .month-bar {
    grid-template-columns: 34px 1fr 34px;
  }

  .month-bar strong {
    text-align: center;
    font-size: 1rem;
  }

  .text-action {
    width: 34px;
    min-height: 34px;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    color: transparent;
  }

  .text-action svg {
    color: var(--ink);
  }

  .calendar-grid {
    gap: 6px;
    align-content: center;
  }

  .calendar-day {
    min-height: 34px;
    font-size: 0.9rem;
  }

  .time-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    max-height: min(158px, 25svh);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }

  .time-grid::-webkit-scrollbar {
    display: none;
  }

  .time-option {
    min-height: 40px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .service-card {
    min-height: 104px;
    padding: 12px;
  }

  .service-card span {
    font-size: 0.9rem;
  }

  .service-card strong {
    margin-top: 6px;
    font-size: 1.05rem;
  }

  .service-card small {
    font-size: 0.72rem;
  }

  .details-form {
    gap: 10px;
  }

  input,
  textarea {
    min-height: 44px;
  }

  textarea {
    min-height: 62px;
  }

  .pay-choice {
    gap: 8px;
  }

  .pix-tip {
    min-height: 40px;
    padding: 9px 10px;
    font-size: 0.76rem;
  }

  .pay-option {
    min-height: 52px;
    padding: 10px;
    font-size: 0.78rem;
  }

  .summary-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 7px 12px calc(7px + env(safe-area-inset-bottom));
    background: #fffdf9;
    border-left: 0;
    border-top: 1px solid var(--line);
    box-shadow: inset 0 1px 0 var(--line);
  }

  .summary-title {
    display: none;
  }

  dl {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1.22fr) minmax(76px, .78fr);
    gap: 7px;
  }

  dt {
    display: none;
  }

  dd {
    display: grid;
    align-content: center;
    gap: 2px;
    min-height: 54px;
    margin: 0;
    padding: 7px 8px;
    overflow: hidden;
    color: var(--ink);
    background: #f8f4ef;
    border: 0;
    border-radius: 8px;
    font-size: 0.72rem;
    line-height: 1.14;
    box-shadow: inset 0 0 0 1px rgba(234, 219, 208, 0.62);
  }

  dd::before {
    color: #a89b92;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  #summaryDate::before {
    content: "Quando";
  }

  #summaryService::before {
    content: "Serviço";
  }

  #summaryPrice::before {
    content: "Total";
  }

  #summaryPayment {
    display: none;
  }

  #summaryPrice {
    color: var(--rose-deep);
    font-size: 0.86rem;
  }
}

@media (max-width: 380px), (max-height: 700px) {
  .install-banner {
    width: calc(100% - 16px);
  }

  .install-banner-inner {
    min-height: 48px;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    padding: 7px;
  }

  .install-action {
    min-height: 30px;
    padding: 0 8px;
    font-size: 0.68rem;
  }

  .install-banner small {
    font-size: 0.62rem;
  }

  body.install-banner-visible .install-banner {
    top: calc(6px + env(safe-area-inset-top));
  }

  body.install-banner-visible .install-banner-inner {
    min-height: 42px;
  }

  body.install-banner-visible .install-banner small {
    display: none;
  }

  .landing-view {
    gap: 8px;
    padding: calc(12px + env(safe-area-inset-top)) 14px calc(12px + env(safe-area-inset-bottom));
  }

  body.install-banner-visible .landing-view {
    gap: 6px;
    padding-top: calc(58px + env(safe-area-inset-top));
  }

  .landing-logo {
    width: 68px;
    height: 68px;
  }

  body.install-banner-visible .landing-logo {
    width: 52px;
    height: 52px;
  }

  .landing-kicker {
    font-size: 0.68rem;
  }

  body.install-banner-visible .landing-kicker {
    display: none;
  }

  .landing-hero {
    width: min(100%, calc(100vw - 28px));
    gap: 10px;
  }

  .landing-hero h1 {
    font-size: 2.05rem;
  }

  body.install-banner-visible .landing-hero h1 {
    font-size: 1.84rem;
    line-height: 1;
  }

  .landing-copy {
    font-size: 0.82rem;
    line-height: 1.38;
  }

  body.install-banner-visible .landing-copy {
    font-size: 0.74rem;
    line-height: 1.28;
  }

  .landing-cta,
  .landing-secondary {
    min-height: 44px;
  }

  .landing-cta span,
  .landing-secondary span {
    font-size: 0;
  }

  .landing-cta span::after,
  .landing-secondary span::after {
    content: attr(data-short);
    font-size: 0.86rem;
  }

  .landing-info {
    width: min(100%, calc(100vw - 28px));
    gap: 8px;
    padding-bottom: 30px;
  }

  body.install-banner-visible .landing-info {
    padding-bottom: 20px;
  }

  .landing-info-item {
    min-height: 66px;
    gap: 10px;
    padding: 10px;
  }

  body.install-banner-visible .landing-info-item {
    min-height: 58px;
  }

  .landing-info-item small,
  .landing-info-item em {
    font-size: 0.64rem;
  }

  .landing-info-item strong {
    font-size: 0.82rem;
  }

  .profile-photo-wrap {
    width: 36px;
    height: 36px;
  }

  .profile-badge {
    width: 17px;
    height: 17px;
  }

  .admin-footer-link {
    width: 32px;
    min-height: 32px;
    padding: 0;
    font-size: 0;
    gap: 0;
  }

  .admin-footer-link svg {
    width: 13px;
    height: 13px;
  }

  .app-card {
    grid-template-rows: 70px minmax(0, 1fr) 64px;
  }

  .side-panel {
    gap: 8px;
    padding: calc(8px + env(safe-area-inset-top)) 10px 8px;
  }

  .side-logo {
    width: 44px;
    height: 44px;
  }

  .side-center h1 {
    font-size: 0.92rem;
    max-width: calc(100% - 42px);
  }

  .step-dots {
    gap: 5px;
    top: calc(16px + env(safe-area-inset-top));
    right: 12px;
  }

  .side-center p {
    display: none;
  }

  .flow-panel {
    grid-template-rows: 42px minmax(0, 1fr) 54px;
  }

  .flow-header {
    padding: 0 8px;
  }

  .flow-header h2 {
    font-size: 0.92rem;
  }

  .flow-header .icon-action {
    width: 36px;
    height: 36px;
  }

  .flow-footer {
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  }

  .step {
    padding: 8px 10px 6px;
  }

  .calendar-grid {
    gap: 3px;
  }

  .calendar-day {
    width: 86%;
    min-height: 24px;
    font-size: 0.78rem;
  }

  .calendar-day::after {
    right: 6px;
    bottom: 3px;
    left: 6px;
    height: 2px;
  }

  .weekday {
    font-size: 0.62rem;
  }

  .time-block {
    gap: 5px;
  }

  .time-block p {
    font-size: 0.68rem;
    line-height: 1.1;
  }

  .time-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
    max-height: 70px;
  }

  .time-option {
    min-height: 30px;
    font-size: 0.66rem;
  }

  .primary-action {
    min-height: 40px;
  }

  .service-card {
    min-height: 94px;
  }

  input,
  textarea {
    min-height: 40px;
    padding: 8px 10px;
  }

  textarea {
    height: 46px;
    min-height: 46px;
  }

  #stepDetails {
    align-content: stretch;
  }

  .details-form {
    gap: 6px;
    max-height: 100%;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }

  .details-form::-webkit-scrollbar {
    display: none;
  }

  label {
    gap: 4px;
    font-size: 0.74rem;
  }

  .pix-tip {
    min-height: 34px;
    padding: 6px 8px;
    font-size: 0.68rem;
    line-height: 1.15;
  }

  .pix-tip svg {
    width: 14px;
    height: 14px;
  }

  .pay-choice {
    gap: 6px;
  }

  .pay-option {
    min-height: 40px;
    gap: 7px;
    padding: 6px 7px;
    font-size: 0.68rem;
    line-height: 1.12;
  }

  .pay-option svg {
    width: 16px;
    height: 16px;
  }

  .pay-option small {
    font-size: 0.6rem;
  }

  .pix-modal {
    padding: 10px;
  }

  .pix-modal-card {
    gap: 8px;
    padding: 12px;
  }

  .pix-modal-card h2 {
    font-size: 1rem;
  }

  .pix-amount {
    min-height: 34px;
    font-size: 0.8rem;
  }

  #pixCodeText {
    min-height: 92px;
    font-size: 0.66rem;
  }

  .pix-copy-message,
  .pix-instruction {
    font-size: 0.7rem;
  }

  .form-message {
    min-height: 14px;
    font-size: 0.72rem;
  }

  .summary-panel {
    gap: 4px;
    padding: 5px 8px;
  }

  dl {
    gap: 5px;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.08fr) minmax(68px, .78fr);
  }

  dd {
    min-height: 48px;
    padding: 4px 6px;
    font-size: 0.61rem;
    line-height: 1.1;
    white-space: normal;
    text-overflow: clip;
  }

  dd::before {
    font-size: 0.5rem;
  }

  #summaryPrice {
    font-size: 0.76rem;
  }
}
