:root {
  --bg: #f5f1ea;
  --surface: rgba(255, 252, 247, 0.84);
  --surface-solid: #fffaf4;
  --surface-alt: #efe8dc;
  --text: #1e2c2f;
  --muted: #66757a;
  --line: rgba(30, 44, 47, 0.1);
  --brand: #0f7e7a;
  --brand-deep: #0b5755;
  --brand-soft: rgba(15, 126, 122, 0.12);
  --accent: #d57a40;
  --accent-soft: rgba(213, 122, 64, 0.12);
  --danger: #b83b5e;
  --danger-soft: rgba(184, 59, 94, 0.12);
  --shadow: 0 20px 60px rgba(29, 28, 25, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text);
  background: #f7f2ea;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

a[x-apple-data-detectors] {
  color: inherit !important;
  text-decoration: none !important;
  font: inherit !important;
}

.container-shell {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-main {
  flex: 1;
  padding: 7rem 0 3rem;
}

.app-footer {
  padding: 1.25rem 0 2rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-brand {
  font-weight: 700;
  color: var(--text);
}

.footer-copy {
  color: var(--muted);
}

.glass-panel {
  background: rgba(255, 250, 244, 0.96);
  border: 1px solid rgba(30, 44, 47, 0.08);
  box-shadow: 0 10px 28px rgba(29, 28, 25, 0.08);
  border-radius: var(--radius-xl);
}

.section-header {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.section-header h1,
.section-header h2,
.hero-copy h1,
.business-panel h2,
.modal-card h2 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.section-header h1,
.hero-copy h1 {
  font-size: clamp(3rem, 6vw, 5.8rem);
}

.section-header h2,
.business-panel h2,
.modal-card h2 {
  font-size: clamp(2.1rem, 4vw, 4rem);
}

.section-header p,
.hero-copy p,
.business-panel p {
  margin: 0;
  color: var(--muted);
  max-width: 52rem;
  line-height: 1.72;
}

.section-kicker,
.hero-badge,
.brand-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--brand);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Page hero title */
.page-title-section {
  padding-top: 2.5rem;
  padding-bottom: 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-title-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: min(1000px, 100vw);
  aspect-ratio: 1160 / 600;
  background: url("/static/images/mandala.64e7f6c15c96.png") no-repeat center bottom;
  background-size: contain;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 600px) {
  .page-title-section::after {
    bottom: auto;
    top: 10%;
    width: 100vw;
  }
}

.page-title-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.page-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 16vw, 9.5rem);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
  word-break: break-word;
  overflow-wrap: break-word;
  padding: 0 0.25rem;
}

.page-hero-sub {
  color: var(--text);
  font-weight: 600;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  max-width: 34rem;
  width: 100%;
  line-height: 1.7;
  margin: 0 auto;
  padding: 0 0.5rem;
  word-break: normal;
  overflow-wrap: break-word;
}

.hero-actions-centered {
  justify-content: center;
  margin-top: 0.5rem;
  flex-wrap: wrap;
  width: 100%;
}

/* Voucher promo banner */
.promo-bar {
  padding-top: 0.5rem;
  padding-bottom: 0;
}

.promo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(15, 126, 122, 0.18);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.03em;
}

@media (max-width: 560px) {
  .promo-banner {
    flex-direction: column;
    text-align: center;
    border-radius: 1.5rem;
  }
}

.hero-surface {
  padding-top: 1rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 1.5rem;
  align-items: end;
}

.hero-copy,
.hero-panel {
  padding: 2rem;
}

.hero-copy {
  min-height: 35rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: clamp(2rem, 4vw, 3rem);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.78), rgba(255, 249, 242, 0.6)),
    url("/static/images/cennik.147edc1dd79c.jpeg") center/cover no-repeat;
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(246, 236, 223, 0.12), rgba(248, 246, 242, 0.88));
}

.hero-copy > * {
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  max-width: 12ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.hero-panel {
  display: grid;
  gap: 1rem;
  min-height: 18rem;
}

.hero-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.hero-panel strong {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.45rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: none;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-primary-strong {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: white;
  box-shadow: none;
}

.btn-secondary-soft {
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  border: 1px solid rgba(30, 44, 47, 0.08);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(30, 44, 47, 0.08);
}

.btn-danger-soft {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid rgba(184, 59, 94, 0.16);
}

.wide-button {
  width: 100%;
}

.page-home,
.page-section {
  gap: 2rem;
}

.page-section {
  padding-top: 0.5rem;
}

.section-block {
  padding: 1rem 0;
}

.alt-surface {
  padding: 4rem 0;
  background: rgba(255, 255, 255, 0.46);
  border-top: 1px solid rgba(30, 44, 47, 0.05);
  border-bottom: 1px solid rgba(30, 44, 47, 0.05);
}

.therapist-grid,
.voucher-grid,
.contact-grid,
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.therapist-card-modern {
  overflow: hidden;
  padding: 1rem;
}

.therapist-visual {
  position: relative;
  min-height: 24rem;
  border-radius: calc(var(--radius-xl) - 8px);
  overflow: hidden;
  margin-bottom: 1rem;
  background: var(--surface-alt);
}

.therapist-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

.therapist-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
  color: white;
}

.therapist-overlay h3 {
  margin: 0;
  font-size: 1.7rem;
}

.tech-chip-list,
.working-day-row,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.tech-chip,
.day-toggle {
  border: 1px solid rgba(30, 44, 47, 0.08);
  background: white;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.tech-chip:hover,
.day-toggle:hover {
  border-color: rgba(15, 126, 122, 0.25);
  background: rgba(255, 255, 255, 0.96);
}

.techniques-grid,
.media-grid,
.review-grid,
.service-grid,
.worker-grid,
.slot-grid,
.step-grid,
.stack-grid,
.reservation-meta-grid,
.settings-hours-grid,
.admin-filter-grid {
  display: grid;
  gap: 1rem;
}

.techniques-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.technique-card-modern {
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.76);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  text-align: left;
  display: grid;
  gap: 0.75rem;
  box-shadow: 0 14px 34px rgba(29, 28, 25, 0.08);
}

.technique-card-modern i,
.contact-card i {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1.2rem;
}

.technique-card-modern strong {
  font-size: 1.1rem;
}

.technique-card-modern span {
  color: var(--muted);
}

.media-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.media-card,
.voucher-image-button {
  border: 0;
  background: transparent;
  padding: 0;
}

.media-card img,
.voucher-image-button img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 20px rgba(29, 28, 25, 0.08);
}

.voucher-card-modern {
  padding: 1rem;
  display: grid;
  gap: 1rem;
}

.voucher-image-button img {
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.72);
}

.review-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.review-card-modern {
  overflow: hidden;
  min-width: 0;
}

.review-card-modern,
.business-panel,
.contact-card,
.reservation-stage,
.reservation-sidebar,
.settings-card,
.calendar-shell {
  padding: 1.4rem;
}

.review-topline,
.reservation-card-actions,
.settings-card-head,
.filter-toolbar,
.pagination-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.review-topline h3,
.contact-card h3,
.settings-card h2,
.reservation-stage h2,
.reservation-sidebar h2 {
  margin: 0;
}

.review-topline p,
.review-text,
.contact-card p,
.centered-copy,
.form-helper {
  margin: 0;
  color: var(--muted);
}

.review-worker {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  text-transform: capitalize;
  font-weight: 700;
}

.review-stars {
  color: #e0a43a;
  display: flex;
  gap: 0.2rem;
}

.review-text {
  line-height: 1.7;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
}

.review-delete-button {
  border: 0;
  background: var(--danger-soft);
  color: var(--danger);
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.business-panel {
  display: grid;
  gap: 1rem;
  background:
    linear-gradient(135deg, rgba(15, 126, 122, 0.14), rgba(255, 255, 255, 0.82)),
    var(--surface);
}

/* Contact block */
.contact-block {
  max-width: 26rem;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.contact-title {
  margin: 0;
}

.contact-rows {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  width: 100%;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
  transition: background 0.15s;
  width: fit-content;
  min-width: 16rem;
}

.contact-row:hover {
  background: rgba(15, 126, 122, 0.07);
  color: var(--brand);
}

.contact-row-icon {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.85rem;
}

/* Social pills in navbar */
.social-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.social-pill:hover {
  color: var(--brand);
  background: var(--brand-soft);
}

.contact-card {
  display: grid;
  gap: 0.85rem;
}

.contact-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.15s;
}

.contact-link:hover {
  color: var(--brand);
}

.app-nav-wrap {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 1rem 0;
  background: transparent;
}

.app-nav {
  position: relative;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.98);
  border: 1px solid rgba(30, 44, 47, 0.08);
  box-shadow: 0 8px 22px rgba(29, 28, 25, 0.08);
}

.brand-button {
  cursor: pointer;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  padding: 0;
  transition: opacity 0.2s ease;
}

.brand-button:hover {
  opacity: 0.8;
}

.brand-logo {
  width: auto;
  height: 3.5rem;
  max-width: 4.5rem;
  border-radius: 0;
  object-fit: contain;
  mix-blend-mode: multiply;
  box-shadow: none;
}

.brand-copy {
  display: grid;
  min-width: 0;
  gap: 0.1rem;
}

.brand-kicker {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand);
}

.brand-copy strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.nav-panel,
.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-quick-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-panel {
  flex: 1;
  justify-content: space-between;
}

.nav-link-button,
.lang-pill {
  cursor: pointer;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.15s ease;
}

.nav-link-button:hover {
  background: rgba(15, 126, 122, 0.08);
  color: var(--brand);
}

.lang-pill {
  border: 1px solid rgba(30, 44, 47, 0.1);
  background: rgba(255, 255, 255, 0.6);
}

.lang-pill:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(30, 44, 47, 0.15);
  color: var(--text);
}

.lang-pill img {
  width: 1.3rem;
  height: 1rem;
  object-fit: cover;
  border-radius: 4px;
}

.menu-button {
  display: none;
  border: 0;
  background: rgba(255, 255, 255, 0.82);
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  color: var(--text);
}

.user-menu-wrapper {
  position: relative;
}

.user-menu-trigger {
  cursor: pointer;
  border: 0;
  background: rgba(255, 255, 255, 0.75);
  color: var(--text);
  font-weight: 600;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid rgba(30, 44, 47, 0.08);
  transition: all 0.2s ease;
}

.user-menu-trigger:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(30, 44, 47, 0.12);
}

.user-menu-trigger i.fa-chevron-down {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.user-menu-trigger i.fa-chevron-down.rotated {
  transform: rotate(180deg);
}

.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 15rem;
  background: var(--surface-solid);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(29, 28, 25, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.65);
  padding: 0.5rem;
  z-index: 60;
}

.user-menu-header {
  padding: 0.8rem 1rem;
  display: grid;
  gap: 0.2rem;
}

.user-menu-header strong {
  font-size: 0.95rem;
  color: var(--text);
}

.user-menu-header span {
  font-size: 0.85rem;
  color: var(--muted);
}

.user-menu-divider {
  height: 1px;
  background: var(--line);
  margin: 0.3rem 0;
}

.user-menu-item {
  cursor: pointer;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  transition: background 0.15s ease;
}

.user-menu-item:hover {
  background: rgba(15, 126, 122, 0.08);
}

.user-menu-item.danger {
  color: var(--danger);
}

.user-menu-item.danger:hover {
  background: var(--danger-soft);
}

.user-menu-item i {
  width: 1.2rem;
  text-align: center;
  font-size: 1rem;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 40;
}

.modal-shell {
  position: fixed;
  inset: 0;
  background: rgba(20, 28, 31, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 100;
}

.modal-card {
  width: min(100%, 42rem);
  max-height: min(92vh, 52rem);
  overflow-y: auto;
  padding: 1.5rem;
  position: relative;
  border-radius: var(--radius-xl);
  background: var(--surface-solid);
  box-shadow: 0 28px 60px rgba(29, 28, 25, 0.22);
}

.media-modal-card {
  width: min(100%, 68rem);
  padding: 1rem;
}

.media-modal-image {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: calc(var(--radius-xl) - 6px);
}

.technique-modal-card,
.review-modal-card,
.sm-info-card {
  display: grid;
  gap: 1rem;
}

/* SM system info modal */
.sm-info-card {
  width: min(100%, 32rem);
  text-align: center;
}

.sm-info-icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto;
}

.sm-info-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.sm-info-sub {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

.sm-info-badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.sm-price-table {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: left;
}

.sm-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.sm-price-row:last-child {
  border-bottom: none;
}

.sm-price-tag {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

.sm-info-notes {
  display: grid;
  gap: 0.6rem;
  background: rgba(15, 126, 122, 0.05);
  border: 1px solid rgba(15, 126, 122, 0.12);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  text-align: left;
}

.sm-info-notes p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text);
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  line-height: 1.5;
}

.sm-info-notes i {
  color: var(--brand);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.technique-modal-inner {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.technique-modal-text {
  flex: 1;
  display: grid;
  gap: 0.75rem;
}

.technique-modal-text h2 {
  margin: 0;
}

.technique-modal-text p {
  margin: 0;
  color: var(--text);
}

.technique-modal-image {
  width: 140px;
  height: 140px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: rgba(30, 44, 47, 0.04);
}

.auth-card {
  display: grid;
  gap: 1rem;
}

.auth-head {
  display: grid;
  gap: 0.6rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 0;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 999px;
  background: rgba(30, 44, 47, 0.08);
  color: var(--text);
}

.field {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.field span {
  font-weight: 700;
}

.field input,
.field textarea,
.field select,
.select-inline,
.admin-filter-grid input {
  width: 100%;
  border: 1px solid rgba(30, 44, 47, 0.12);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.92rem 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.select-inline:focus,
.admin-filter-grid input:focus {
  border-color: rgba(15, 126, 122, 0.35);
  box-shadow: 0 0 0 4px rgba(15, 126, 122, 0.12);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
}

.auth-switch {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.25rem 0 0;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--brand);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font-size: inherit;
}

.form-error {
  color: var(--danger);
  font-weight: 700;
}

.centered-copy {
  text-align: center;
  padding: 2rem;
}

.reservation-shell {
  max-width: 52rem;
  margin-inline: auto;
}

.reservation-header {
  padding: 0.5rem 0 1rem;
}

.reservation-header h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin: 0 0 0.35rem;
}

.reservation-header p {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

/* Step progress strip */
.step-progress {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 1.5rem;
  position: relative;
}

.step-progress::before {
  content: '';
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  right: 0.45rem;
  height: 2px;
  background: var(--line);
  z-index: 0;
}

.step-pip {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  z-index: 1;
  opacity: 0.4;
  transition: opacity 0.2s;
}

.step-pip.active {
  opacity: 1;
}

.step-pip-dot {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  border: 2px solid var(--brand);
  background: var(--bg);
  display: block;
  transition: background 0.2s;
}

.step-pip.active .step-pip-dot {
  background: var(--brand);
}

.step-pip.done .step-pip-dot {
  background: var(--brand);
}

.step-pip-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--brand);
  text-align: center;
  line-height: 1.2;
  max-width: 5.5rem;
}

/* Single-column reservation flow */
.reservation-column {
  display: grid;
  gap: 1rem;
}

.reservation-stage h2,
.reservation-sidebar h2,
.settings-card h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

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

.worker-card {
  border: 2px solid transparent;
  background: transparent;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  transition: background 0.15s, border-color 0.15s;
}

.worker-card img {
  width: 8rem;
  height: 8rem;
  object-fit: cover;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(29, 28, 25, 0.14);
}

.worker-card strong {
  font-size: 1.05rem;
}

.worker-card.active {
  border-color: rgba(15, 126, 122, 0.45);
  background: rgba(15, 126, 122, 0.08);
  border-radius: var(--radius-lg);
}

.service-card,
.slot-button {
  border: 1px solid rgba(30, 44, 47, 0.1);
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  text-align: left;
  width: 100%;
}

.service-card strong {
  font-weight: 700;
}

.service-card span {
  color: var(--brand);
  font-weight: 600;
  white-space: nowrap;
}

.slot-button {
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
}

.service-card.active,
.slot-button.active,
.day-toggle.active {
  border-color: rgba(15, 126, 122, 0.45);
  background: rgba(15, 126, 122, 0.12);
}

.slot-grid {
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
}

.selection-pill {
  display: inline-flex;
  width: fit-content;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
  margin-top: 1rem;
}

.calendar-shell .fc {
  --fc-border-color: transparent;
  --fc-button-bg-color: var(--brand);
  --fc-button-border-color: var(--brand);
  --fc-button-hover-bg-color: var(--brand-deep);
  --fc-button-hover-border-color: var(--brand-deep);
  --fc-button-active-bg-color: var(--brand-deep);
  --fc-button-active-border-color: var(--brand-deep);
}

.calendar-shell .fc .fc-toolbar-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
}

.calendar-shell .fc-button {
  border-radius: 999px !important;
  padding: 0.6rem 1rem !important;
  font-weight: 700 !important;
}

.calendar-shell .fc-button-primary {
  background-color: var(--brand) !important;
  border-color: var(--brand) !important;
  color: white !important;
}

.calendar-shell .fc-button-primary:hover {
  background-color: var(--brand-deep) !important;
  border-color: var(--brand-deep) !important;
}

.calendar-shell .fc-button-primary:focus,
.calendar-shell .fc-button-primary:active,
.calendar-shell .fc-button-primary:not(:disabled):active {
  background-color: var(--brand-deep) !important;
  border-color: var(--brand-deep) !important;
  box-shadow: 0 0 0 3px rgba(15, 126, 122, 0.25) !important;
}

.calendar-shell .fc-button-primary.fc-button-active {
  background-color: var(--brand-deep) !important;
  border-color: var(--brand-deep) !important;
}

.calendar-shell .fc-button-primary:disabled {
  background-color: var(--brand) !important;
  border-color: var(--brand) !important;
  opacity: 0.5 !important;
}

/* Column headers (Mon, Tue…) */
.calendar-shell .fc-col-header-cell {
  background: transparent;
  border-bottom: 2px solid rgba(30, 44, 47, 0.07) !important;
  padding: 0.7rem 0 !important;
}

.calendar-shell .fc-col-header-cell-cushion {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  text-decoration: none;
}

.calendar-shell .fc-day-today .fc-col-header-cell-cushion {
  color: var(--brand);
}

/* Today column background */
.calendar-shell .fc-day-today {
  background: rgba(15, 126, 122, 0.04) !important;
}

/* Time label column */
.calendar-shell .fc-timegrid-slot-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
  vertical-align: top;
  padding-top: 0.3rem !important;
  border-right: 1px solid rgba(30, 44, 47, 0.07) !important;
}

/* Slot row lines */
.calendar-shell .fc-timegrid-slot {
  border-bottom: 1px solid rgba(30, 44, 47, 0.05) !important;
}

.calendar-shell .fc-timegrid-slot-minor {
  border-bottom-style: dotted !important;
  border-bottom-color: rgba(30, 44, 47, 0.03) !important;
}

/* Column dividers */
.calendar-shell .fc-timegrid-col {
  border-right: 1px solid rgba(30, 44, 47, 0.05) !important;
}

/* Now indicator */
.calendar-shell .fc-timegrid-now-indicator-line {
  border-color: var(--brand) !important;
  border-width: 2px !important;
}

.calendar-shell .fc-timegrid-now-indicator-arrow {
  border-top-color: var(--brand) !important;
  border-bottom-color: var(--brand) !important;
}

/* Events */
.calendar-shell .fc-timegrid-event {
  border-radius: var(--radius-sm) !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(29, 28, 25, 0.18) !important;
  padding: 0.2rem 0.45rem !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  cursor: pointer;
}

.calendar-shell .fc-timegrid-event:hover {
  filter: brightness(1.1);
}

.calendar-shell .fc-timegrid-event .fc-event-title {
  white-space: normal;
  overflow: hidden;
}

/* Scrollbar inside timegrid */
.calendar-shell .fc-scroller {
  scrollbar-width: thin;
  scrollbar-color: rgba(30, 44, 47, 0.12) transparent;
}

.calendar-shell .fc-daygrid-day-frame {
  min-height: 5rem;
}

.calendar-shell .fc-daygrid-day-number {
  font-weight: 700;
}

.calendar-shell .fc-daygrid-day:hover {
  background: rgba(15, 126, 122, 0.08);
}

.calendar-disabled-day {
  opacity: 0.35;
  cursor: not-allowed;
}

.calendar-disabled-day * {
  pointer-events: none;
}

.booking-calendar .fc-daygrid-day:not(.calendar-disabled-day) {
  cursor: pointer;
}

.calendar-selected-day {
  background: rgba(15, 126, 122, 0.15) !important;
}

.calendar-selected-day .fc-daygrid-day-number {
  color: var(--brand);
  font-weight: 700;
}

/* Available-day event pills — brand green instead of FC default blue */
.booking-calendar .allowed-events-day,
.booking-calendar .fc-event.allowed-events-day {
  background-color: var(--brand) !important;
  border-color: var(--brand) !important;
  color: white !important;
}

.admin-customer-picker {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.field-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

/* Dropdown search */
.user-search-wrap {
  position: relative;
}

.user-search-wrap input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid rgba(30, 44, 47, 0.12);
  border-radius: 0.75rem;
  background: white;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.user-search-wrap input:focus {
  border-color: var(--brand);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: white;
  border: 1.5px solid rgba(30, 44, 47, 0.1);
  border-radius: 0.75rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 50;
  max-height: 13rem;
  overflow-y: auto;
}

.user-dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  border-bottom: 1px solid rgba(30, 44, 47, 0.06);
  transition: background 0.15s;
}

.user-dropdown-item:last-child {
  border-bottom: none;
}

.user-dropdown-item:hover {
  background: rgba(15, 126, 122, 0.07);
  color: var(--brand);
}

.user-dropdown-empty {
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  color: #888;
  text-align: center;
}

/* Selected chip */
.user-selected-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  background: rgba(15, 126, 122, 0.1);
  border: 1.5px solid rgba(15, 126, 122, 0.25);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--brand);
  width: fit-content;
}

.user-chip-clear {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--brand);
  opacity: 0.65;
  padding: 0;
  line-height: 1;
  transition: opacity 0.15s;
}

.user-chip-clear:hover {
  opacity: 1;
}

.summary-list {
  display: grid;
  gap: 0.6rem;
  text-align: left;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(30, 44, 47, 0.08);
}

.reservation-card {
  display: grid;
  gap: 1rem;
}

.reservation-meta-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Profile — reservation history cards */
.res-history-list {
  display: grid;
  gap: 1rem;
}

.res-history-card {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
}

.res-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.res-history-when {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.res-history-date-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.res-history-time-val {
  color: var(--muted);
  font-size: 0.95rem;
}

.res-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.res-status-badge.status-ok {
  background: rgba(15, 126, 122, 0.1);
  color: var(--brand);
}

.res-status-badge.status-pending {
  background: rgba(184, 130, 59, 0.1);
  color: #b8823b;
}

.res-status-badge.status-cancelled {
  background: rgba(30, 44, 47, 0.06);
  color: var(--muted);
}

.res-history-body {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
}

.res-history-field {
  display: grid;
  gap: 0.2rem;
}

.res-history-field--full {
  flex: 1 1 100%;
}

.res-history-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(30, 44, 47, 0.07);
}

.res-created-label {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ───── Admin reservation table ───── */
.res-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.res-toolbar-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.res-toolbar-right {
  margin-left: auto;
}

.btn.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.res-table-wrap {
  overflow-x: auto;
  padding: 0;
}

.res-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.res-table thead th {
  padding: 0.7rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-bottom: 2px solid rgba(30, 44, 47, 0.1);
  white-space: nowrap;
  vertical-align: top;
}

.th-filter {
  margin-top: 0.4rem;
  display: block;
  width: 100%;
  padding: 0.3rem 0.5rem;
  border: 1px solid rgba(30, 44, 47, 0.12);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
  background: rgba(255, 255, 255, 0.7);
  min-width: 5rem;
}

.th-filter:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
}

.res-table tbody tr {
  border-bottom: 1px solid rgba(30, 44, 47, 0.06);
  transition: background 0.12s;
}

.res-table tbody tr:hover {
  background: rgba(15, 126, 122, 0.04);
}

.res-table tbody tr.row-inactive {
  opacity: 0.6;
}

.res-table td {
  padding: 0.8rem 1rem;
  vertical-align: middle;
  color: var(--text);
}

.td-date {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.td-time {
  white-space: nowrap;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.td-sub {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.td-icon {
  margin-right: 0.35rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.td-notes {
  max-width: 16rem;
  font-size: 0.85rem;
}

.td-note {
  padding: 0.2rem 0;
  line-height: 1.4;
}

.td-note--admin { color: var(--brand); }
.td-note--cancel { color: var(--danger); }

.td-muted {
  color: var(--muted);
}

.td-actions {
  white-space: nowrap;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-size: 0.85rem;
  transition: opacity 0.15s, transform 0.15s;
  margin-right: 0.25rem;
}

.btn-icon:hover { opacity: 0.8; transform: scale(1.08); }

.btn-icon--ok   { background: rgba(15, 126, 122, 0.12); color: var(--brand); }
.btn-icon--warn { background: rgba(217, 119,  6, 0.12); color: #d97706; }
.btn-icon--note { background: rgba(30,  44,  47, 0.08); color: var(--muted); }
.btn-icon--del  { background: rgba(184, 59,  94, 0.1);  color: var(--danger); }

.worker-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  margin-right: 0.4rem;
  vertical-align: middle;
}

.res-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1.25rem;
}

.res-page-info {
  font-size: 0.9rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.res-table-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
}

/* ───── Calendar legend ───── */
.cal-legend {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.cal-dot {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.meta-label {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.admin-actions {
  flex-wrap: wrap;
}

.filter-toolbar {
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

/* Override full-width rule for select inside flex toolbar */
.filter-toolbar .select-inline {
  width: auto;
  min-width: 6rem;
}

.admin-filter-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.pagination-row {
  justify-content: center;
  margin-top: 1rem;
}

.settings-card {
  display: grid;
  gap: 1rem;
}

.settings-hours-grid {
  grid-template-columns: 1fr;
}

.hours-row,
.restriction-row,
.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.hours-row {
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(30, 44, 47, 0.08);
}

.hours-row strong {
  min-width: 7rem;
}

.hours-row input {
  width: 100%;
  max-width: 10rem;
}

.restriction-form {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 1rem 0;
}

.restriction-row {
  justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(30, 44, 47, 0.08);
  flex-wrap: wrap;
}

.restriction-head-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.restriction-select-all {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.restriction-select-all input[type="checkbox"] {
  width: 1.2rem;
  height: 1.2rem;
  accent-color: var(--brand);
  cursor: pointer;
  flex-shrink: 0;
}

.del-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0 0.3rem;
  margin-left: 0.1rem;
}

.reveal-block {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.reveal-visible {
  opacity: 1;
}

@media (max-width: 1100px) {
  .nav-link-button {
    display: none;
  }

  .hero-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

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

  .media-grid,
  .contact-grid,
  .voucher-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 820px) {
  .app-main {
    padding-top: 6rem;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-panel {
    position: absolute;
    top: calc(100% + 0.8rem);
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-radius: var(--radius-xl);
    background: rgba(255, 252, 247, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow);
  }

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

  .nav-links,
  .nav-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-actions {
    gap: 0.9rem;
  }

  .nav-quick-row {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
  }

  .nav-quick-row .social-pill {
    flex: 0 0 auto;
  }

  .nav-quick-row .lang-pill {
    flex: 0 0 auto;
  }

  .nav-link-button {
    display: inline-flex;
    justify-content: flex-start;
  }

  .user-menu-wrapper {
    width: 100%;
  }

  .user-menu-trigger {
    width: 100%;
    justify-content: space-between;
  }

  .user-menu-dropdown {
    position: static;
    margin-top: 0.5rem;
    box-shadow: none;
    border: 1px solid var(--line);
  }

  .hero-copy,
  .hero-panel,
  .review-card-modern,
  .business-panel,
  .reservation-stage,
  .reservation-sidebar,
  .settings-card {
    padding: 1.2rem;
  }

  .worker-grid,
  .step-grid,
  .techniques-grid,
  .review-grid,
  .therapist-grid,
  .media-grid,
  .voucher-grid,
  .contact-grid,
  .admin-filter-grid {
    grid-template-columns: 1fr;
  }

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

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

  .footer-inner,
  .review-topline,
  .settings-card-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .container-shell {
    width: calc(100% - 3rem);
    margin-inline: auto;
    padding-inline: 0;
  }

  .app-main {
    padding-top: 6rem;
  }

  .app-nav {
    padding: 0.6rem 1rem;
  }

  .brand-logo {
    height: 2.4rem;
    max-width: 3.2rem;
  }

  .hero-copy {
    min-height: 27rem;
  }

  .hero-copy h1,
  .section-header h1 {
    font-size: 3.2rem;
  }

  .section-header h2,
  .modal-card h2,
  .business-panel h2 {
    font-size: 2.4rem;
  }

  .hero-actions,
  .modal-actions,
  .reservation-card-actions,
  .pagination-row {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions-centered {
    align-items: center;
  }

  .hero-actions-centered .btn {
    width: min(280px, 100%);
  }

  .reservation-meta-grid {
    grid-template-columns: 1fr;
  }

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

  /* Calendar stage: no padding so calendar fills full card width */
  #res-step-date.reservation-stage {
    padding: 0.9rem 0 0;
    overflow: hidden;
  }

  #res-step-date.reservation-stage h2 {
    padding: 0 1rem;
  }

  #res-step-date .booking-calendar {
    width: 100%;
  }

  #res-step-date .selection-pill {
    margin: 0.75rem 1rem;
  }

  /* Step progress labels hidden on very small screens */
  .step-pip-label {
    display: none;
  }

  .technique-modal-inner {
    flex-direction: column;
  }

  .technique-modal-image {
    width: 100%;
    height: 120px;
    object-fit: contain;
    background: rgba(30, 44, 47, 0.04);
    border-radius: var(--radius-md);
  }

  .page-hero-title {
    font-size: clamp(3rem, 18vw, 5rem);
  }
}

/* ───── Mobile: tablet/large phone (≤820px) additions ───── */
@media (max-width: 820px) {

  /* Admin toolbar wraps */
  .res-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .res-toolbar-group {
    flex-wrap: wrap;
  }

  .res-toolbar-right {
    margin-left: 0;
    flex-direction: row;
    align-items: center;
  }

  /* Admin table — reduce density */
  .res-table thead th,
  .res-table td {
    padding: 0.55rem 0.65rem;
    font-size: 0.82rem;
  }

  /* Hide lower-priority columns on tablet */
  .res-table .hide-tablet {
    display: none;
  }

  /* Profile reservation head: allow wrap */
  .res-history-head {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  /* Calendar toolbar wraps naturally */
  .calendar-shell .fc-toolbar {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .calendar-shell .fc .fc-toolbar-title {
    font-size: 1.4rem;
  }
}

/* ───── Mobile: phone (≤560px) additions ───── */
@media (max-width: 560px) {

  /* Profile cards */
  .res-history-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .res-history-body {
    gap: 0.9rem 1.5rem;
  }

  .res-history-card {
    padding: 1rem;
  }

  .res-created-label {
    font-size: 0.75rem;
  }

  /* Admin table — compact on phone, rely on horizontal scroll */
  .res-table thead th,
  .res-table td {
    padding: 0.45rem 0.5rem;
    font-size: 0.78rem;
  }

  .th-filter {
    font-size: 0.72rem;
    padding: 0.25rem 0.4rem;
    min-width: 3.5rem;
  }

  .res-table .td-notes {
    max-width: 8rem;
  }

  .btn-icon {
    width: 1.8rem;
    height: 1.8rem;
    font-size: 0.75rem;
    margin-right: 0.15rem;
  }

  .res-pagination {
    gap: 0.75rem;
  }

  .res-page-info {
    font-size: 0.8rem;
  }

  /* Admin toolbar */
  .res-toolbar-group .btn {
    font-size: 0.82rem;
    padding: 0.75rem 1rem;
  }

  /* Calendar */
  .calendar-shell .fc .fc-toolbar-title {
    font-size: 1.1rem;
  }

  .calendar-shell .fc-button {
    padding: 0.45rem 0.7rem !important;
    font-size: 0.8rem !important;
  }

  .cal-legend {
    font-size: 0.78rem;
    gap: 0.75rem;
  }

  /* Section headers on mobile */
  .section-header h1 {
    font-size: clamp(2.4rem, 12vw, 3.5rem);
  }

  /* Summary list in reservation */
  .summary-row {
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.5rem 0;
  }

  /* Res status badge */
  .res-status-badge {
    font-size: 0.72rem;
    padding: 0.28rem 0.65rem;
  }
}
