:root {
  --bg: #f4f1ec;
  --bg-soft: #fbfaf7;
  --surface: #ffffff;
  --surface-strong: #fffdf9;
  --ink: #17211f;
  --muted: #68736e;
  --subtle: #8b948f;
  --line: #e3ded6;
  --line-strong: #d5cec4;
  --primary: #0f6b5d;
  --primary-dark: #094a40;
  --primary-soft: #e8f5f1;
  --accent: #c46f42;
  --accent-soft: #fff0e7;
  --blue: #355f8f;
  --blue-soft: #eef5fb;
  --charcoal: #202a28;
  --danger: #b43d3d;
  --danger-soft: #fff0ec;
  --warning: #996100;
  --warning-soft: #fff4dc;
  --shadow-soft: 0 18px 45px rgba(39, 45, 42, 0.08);
  --shadow-card: 0 1px 0 rgba(23, 33, 31, 0.04), 0 18px 42px rgba(23, 33, 31, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 22% 0%, rgba(15, 107, 93, 0.11), transparent 32%),
    linear-gradient(135deg, #f7f4ee 0%, #ede8df 100%);
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr);
}

body.client-mode {
  display: block;
  background: #fff;
}

body.client-mode .sidebar,
body.client-mode .app-shell,
body.client-mode .login-shell {
  display: none;
}

body.admin-mode .booking-shell,
body.admin-mode .login-shell {
  display: none;
}

body.login-mode {
  display: block;
  background:
    radial-gradient(circle at 18% 24%, rgba(210, 66, 212, 0.22), transparent 28%),
    radial-gradient(circle at 84% 18%, rgba(108, 53, 240, 0.18), transparent 30%),
    #ffffff;
}

body.login-mode .booking-shell,
body.login-mode .sidebar,
body.login-mode .app-shell {
  display: none;
}

.login-shell {
  min-height: 100vh;
  padding: 32px;
  display: grid;
  grid-template-columns: minmax(360px, 460px) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.login-card {
  padding: 34px;
  border: 1px solid #e7e7ed;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 34px 90px rgba(28, 22, 50, 0.14);
}

.login-card h1 {
  margin: 14px 0 10px;
  color: #111;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.login-card p {
  color: var(--muted);
}

.login-form {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}

.login-form .primary-button {
  width: 100%;
  margin-top: 6px;
}

.login-feedback {
  min-height: 22px;
  margin: 0;
  color: var(--danger);
  font-weight: 800;
}

.login-preview {
  min-height: 560px;
  border-radius: 42px;
  background:
    radial-gradient(circle at 18% 40%, rgba(245, 92, 219, 0.72), transparent 35%),
    radial-gradient(circle at 82% 40%, rgba(111, 66, 232, 0.84), transparent 38%),
    linear-gradient(90deg, #d342d4, #6c35f0);
  display: grid;
  place-items: center;
  padding: 40px;
}

.login-preview-panel {
  width: min(480px, 100%);
  padding: 28px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(21, 17, 38, 0.22);
}

.login-preview-panel span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.login-preview-panel strong {
  display: block;
  margin: 14px 0 8px;
  font-size: 1.6rem;
}

.booking-shell {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 72%, rgba(235, 70, 207, 0.66), transparent 26%),
    radial-gradient(circle at 88% 74%, rgba(111, 55, 235, 0.9), transparent 30%),
    linear-gradient(180deg, #fff 0%, #fff 44%, #f7f5fb 44%, #7d35ee 100%);
}

.booking-topbar {
  max-width: 1440px;
  margin: 0 auto;
  padding: 22px 34px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 4;
}

.staff-login {
  min-width: auto;
  min-height: 54px;
  padding: 0 26px;
  color: #fff;
  background: #111;
  border-color: #111;
  border-radius: 999px;
  box-shadow: none;
}

.booking-brand {
  display: flex;
  align-items: center;
  gap: 58px;
}

.wordmark {
  color: #111;
  font-size: 1.7rem;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.public-nav {
  display: flex;
  align-items: center;
  gap: 42px;
}

.public-nav a,
.marketplace-pill,
.cta-link {
  color: #141414;
  text-decoration: none;
  font-weight: 900;
}

.public-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.marketplace-pill {
  min-height: 54px;
  padding: 0 26px;
  border: 1px solid #dedede;
  border-radius: 999px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.public-actions .staff-login {
  background: #111;
  color: #fff;
  border-color: #111;
}

.booking-main,
.public-main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px 34px 56px;
  position: relative;
  z-index: 2;
}

.booking-shell.show-home .public-home {
  display: block;
}

.booking-shell.show-home .public-booking-experience {
  display: none;
}

.booking-shell.show-booking .public-home {
  display: none;
}

.booking-shell.show-booking .public-booking-experience {
  display: block;
}

.public-home {
  display: none;
}

.booking-shell.show-home {
  background:
    linear-gradient(180deg, #fcfcfb 0%, #f5f7f6 100%);
}

.booking-shell.show-home .booking-topbar {
  margin-top: 8px;
  padding: 18px 8px 16px;
  border: 0;
  border-bottom: 1px solid rgba(227, 222, 214, 0.8);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.booking-shell.show-home .wordmark,
.booking-shell.show-home .public-nav a,
.booking-shell.show-home .marketplace-pill,
.booking-shell.show-home .cta-link {
  color: var(--ink);
}

.booking-shell.show-home .marketplace-pill {
  border-color: rgba(23, 33, 31, 0.12);
  background: #fff;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  gap: 42px;
  align-items: center;
  padding: 54px 0 38px;
}

.landing-copy {
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.landing-copy h1 {
  max-width: 860px;
  margin: 10px 0 18px;
  color: #111;
  font-size: clamp(4.2rem, 8vw, 8.5rem);
  line-height: 0.82;
  letter-spacing: -0.08em;
}

.landing-copy p {
  max-width: 650px;
  color: #4d4d55;
  font-size: 1.16rem;
  line-height: 1.55;
}

.landing-copy p strong {
  color: #17211f;
}

.landing-copy .hero-cta-row .primary-button {
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-color: transparent;
}

.landing-copy .hero-cta-row .ghost-button {
  background: #fff;
  color: #111;
  border-color: #d9dce0;
}

.landing-product-preview {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: center;
}

.preview-window {
  min-height: 460px;
  border: 1px solid #e0e5e7;
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 34px 90px rgba(25, 33, 31, 0.14);
}

.preview-window-top {
  height: 54px;
  padding: 0 18px;
  border-bottom: 1px solid #edf0f1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fbfcfb;
}

.preview-window-top span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d4dadd;
}

.preview-window-top strong {
  margin-left: 12px;
  font-size: 0.9rem;
  color: #48524e;
}

.preview-dashboard {
  min-height: 406px;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
}

.preview-dashboard aside {
  padding: 24px 18px;
  border-right: 1px solid #edf0f1;
  background: #f7faf9;
  display: grid;
  align-content: start;
  gap: 12px;
}

.preview-dashboard aside strong {
  margin-bottom: 14px;
  font-size: 1.25rem;
}

.preview-dashboard aside span {
  padding: 11px 12px;
  border-radius: 999px;
  color: #586560;
  font-size: 0.86rem;
  font-weight: 820;
}

.preview-dashboard aside span:first-of-type {
  background: #e8f5f1;
  color: #0f6b5d;
}

.preview-dashboard main {
  padding: 24px;
  display: grid;
  gap: 18px;
}

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

.preview-kpis article {
  min-height: 100px;
  padding: 16px;
  border: 1px solid #e6eaed;
  border-radius: 18px;
  background: #fff;
}

.preview-kpis span,
.preview-kpis strong {
  display: block;
}

.preview-kpis span {
  color: #68736e;
  font-size: 0.78rem;
  font-weight: 820;
}

.preview-kpis strong {
  margin-top: 12px;
  font-size: 1.85rem;
}

.preview-schedule {
  display: grid;
  gap: 10px;
}

.preview-schedule div {
  min-height: 70px;
  padding: 14px 16px;
  border: 1px solid #e6eaed;
  border-left: 4px solid #0f6b5d;
  border-radius: 16px;
  background: #fbfcfb;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 14px;
}

.preview-schedule time {
  color: #0f6b5d;
  font-weight: 900;
}

.preview-schedule strong {
  font-size: 0.96rem;
}

.preview-schedule span {
  color: #68736e;
  font-size: 0.84rem;
  font-weight: 760;
}

.preview-phone {
  position: absolute;
  right: -10px;
  bottom: 16px;
  width: 190px;
  min-height: 260px;
  padding: 22px 16px;
  border: 8px solid #111;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 26px 60px rgba(25, 33, 31, 0.2);
}

.preview-phone span,
.preview-phone strong,
.preview-phone p {
  display: block;
}

.preview-phone span {
  color: #0f6b5d;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.preview-phone strong {
  margin-top: 22px;
  font-size: 1.1rem;
}

.preview-phone p {
  color: #68736e;
  line-height: 1.45;
}

.preview-phone button {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: #e8f5f1;
  color: #0f6b5d;
  font-weight: 900;
}

.value-card,
.workflow-step,
.audience-card,
.plan-card,
.mobile-point,
.mobile-card,
.faq-list article,
.landing-closing {
  border: 1px solid #e6eaed;
  background: #fff;
  box-shadow: 0 16px 40px rgba(27, 33, 31, 0.06);
}

.landing-section {
  margin-top: 44px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 8px 0 10px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.section-heading p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

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

.value-card,
.audience-card {
  min-height: 220px;
  padding: 24px;
  border-radius: 20px;
}

.value-card span {
  display: inline-grid;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 900;
}

.value-card h3,
.audience-card h3,
.workflow-step h3,
.plan-card .plan-name,
.mobile-point strong {
  margin: 18px 0 10px;
  font-size: 1.15rem;
}

.value-card p,
.audience-card p,
.workflow-step p,
.plan-card p,
.mobile-point span,
.landing-closing p {
  color: var(--muted);
  line-height: 1.5;
}

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

.workflow-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 24px;
  border-radius: 20px;
}

.workflow-step strong {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #10221f;
  color: #fff;
  flex: 0 0 auto;
}

.management-section {
  padding: 34px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid #e6eaed;
}

.management-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.management-pill {
  padding: 12px 14px;
  border-radius: 999px;
  background: #f7faf9;
  border: 1px solid #dde9e6;
  font-weight: 820;
}

.plan-card {
  padding: 26px;
  border-radius: 22px;
  position: relative;
}

.plan-card .plan-name {
  display: block;
  margin-top: 8px;
  font-size: 1.22rem;
}

.plan-card ul {
  margin: 18px 0 24px;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.plan-price {
  display: block;
  margin-top: 12px;
  font-size: 2.7rem;
  line-height: 1;
}

.featured {
  border-color: rgba(15, 107, 93, 0.35);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfa 100%);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(16, 34, 31, 0.08);
}

.plan-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #10221f;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 900;
}

.premium-card {
  background: #fff;
}

.plans-section {
  padding: 34px;
  border-radius: 24px;
  background: #f8fbfa;
  border: 1px solid #e2ece8;
}

.mobile-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: stretch;
}

.mobile-copy {
  display: grid;
  gap: 14px;
}

.mobile-point {
  padding: 18px 20px;
  border-radius: 22px;
}

.mobile-card {
  padding: 28px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfa 100%);
}

.mobile-card span {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mobile-card strong {
  display: block;
  margin-top: 16px;
  font-size: 2rem;
  line-height: 0.98;
}

.mobile-card p {
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list article {
  padding: 22px 24px;
  border-radius: 18px;
}

.faq-list strong {
  display: block;
  font-size: 1rem;
}

.faq-list p {
  margin: 8px 0 0;
  color: var(--muted);
}

.landing-closing {
  margin-top: 36px;
  padding: 34px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(180deg, #0f6b5d 0%, #095247 100%);
  border-color: transparent;
}

.landing-closing h2,
.landing-closing .eyebrow {
  color: #fff;
}

.landing-closing p {
  color: rgba(255, 255, 255, 0.72);
}

.landing-closing .hero-cta-row .primary-button {
  background: #fff;
  color: #10221f;
  border-color: #fff;
}

.landing-closing .hero-cta-row .ghost-button {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
}

.booking-hero {
  min-height: 190px;
  margin: 10px auto 6px;
  padding: 10px 64px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 34px;
}

.booking-hero h1 {
  max-width: 850px;
  margin: 8px 0 14px;
  color: #111;
  font-size: clamp(2.8rem, 5.2vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  overflow-wrap: anywhere;
}

.booking-hero p {
  max-width: 650px;
  margin-bottom: 0;
  color: #4d4d55;
  font-size: 1.2rem;
}

.booking-summary-card {
  min-height: 156px;
  padding: 22px;
  border: 1px solid #e3e3e8;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(40, 40, 48, 0.12);
}

.booking-summary-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.booking-summary-card strong {
  display: block;
  margin: 18px 0 8px;
  font-size: 1.25rem;
}

.booking-summary-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.booking-summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.booking-summary-meta span {
  width: auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f5f5f8;
  color: #464650;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: none;
  opacity: 1;
}

.booking-summary-status {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #ece9f2;
  font-size: 0.86rem;
  font-weight: 860;
}

.booking-summary-status.waiting {
  color: #5d645f;
}

.booking-summary-status.ready {
  color: var(--primary-dark);
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.booking-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.booking-trust-row span {
  padding: 8px 12px;
  border: 1px solid rgba(23, 33, 31, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #3f4743;
  font-size: 0.78rem;
  font-weight: 820;
}

.hero-cta-row .primary-button,
.hero-cta-row .ghost-button {
  border-radius: 999px;
}

.hero-cta-row .ghost-button {
  background: #111;
  color: #fff;
  border-color: #111;
}

.product-showcase {
  min-height: 620px;
  margin: 0 auto 36px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.product-showcase::before {
  content: "";
  position: absolute;
  left: -80px;
  right: -80px;
  bottom: -70px;
  height: 340px;
  border-radius: 54px;
  background:
    radial-gradient(circle at 12% 30%, rgba(245, 92, 219, 0.72), transparent 35%),
    radial-gradient(circle at 82% 28%, rgba(111, 66, 232, 0.84), transparent 38%),
    linear-gradient(90deg, #d342d4, #6c35f0);
  z-index: -1;
}

.mock-window {
  width: min(980px, 78vw);
  height: 560px;
  margin-top: 16px;
  border: 8px solid rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 32px 100px rgba(21, 17, 38, 0.24);
}

.mock-header {
  height: 58px;
  padding: 0 18px;
  border-bottom: 1px solid #eeeef2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mock-header strong {
  font-size: 1.32rem;
  letter-spacing: -0.04em;
}

.mock-actions {
  display: flex;
  gap: 12px;
}

.mock-actions span {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #111;
  opacity: 0.11;
}

.mock-body {
  height: calc(100% - 58px);
  display: grid;
  grid-template-columns: 64px 1fr;
}

.mock-side {
  background: #071011;
  padding-top: 16px;
  display: grid;
  align-content: start;
  justify-content: center;
  gap: 18px;
}

.mock-side span {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 9px;
}

.mock-side .active {
  background: #6c35f0;
  border-color: #6c35f0;
}

.mock-calendar {
  min-width: 0;
  background: #fff;
}

.mock-toolbar {
  height: 56px;
  padding: 10px 14px;
  border-bottom: 1px solid #ededf1;
  display: flex;
  gap: 10px;
  align-items: center;
}

.mock-toolbar button {
  min-height: 32px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #dedee5;
  background: #fff;
  font-weight: 800;
}

.mock-team {
  height: 78px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  text-align: center;
  border-bottom: 1px solid #ededf1;
}

.mock-team span {
  width: 48px;
  height: 48px;
  margin: 0 auto 4px;
  display: block;
  border-radius: 999px;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px currentColor;
}

.mock-team small {
  font-weight: 900;
}

.mock-grid {
  height: 368px;
  position: relative;
  display: grid;
  grid-template-columns: 58px repeat(5, 1fr);
  grid-template-rows: repeat(6, 1fr);
  background:
    linear-gradient(#ececf1 1px, transparent 1px) 0 0 / 100% 61px,
    linear-gradient(90deg, #ececf1 1px, transparent 1px) 0 0 / 20% 100%;
}

.mock-grid > span {
  padding: 8px 8px 0 0;
  color: #333;
  font-size: 0.74rem;
  text-align: right;
}

.mock-event {
  margin: 4px;
  padding: 12px;
  border-radius: 6px;
  display: grid;
  align-content: start;
  gap: 4px;
  font-size: 0.82rem;
}

.mock-event strong,
.phone-line-event strong {
  font-size: 0.9rem;
}

.mock-event small,
.phone-line-event small,
.phone-line-event span {
  color: rgba(0, 0, 0, 0.68);
}

.mock-event.blue,
.phone-line-event.blue {
  background: #a9d8f0;
}

.mock-event.amber,
.phone-line-event.amber {
  background: #f5c46d;
}

.mock-event.pink {
  background: #ee94ba;
}

.mock-event.teal,
.phone-line-event.teal {
  background: #80cec5;
}

.mock-phone {
  width: 300px;
  min-height: 520px;
  position: absolute;
  right: 90px;
  top: 116px;
  padding: 22px 18px;
  border: 8px solid rgba(255, 255, 255, 0.8);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 32px 90px rgba(34, 16, 70, 0.28);
}

.phone-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.phone-bar span {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: #111;
  opacity: 0.14;
}

.phone-avatar {
  width: 58px;
  height: 58px;
  margin: 26px auto 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #a9d8f0, #5b9ad8);
}

.phone-name {
  display: block;
  text-align: center;
  margin-bottom: 22px;
}

.phone-line-event {
  min-height: 86px;
  margin-bottom: 8px;
  padding: 12px;
  border-radius: 8px;
  display: grid;
  align-content: start;
  gap: 4px;
}

.booking-flow {
  position: relative;
  display: grid;
  grid-template-columns: 360px minmax(560px, 1fr) 360px;
  gap: 18px;
  align-items: start;
  margin: 28px auto 56px;
  padding: 30px;
  border-radius: 44px;
  background:
    radial-gradient(circle at 12% 20%, rgba(245, 92, 219, 0.76), transparent 36%),
    radial-gradient(circle at 86% 22%, rgba(111, 66, 232, 0.9), transparent 42%),
    linear-gradient(90deg, #d142d4, #6734ef);
}

.booking-flow-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 4px;
}

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

.booking-progress-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.76);
}

.booking-progress-step strong {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  font-size: 0.86rem;
}

.booking-progress-step span,
.booking-progress-step small {
  display: block;
}

.booking-progress-step span {
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.booking-progress-step small {
  margin-top: 2px;
  font-size: 0.82rem;
  color: inherit;
}

.booking-progress-step.active,
.booking-progress-step.done {
  background: rgba(255, 255, 255, 0.96);
  color: #1e2522;
  border-color: rgba(255, 255, 255, 0.96);
}

.booking-progress-step.active strong,
.booking-progress-step.done strong {
  background: var(--primary);
  color: #fff;
}

.booking-flow > * {
  min-width: 0;
}

.booking-step {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(24, 16, 54, 0.18);
}

.booking-step[data-book-section="calendar"] {
  padding: 18px;
  border-radius: 28px;
  background: #fff;
}

.booking-shell.focus-services .booking-panel:not([data-book-section="services"]),
.booking-shell.focus-calendar .booking-panel:not([data-book-section="calendar"]),
.booking-shell.focus-details .booking-panel:not([data-book-section="details"]) {
  display: none;
}

.booking-shell.focus-services .booking-flow,
.booking-shell.focus-calendar .booking-flow,
.booking-shell.focus-details .booking-flow {
  grid-template-columns: minmax(0, 980px);
  justify-content: center;
}

.booking-shell.focus-calendar .booking-step[data-book-section="calendar"] {
  width: min(1100px, 100%);
}

.step-heading {
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.step-heading > span {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  flex: 0 0 auto;
}

.step-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.service-option {
  width: 100%;
  min-width: 0;
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  text-align: left;
  display: grid;
  gap: 4px;
}

.service-option-top,
.service-option-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.service-option-top strong {
  font-size: 0.92rem;
}

.service-option * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.service-option span {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.service-option strong {
  font-size: 1rem;
}

.service-option small {
  color: var(--muted);
  font-weight: 760;
}

.service-option-meta small:last-child {
  text-align: right;
}

.service-option.selected,
.date-option.selected,
.time-option.selected {
  border-color: rgba(15, 107, 93, 0.42);
  background: var(--primary-soft);
  box-shadow: 0 0 0 3px rgba(15, 107, 93, 0.08);
}

.date-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.date-option {
  min-height: 68px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-align: left;
}

.date-option span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.date-option strong {
  display: block;
  margin-top: 4px;
  font-size: 0.88rem;
}

.availability-note {
  min-height: 22px;
  margin: 0 0 12px;
  color: #4d4d55;
  font-size: 0.88rem;
  font-weight: 820;
}

.booking-calendar-context {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.booking-calendar-context-card {
  padding: 12px 14px;
  border: 1px solid #ece6fb;
  border-radius: 14px;
  background: #faf7ff;
}

.booking-calendar-context-card.subtle {
  border-color: #d8ebe7;
  background: #f2faf8;
}

.booking-calendar-context-card strong,
.booking-calendar-context-card span {
  display: block;
}

.booking-calendar-context-card strong {
  font-size: 0.92rem;
}

.booking-calendar-context-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.client-schedule {
  min-width: 0;
  overflow-x: auto;
  border: 1px solid #e7e7ed;
  border-radius: 18px;
  background: #fff;
}

.client-schedule.empty {
  overflow: hidden;
}

.booking-empty-state {
  padding: 24px;
  text-align: center;
}

.booking-empty-state strong,
.booking-empty-state p {
  display: block;
}

.booking-empty-state p {
  margin: 8px auto 0;
  max-width: 420px;
  color: var(--muted);
}

.client-schedule-head,
.schedule-row {
  display: grid;
  grid-template-columns: 72px repeat(var(--booking-staff-cols, 3), minmax(150px, 1fr));
}

.client-schedule-head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
  border-bottom: 1px solid #ececf1;
}

.schedule-corner,
.staff-column-head {
  min-height: 108px;
  padding: 12px;
  border-right: 1px solid #ececf1;
}

.schedule-corner {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.staff-column-head {
  text-align: center;
}

.staff-column-head img {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #7b46ea, 0 10px 22px rgba(21, 17, 38, 0.14);
}

.staff-column-head strong,
.staff-column-head span {
  display: block;
}

.staff-column-head strong {
  margin-top: 7px;
  font-size: 0.88rem;
}

.staff-column-head span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 760;
}

.schedule-row {
  min-height: 74px;
  border-bottom: 1px solid #f0f0f4;
}

.schedule-time {
  padding: 12px 10px;
  color: #3a3a42;
  font-size: 0.8rem;
  font-weight: 900;
  text-align: right;
  border-right: 1px solid #ececf1;
}

.schedule-cell {
  margin: 5px;
  min-height: 62px;
  border-radius: 10px;
  padding: 10px;
  text-align: left;
  display: grid;
  align-content: start;
  gap: 3px;
}

.schedule-cell strong,
.schedule-cell span {
  display: block;
}

.schedule-cell span {
  color: rgba(0, 0, 0, 0.64);
  font-size: 0.78rem;
  font-weight: 760;
}

.schedule-cell.available {
  border: 1px solid #cdeee9;
  background: #ecfaf7;
  color: #0f5b50;
}

.schedule-cell.available:hover,
.schedule-cell.available.selected {
  border-color: #6c35f0;
  background: #efeafd;
  box-shadow: inset 0 0 0 2px rgba(108, 53, 240, 0.12);
}

.schedule-cell.busy {
  border: 1px solid #f4c0d5;
  background: #f3a0c1;
}

.schedule-cell.busy:nth-child(3n) {
  border-color: #f3cf86;
  background: #f5c46d;
}

.schedule-cell.busy:nth-child(4n) {
  border-color: #9edbd4;
  background: #80cec5;
}

.booking-fields {
  display: grid;
  gap: 12px;
}

.booking-details-summary {
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid #e7e1f6;
  border-radius: 16px;
  background: #f8f5ff;
}

.booking-details-summary.waiting {
  border-color: #ebe7e0;
  background: #fbfaf7;
}

.booking-details-summary strong,
.booking-details-summary span {
  display: block;
}

.booking-details-summary strong {
  font-size: 0.98rem;
}

.booking-details-summary span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 760;
}

.booking-fields .full {
  grid-column: 1 / -1;
}

.booking-submit {
  width: 100%;
  margin-top: 14px;
}

.booking-submit:disabled,
.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
  box-shadow: none;
}

.booking-readiness {
  margin-top: 14px;
  padding: 13px 14px;
  border-radius: 16px;
  display: grid;
  gap: 4px;
}

.booking-readiness strong,
.booking-readiness span {
  display: block;
}

.booking-readiness strong {
  font-size: 0.92rem;
}

.booking-readiness span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.booking-readiness.waiting {
  border: 1px solid #f0dfb8;
  background: #fff8e8;
}

.booking-readiness.ready {
  border: 1px solid #cdeee9;
  background: #ecfaf7;
}

.booking-feedback {
  min-height: 24px;
  margin: 12px 0 0;
  font-weight: 800;
}

.booking-feedback.success {
  color: var(--primary);
}

.booking-feedback.error {
  color: var(--danger);
}

.booking-next-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

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

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 4px;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1.04;
}

h2 {
  margin-bottom: 0;
  font-size: 1.08rem;
}

h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

p {
  line-height: 1.55;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 38%),
    #121b19;
  color: #fbf8f1;
  display: flex;
  flex-direction: column;
  gap: 26px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e6a06c, #b7563a);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.25rem;
  box-shadow: 0 14px 28px rgba(196, 111, 66, 0.32);
}

.brand strong {
  display: block;
  font-size: 1.04rem;
}

.brand span,
.sidebar-card span,
.eyebrow {
  display: block;
  color: inherit;
  opacity: 0.72;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.nav {
  display: grid;
  gap: 6px;
}

.nav-item {
  text-decoration: none;
  width: 100%;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: rgba(251, 248, 241, 0.82);
  text-align: left;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 760;
}

.nav-item span {
  width: 30px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(251, 248, 241, 0.62);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
}

.nav-item.active span {
  background: var(--accent);
  color: #fff;
}

.sidebar-card {
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

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

.sidebar-card p {
  color: rgba(255, 255, 255, 0.68);
  margin: 8px 0 14px;
  font-size: 0.9rem;
}

.usage-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.usage-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #49c2a6, #e6a06c);
}

.app-shell {
  min-width: 0;
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  min-width: 0;
}

.topbar-copy p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
}

.topbar-copy {
  min-width: 360px;
}

.topbar-actions,
.toolbar,
.panel-heading,
menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

.search-box {
  height: 44px;
  min-width: 280px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  display: flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.search-box span {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--surface);
  color: var(--subtle);
  display: grid;
  place-items: center;
  font-size: 0.76rem;
  border: 1px solid var(--line);
}

.search-box input {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  outline: 0;
}

.primary-button,
.ghost-button,
.text-button,
.icon-button,
.danger-button {
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 0 15px;
  font-weight: 820;
  white-space: nowrap;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

a.primary-button,
a.ghost-button,
a.route-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.primary-button {
  min-width: 132px;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 12px 24px rgba(15, 107, 93, 0.22);
}

.primary-button:hover,
.ghost-button:hover,
.danger-button:hover {
  transform: translateY(-1px);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  border-color: var(--line);
}

.text-button {
  background: transparent;
  color: var(--primary);
  padding: 0;
}

.icon-button {
  width: 40px;
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.danger-button {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: #f0c6bc;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.hero-panel {
  min-height: 174px;
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid rgba(15, 107, 93, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.95), rgba(255, 253, 249, 0.7)),
    radial-gradient(circle at 88% 22%, rgba(53, 95, 143, 0.18), transparent 28%),
    radial-gradient(circle at 70% 70%, rgba(196, 111, 66, 0.16), transparent 32%);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.hero-panel h2 {
  margin: 8px 0 8px;
  max-width: 600px;
  font-size: clamp(1.45rem, 2.2vw, 2.1rem);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.hero-panel p {
  max-width: 640px;
  margin-bottom: 0;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric,
.panel,
.card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

.metric {
  position: relative;
  min-height: 148px;
  padding: 18px;
  overflow: hidden;
}

.metric::after {
  content: "";
  position: absolute;
  inset: auto 16px 0 16px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), transparent);
}

.metric span,
.metric small,
.muted {
  color: var(--muted);
}

.metric strong {
  display: block;
  margin: 24px 0 4px;
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  line-height: 1;
}

.metric-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 900;
  float: right;
}

.metric-icon.accent {
  background: var(--accent-soft);
  color: var(--accent);
}

.metric-icon.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.metric-icon.dark {
  background: #ecefed;
  color: var(--charcoal);
}

.content-grid,
.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr);
  gap: 18px;
}

.operations-panel {
  margin-bottom: 18px;
}

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

.operation-card {
  min-height: 154px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
  color: var(--ink);
  text-decoration: none;
  display: grid;
  align-content: start;
  gap: 7px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.operation-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 107, 93, 0.34);
  box-shadow: var(--shadow-soft);
}

.operation-card span {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.operation-card p {
  color: var(--muted);
  margin-bottom: 0;
  font-size: 0.87rem;
}

.operation-card em {
  color: var(--primary);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 900;
}

.panel {
  padding: 20px;
  min-width: 0;
}

.panel-heading {
  margin-bottom: 18px;
}

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

.list-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
}

.list-row p {
  margin-bottom: 0;
}

.time-pill,
.status-pill,
.tag {
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.time-pill {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.status-pill.confirmed {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.status-pill.pending {
  color: var(--warning);
  background: var(--warning-soft);
}

.status-pill.cancelled {
  color: var(--danger);
  background: var(--danger-soft);
}

.tag {
  color: var(--blue);
  background: var(--blue-soft);
}

.toolbar {
  align-items: end;
  justify-content: start;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-soft);
}

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

input,
select,
textarea {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  outline-color: rgba(15, 107, 93, 0.28);
}

textarea {
  padding: 12px;
  min-height: 96px;
}

.calendar-header {
  margin-bottom: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.legend {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 760;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  display: inline-block;
  margin-right: 7px;
}

.confirmed-dot {
  background: var(--primary);
}

.pending-dot {
  background: var(--warning);
}

.free-dot {
  background: var(--line-strong);
}

.schedule-board {
  display: grid;
  gap: 9px;
}

.slot {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.slot-time {
  color: var(--muted);
  font-weight: 900;
  padding-top: 16px;
}

.slot-content {
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.64);
}

.appointment-card {
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  padding: 11px 12px;
  border-radius: 12px;
  background: #fff;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  box-shadow: 0 10px 24px rgba(23, 33, 31, 0.06);
}

.appointment-card p {
  margin-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
}

th,
td {
  text-align: left;
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

tbody tr:hover {
  background: rgba(15, 107, 93, 0.04);
}

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

.card {
  padding: 16px;
  box-shadow: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.card p {
  margin-bottom: 10px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.team-card {
  display: grid;
  gap: 12px;
}

.team-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-card-head img {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--primary), 0 12px 22px rgba(23, 33, 31, 0.12);
  flex: 0 0 auto;
}

.team-card-head h3 {
  margin-bottom: 4px;
}

.team-meta {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 760;
}

.team-services {
  min-height: 44px;
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
}

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

.form-grid .full,
.form-grid button {
  grid-column: 1 / -1;
}

.photo-upload {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
}

.photo-upload img {
  width: 72px;
  height: 72px;
  grid-row: span 2;
  border-radius: 999px;
  object-fit: cover;
  background: var(--line);
}

.photo-upload input {
  min-width: 0;
  padding: 9px;
}

.photo-upload small {
  color: var(--muted);
}

.checkbox-field {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
}

.checkbox-field legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 820;
}

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

.checkbox-option {
  min-height: 58px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 9px;
}

.checkbox-option input {
  min-height: auto;
  margin-top: 4px;
}

.checkbox-option strong,
.checkbox-option small {
  display: block;
}

.checkbox-option small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
}

.roadmap {
  display: grid;
  gap: 12px;
}

.roadmap div {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: var(--surface-strong);
}

.roadmap span {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

dialog {
  width: min(760px, calc(100vw - 32px));
  border: 0;
  border-radius: 18px;
  padding: 0;
  background: var(--surface);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

dialog::backdrop {
  background: rgba(18, 27, 25, 0.58);
  backdrop-filter: blur(4px);
}

#dialog-form {
  padding: 22px;
}

.dialog-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

menu {
  padding: 18px 0 0;
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
  justify-content: end;
}

.empty-state {
  padding: 24px;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  text-align: center;
  background: rgba(255, 255, 255, 0.54);
}

@media (max-width: 1180px) {
  body {
    grid-template-columns: 1fr;
  }

  .public-nav {
    display: none;
  }

  .landing-hero,
  .mobile-showcase,
  .booking-hero,
  .booking-flow {
    grid-template-columns: 1fr;
  }

  .landing-product-preview {
    min-height: auto;
  }

  .preview-phone {
    right: 18px;
    bottom: -18px;
    transform: scale(0.92);
    transform-origin: bottom right;
  }

  .booking-flow-head,
  .booking-progress,
  .booking-calendar-context {
    grid-template-columns: 1fr;
  }

  .booking-flow-head {
    align-items: stretch;
  }

  .landing-copy,
  .plans-section,
  .management-section,
  .landing-closing {
    padding: 24px;
  }

  .booking-hero {
    padding-inline: 24px;
  }

  .value-grid,
  .audience-grid,
  .plans-grid,
  .preview-kpis,
  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .product-showcase {
    min-height: 520px;
  }

  .mock-window {
    width: 92vw;
    height: 500px;
  }

  .mock-phone {
    right: 24px;
    top: 126px;
    transform: scale(0.86);
    transform-origin: top right;
  }

  .booking-summary-card {
    min-height: 0;
  }

  .sidebar {
    position: static;
    height: auto;
  }

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

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

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

@media (max-width: 760px) {
  .login-shell {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .login-preview {
    min-height: 240px;
    padding: 20px;
  }

  .login-card {
    padding: 24px;
  }

  .booking-shell {
    overflow: visible;
    background:
      linear-gradient(180deg, #fff 0%, #fff 45%, transparent 45%),
      linear-gradient(180deg, #fff 0%, #fafafa 48%, #7d35ee 100%);
  }

  .booking-topbar {
    padding: 16px;
    align-items: center;
  }

  .booking-shell.show-home .booking-topbar {
    margin-top: 8px;
    padding: 14px 16px;
    border-radius: 20px;
  }

  .wordmark {
    font-size: 1.45rem;
  }

  .public-actions {
    gap: 8px;
  }

  .marketplace-pill {
    display: none;
  }

  .staff-login {
    min-height: 40px;
    padding: 0 16px;
  }

  .booking-main {
    padding: 4px 16px 32px;
  }

  .public-main {
    padding: 4px 16px 32px;
  }

  .booking-hero {
    min-height: 0;
    padding: 18px 0 4px;
  }

  .landing-hero {
    gap: 22px;
    padding: 12px 0 18px;
  }

  .landing-copy {
    padding: 0;
    border-radius: 0;
  }

  .landing-copy h1 {
    font-size: 4rem;
    letter-spacing: -0.045em;
    line-height: 0.9;
  }

  .mobile-card strong {
    font-size: 1.6rem;
  }

  .landing-product-preview {
    min-height: 410px;
  }

  .preview-window {
    min-height: 400px;
    border-radius: 22px;
    box-shadow: 0 22px 54px rgba(25, 33, 31, 0.12);
  }

  .preview-window-top {
    height: 46px;
  }

  .preview-dashboard {
    min-height: 354px;
    grid-template-columns: 1fr;
  }

  .preview-dashboard aside {
    display: none;
  }

  .preview-dashboard main {
    padding: 16px;
  }

  .preview-kpis article {
    min-height: 84px;
    padding: 14px;
  }

  .preview-kpis strong {
    font-size: 1.55rem;
  }

  .preview-schedule div {
    min-height: 74px;
    grid-template-columns: 58px 1fr;
    gap: 8px 12px;
  }

  .preview-schedule span {
    grid-column: 2;
  }

  .preview-phone {
    display: none;
  }

  .booking-hero h1 {
    font-size: 3.2rem;
    line-height: 0.92;
  }

  .booking-hero p {
    font-size: 1rem;
  }

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

  .booking-trust-row {
    gap: 8px;
  }

  .landing-closing,
  .workflow-step {
    flex-direction: column;
  }

  .hero-cta-row .primary-button,
  .hero-cta-row .ghost-button {
    width: 100%;
  }

  .product-showcase {
    min-height: 360px;
    margin-bottom: 18px;
    overflow: hidden;
  }

  .product-showcase::before {
    left: -24px;
    right: -24px;
    bottom: -22px;
    height: 190px;
    border-radius: 28px;
  }

  .mock-window {
    width: 760px;
    height: 330px;
    margin-left: 300px;
    border-width: 5px;
    border-radius: 20px;
    transform: scale(0.72);
    transform-origin: top center;
  }

  .mock-phone {
    width: 220px;
    min-height: 382px;
    right: 10px;
    top: 76px;
    padding: 16px 12px;
    border-width: 5px;
    border-radius: 24px;
    transform: scale(0.72);
    transform-origin: top right;
  }

  .mock-toolbar button:nth-child(n+3),
  .mock-team,
  .mock-side {
    display: none;
  }

  .mock-body {
    grid-template-columns: 1fr;
  }

  .mock-grid {
    height: 230px;
  }

  .phone-line-event {
    min-height: 64px;
  }

  .booking-flow {
    gap: 12px;
  }

  .booking-flow-head {
    padding: 0;
  }

  .booking-step {
    padding: 16px;
    border-radius: 18px;
  }

  .date-strip {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .date-option {
    min-width: 112px;
  }

  .booking-calendar-context {
    grid-template-columns: 1fr;
  }

  .client-schedule-head,
  .schedule-row {
    grid-template-columns: 60px repeat(var(--booking-staff-cols, 3), 138px);
  }

  .schedule-corner,
  .staff-column-head {
    min-height: 96px;
    padding: 10px;
  }

  .staff-column-head img {
    width: 46px;
    height: 46px;
  }

  .schedule-cell {
    min-height: 58px;
  }

  .app-shell {
    padding: 18px;
  }

  .sidebar {
    padding: 16px;
    gap: 14px;
    overflow: hidden;
  }

  .brand {
    min-height: 44px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .sidebar-card {
    display: none;
  }

  .nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 4px;
  }

  .nav-item {
    width: auto;
    min-width: max-content;
    min-height: 40px;
    padding: 0 12px;
  }

  .topbar,
  .topbar-actions,
  .toolbar,
  .panel-heading,
  .hero-panel,
  .calendar-header,
  .appointment-card {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-copy {
    min-width: 0;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .topbar-actions .search-box {
    grid-column: 1 / -1;
  }

  .topbar-actions button {
    width: 100%;
  }

  .search-box {
    min-width: 0;
    width: 100%;
  }

  .search-box input {
    min-width: 0;
  }

  .hero-panel > * {
    min-width: 0;
  }

  .nav,
  .metric-grid,
  .cards-grid,
  .operations-grid,
  .checkbox-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

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

/* Internal app visual refresh */
body.admin-mode {
  background:
    radial-gradient(circle at 18% 8%, rgba(210, 66, 212, 0.12), transparent 28%),
    radial-gradient(circle at 88% 6%, rgba(108, 53, 240, 0.1), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f6f4fb 100%);
}

body.admin-mode .sidebar {
  background:
    radial-gradient(circle at 0% 0%, rgba(210, 66, 212, 0.2), transparent 36%),
    linear-gradient(180deg, #121217, #080b0d);
}

body.admin-mode .brand-mark,
body.admin-mode .nav-item.active span {
  background: linear-gradient(135deg, #d342d4, #6c35f0);
}

body.admin-mode .nav-item {
  border-radius: 999px;
  text-decoration: none;
}

body.admin-mode .nav-item:hover,
body.admin-mode .nav-item.active {
  background: rgba(255, 255, 255, 0.12);
}

body.admin-mode .sidebar-card {
  border-radius: 22px;
}

body.admin-mode .app-shell {
  padding: 28px 32px;
}

body.admin-mode .topbar {
  margin-bottom: 22px;
  padding: 18px 20px;
  border: 1px solid rgba(227, 222, 214, 0.72);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 22px 60px rgba(40, 40, 48, 0.08);
  backdrop-filter: blur(16px);
}

body.admin-mode h1 {
  font-size: clamp(2.15rem, 4vw, 3.8rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

body.admin-mode .search-box,
body.admin-mode .primary-button,
body.admin-mode .ghost-button,
body.admin-mode .text-button,
body.admin-mode .icon-button,
body.admin-mode .danger-button {
  border-radius: 999px;
}

body.admin-mode .primary-button {
  background: linear-gradient(180deg, #287565, #0f4f45);
}

body.admin-mode .hero-panel {
  border-radius: 30px;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.78)),
    radial-gradient(circle at 88% 22%, rgba(108, 53, 240, 0.18), transparent 28%),
    radial-gradient(circle at 70% 70%, rgba(210, 66, 212, 0.15), transparent 32%);
}

body.admin-mode .metric,
body.admin-mode .panel,
body.admin-mode .card {
  border-radius: 24px;
}

body.admin-mode .metric::after {
  background: linear-gradient(90deg, #d342d4, #6c35f0, transparent);
}

body.admin-mode .metric-icon {
  border-radius: 12px;
  background: #f1eafd;
  color: #6c35f0;
}

body.admin-mode .panel {
  padding: 22px;
}

body.admin-mode .list-row,
body.admin-mode .toolbar,
body.admin-mode .calendar-header,
body.admin-mode input,
body.admin-mode select,
body.admin-mode textarea {
  border-radius: 18px;
}

body.admin-mode .operation-card {
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9));
}

body.admin-mode .operation-card span {
  color: #6c35f0;
}

body.admin-mode .app-shell {
  background:
    radial-gradient(circle at 80% 0%, rgba(108, 53, 240, 0.08), transparent 28%),
    transparent;
}

body.admin-mode .panel,
body.admin-mode .card,
body.admin-mode .metric,
body.admin-mode .toolbar,
body.admin-mode .calendar-header,
body.admin-mode .table-wrap,
body.admin-mode .empty-state {
  background: rgba(255, 255, 255, 0.96);
  border-color: #ececf1;
  box-shadow: 0 24px 70px rgba(28, 22, 50, 0.08);
}

body.admin-mode .panel-heading {
  padding-bottom: 14px;
  border-bottom: 1px solid #f0f0f4;
}

body.admin-mode .card {
  position: relative;
  overflow: hidden;
  min-height: 176px;
}

body.admin-mode .card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #d342d4, #6c35f0, #287565);
}

body.admin-mode .card h3,
body.admin-mode .panel h2,
body.admin-mode .list-row strong {
  color: #111217;
}

body.admin-mode .muted,
body.admin-mode .card p,
body.admin-mode .list-row p {
  color: #5f626b;
}

body.admin-mode table {
  border-collapse: separate;
  border-spacing: 0 10px;
}

body.admin-mode th {
  border: 0;
  color: #6c35f0;
  font-weight: 950;
}

body.admin-mode td {
  border-top: 1px solid #ececf1;
  border-bottom: 1px solid #ececf1;
  background: #fff;
}

body.admin-mode td:first-child {
  border-left: 1px solid #ececf1;
  border-radius: 16px 0 0 16px;
}

body.admin-mode td:last-child {
  border-right: 1px solid #ececf1;
  border-radius: 0 16px 16px 0;
}

body.admin-mode tbody tr:hover td {
  background: #f8f5ff;
}

body.admin-mode .list-row {
  background: #fff;
  border-color: #ececf1;
  box-shadow: 0 14px 34px rgba(28, 22, 50, 0.05);
}

body.admin-mode .tag {
  color: #6c35f0;
  background: #f1eafd;
}

body.admin-mode .time-pill,
body.admin-mode .status-pill.confirmed {
  color: #0f5b50;
  background: #ecfaf7;
}

body.admin-mode .status-pill.pending {
  color: #8b5b00;
  background: #fff2d2;
}

body.admin-mode .status-pill.cancelled {
  color: #b43d3d;
  background: #fff0ec;
}

body.admin-mode label {
  color: #3f4248;
}

body.admin-mode input,
body.admin-mode select,
body.admin-mode textarea {
  border-color: #e2e2ea;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(17, 18, 23, 0.03);
}

body.admin-mode input:focus,
body.admin-mode select:focus,
body.admin-mode textarea:focus {
  outline: 3px solid rgba(108, 53, 240, 0.14);
  border-color: #8b6df4;
}

body.admin-mode .roadmap div {
  border-color: #ececf1;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(28, 22, 50, 0.05);
}

body.admin-mode .roadmap strong {
  color: #111217;
}

body.admin-mode .empty-state {
  color: #5f626b;
  border-style: solid;
}

body.admin-mode .internal-calendar-grid {
  overflow-x: auto;
  border: 1px solid #e7e7ed;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(40, 40, 48, 0.08);
}

body.admin-mode .internal-calendar-head,
body.admin-mode .internal-calendar-row {
  display: grid;
  grid-template-columns: 76px repeat(var(--staff-cols, 3), minmax(190px, 1fr));
}

body.admin-mode .internal-calendar-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  border-bottom: 1px solid #ececf1;
}

body.admin-mode .internal-calendar-row {
  min-height: 82px;
  border-bottom: 1px solid #f0f0f4;
}

body.admin-mode .internal-booked {
  border: 1px solid #f4c0d5;
  background: #f3a0c1;
}

body.admin-mode .internal-booked.confirmed {
  border-color: #9edbd4;
  background: #80cec5;
}

body.admin-mode .internal-booked.pending {
  border-color: #f3cf86;
  background: #f5c46d;
}

body.admin-mode .internal-booked small {
  color: rgba(0, 0, 0, 0.68);
  font-weight: 760;
}

body.admin-mode .internal-free {
  opacity: 0.72;
}

@media (max-width: 760px) {
  body.admin-mode .app-shell {
    padding: 18px;
  }

  body.admin-mode .topbar {
    border-radius: 22px;
  }

  body.admin-mode .internal-calendar-head,
  body.admin-mode .internal-calendar-row {
    grid-template-columns: 62px repeat(var(--staff-cols, 3), 150px);
  }
}
