:root {
  --font-body: "DM Sans", "Manrope", "Noto Sans", "Noto Sans Arabic", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans", "Microsoft YaHei", "Yu Gothic", "Malgun Gothic", sans-serif;
  --font-head: "Manrope", "DM Sans", "Noto Sans", "Noto Sans Arabic", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans", "Microsoft YaHei", "Yu Gothic", "Malgun Gothic", sans-serif;
  --ink: #121722;
  --muted: #5b6270;
  --line: #e7e8ec;
  --paper: #fbfaf8;
  --white: #fff;
  --green: #b9f4cf;
  --green-dark: #1e7a4b;
  --violet: #6c5ce7;
  --lavender: #e9e5ff;
  --peach: #ffe2d6;
  --shadow: 0 24px 70px rgba(30, 35, 50, 0.11);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

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

button,
a {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

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

.hidden {
  display: none !important;
}

.site-header {
  height: 78px;
  max-width: 1240px;
  margin: auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font:
    800 21px/1 var(--font-head);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--ink);
  color: var(--green);
  display: inline-grid;
  place-items: center;
  font: 800 18px var(--font-head);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 31px;
  font-size: 15px;
  font-weight: 600;
}

.main-nav>a:not(.btn) {
  color: #505765;
}

.main-nav>a:hover {
  color: var(--ink);
}

.nav-login {
  border: 0;
  background: none;
  font-weight: 700;
}

.btn {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  padding: 14px 20px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    0.2s transform,
    0.2s box-shadow,
    0.2s background;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(18, 23, 34, 0.16);
}

.btn-small {
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 15px;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: #d7d9df;
}

.btn-light {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.menu-toggle {
  display: none;
  border: 0;
  background: none;
  width: 42px;
  height: 42px;
  padding: 9px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 5px;
  border-radius: 2px;
  transition: 0.2s;
}

.hero {
  max-width: 1240px;
  min-height: 680px;
  margin: 0 auto;
  padding: 86px 28px 80px;
  display: grid;
  grid-template-columns: 0.87fr 1.13fr;
  gap: 50px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: #47715a;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hero h1,
.section-heading h2,
.final-cta h2 {
  font:
    800 clamp(44px, 5vw, 70px)/1.03 var(--font-head);
  letter-spacing: -0.055em;
  margin: 0;
}

.hero h1 .muted-line {
  color: #545b66;
}

.hero-text {
  max-width: 540px;
  margin: 28px 0;
  color: #5f6674;
  font-size: 18px;
  line-height: 1.7;
}

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

.text-link {
  font-size: 15px;
  font-weight: 700;
}

.text-link span {
  margin-inline-start: 5px;
}

.microcopy {
  color: #5f6672;
  font-size: 13px;
  margin-top: 18px;
}

.hero-product {
  position: relative;
  min-width: 0;
}

.mock-window {
  background: #fff;
  border: 1px solid #e6e7ea;
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
}

.mock-head {
  height: 61px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  font-size: 12px;
}

.mock-head>div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mock-logo {
  width: 27px;
  height: 27px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--green);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.online-dot {
  color: var(--green-dark);
  background: #eefaf2;
  border-radius: 99px;
  padding: 7px 10px;
}

.online-dot:before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #45b97b;
  margin-inline-end: 5px;
}

.mock-body {
  display: grid;
  grid-template-columns: 125px 1fr;
  min-height: 390px;
}

.mock-body aside {
  border-inline-end: 1px solid var(--line);
  padding: 26px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-body aside span {
  font-size: 9px;
  color: #6b7280;
  padding: 9px;
  border-radius: 6px;
}

.mock-body aside .active {
  background: #f0f8f3;
  color: var(--green-dark);
  font-weight: 700;
}

.mock-content {
  padding: 27px 24px;
}

.mock-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mock-title small {
  font-size: 9px;
  color: #6b7280;
}

.mock-title h3 {
  font: 700 17px var(--font-head);
  margin: 3px 0;
}

.mock-title button {
  font-size: 9px;
  border: 0;
  border-radius: 7px;
  padding: 8px 10px;
  background: var(--ink);
  color: #fff;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 21px 0;
}

.stat-row>div {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px;
}

.stat-row small,
.stat-row em {
  display: block;
  font-size: 8px;
  color: #6b7280;
  font-style: normal;
}

.stat-row b {
  display: block;
  font: 700 18px var(--font-head);
  margin: 4px 0;
}

.appointment-list {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 13px;
}

.appointment {
  display: grid;
  grid-template-columns: 36px 28px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.appointment:last-child {
  border: 0;
}

.appointment time {
  font-size: 9px;
  font-weight: 700;
}

.avatar {
  width: 27px;
  height: 27px;
  border-radius: 8px;
  background: var(--lavender);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}

.avatar.coral {
  background: var(--peach);
}

.avatar.blue {
  background: #dbeeff;
}

.appointment p {
  margin: 0;
}

.appointment strong,
.appointment small {
  display: block;
  font-size: 9px;
}

.appointment small {
  color: #6b7280;
  margin-top: 2px;
}

.status {
  border-radius: 99px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  font-style: normal;
  white-space: nowrap;
  display: inline-block;
}

.confirmed {
  background: #eaf8ef;
  color: #27764c;
}

.pending {
  background: #fff5dd;
  color: #a16c00;
}

.floating-card {
  position: absolute;
  inset-inline-end: -24px;
  bottom: -32px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 45px rgba(30, 35, 50, 0.15);
  border-radius: 14px;
  padding: 13px 17px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.floating-card .check {
  width: 29px;
  height: 29px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--green);
  font-weight: 800;
}

.floating-card p {
  margin: 0;
}

.floating-card strong,
.floating-card small {
  display: block;
  font-size: 10px;
}

.floating-card small {
  color: #6b7280;
  margin-top: 2px;
}

.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 27px 28px;
  text-align: center;
}

.trust-strip p {
  color: #656b76;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 18px;
}

.trust-strip div {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(20px, 5vw, 72px);
  color: #565d68;
  font: 700 15px var(--font-head);
}

.section {
  max-width: 1180px;
  margin: auto;
  padding: 120px 28px;
}

.section-heading {
  margin-bottom: 55px;
}

.section-heading h2 {
  font-size: clamp(37px, 5vw, 58px);
}

.section-heading.centered {
  text-align: center;
}

.section-heading>p:last-child {
  color: var(--muted);
  margin-top: 16px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  min-height: 335px;
  overflow: hidden;
  position: relative;
}

.feature-card h3 {
  font: 700 22px var(--font-head);
  letter-spacing: -0.025em;
  margin: 22px 0 10px;
}

.feature-card>p {
  color: var(--muted);
  line-height: 1.65;
  max-width: 500px;
  margin: 0;
}

.feature-card.mint {
  background: #e8f8ee;
}

.feature-card.dark {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.feature-card.wide {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  align-items: center;
  gap: 50px;
  min-height: 310px;
}

.feature-card.dark p {
  color: #aeb4bf;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 20px;
}

.feature-icon.lavender {
  background: var(--lavender);
}

.feature-icon.peach {
  background: var(--peach);
}

.dark-icon {
  background: #2c3340;
  color: var(--green);
}

.mini-phone {
  width: 63%;
  min-width: 280px;
  margin: 30px auto -80px;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 19px;
  box-shadow: 0 12px 40px rgba(33, 50, 41, 0.12);
}

.phone-top {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  margin-bottom: 20px;
}

.service-line {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 13px 0;
}

.service-line>span {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #f0f1f3;
}

.service-line p {
  flex: 1;
  margin: 0;
}

.service-line b,
.service-line small {
  display: block;
  font-size: 9px;
}

.service-line small {
  color: #6b7280;
  margin-top: 2px;
}

.schedule-bars {
  margin-top: 45px;
  display: grid;
  gap: 13px;
}

.schedule-bars span {
  width: var(--w);
  background: #f7f6ff;
  border-inline-start: 4px solid var(--violet);
  border-radius: 4px;
  padding: 14px;
  font-size: 12px;
  font-weight: 700;
}

.decision-row {
  position: absolute;
  bottom: 32px;
  inset-inline-start: 32px;
  inset-inline-end: 32px;
  display: flex;
  gap: 10px;
}

.decision-row button {
  flex: 1;
  padding: 13px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  font-weight: 700;
}

.decision-row button:last-child {
  background: var(--ink);
  color: #fff;
}

.week-preview {
  background: #222936;
  border: 1px solid #353d4a;
  border-radius: 18px;
  padding: 24px;
}

.week-days,
.slot-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.week-days span {
  color: #9098a6;
  text-align: center;
  font-size: 12px;
  padding: 10px;
  border-radius: 9px;
}

.week-days small {
  display: block;
  font-size: 16px;
  color: #fff;
  margin-top: 5px;
}

.week-days .selected {
  background: var(--green);
  color: #2d6042;
}

.week-days .selected small {
  color: var(--ink);
}

.slot-row {
  margin-top: 18px;
}

.slot-row span {
  border: 1px solid #3d4654;
  color: #c5cad2;
  border-radius: 8px;
  padding: 11px 6px;
  text-align: center;
  font-size: 10px;
}

.slot-row .selected {
  background: #fff;
  color: var(--ink);
}

.steps {
  padding-top: 60px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.steps-grid article {
  padding: 35px 30px;
  border-top: 1px solid #d8dadf;
}

.steps-grid span {
  color: #5f6672;
  font-size: 13px;
  font-weight: 700;
}

.steps-grid h3 {
  font: 700 20px var(--font-head);
  margin: 35px 0 8px;
}

.steps-grid p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.pricing {
  max-width: 1050px;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: center;
}

.price-grid article {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px;
  background: #fff;
  position: relative;
}

.price-grid article.popular {
  background: #f0f9f3;
  border-color: #cfe8d8;
  padding-top: 42px;
  box-shadow: 0 20px 50px rgba(36, 92, 59, 0.08);
}

.popular-label {
  position: absolute;
  inset-inline-end: 18px;
  top: 18px;
  background: var(--green);
  padding: 6px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 800;
}

.price-grid article>p {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #565d68;
}

.price-grid h3 {
  font: 800 36px var(--font-head);
  margin: 14px 0 2px;
  letter-spacing: -0.04em;
}

.price-grid article>span {
  color: #5f6672;
  font-size: 15px;
}

.price-grid ul {
  padding: 20px 0 22px;
  margin: 20px 0;
  border-top: 1px solid var(--line);
  list-style: none;
  display: grid;
  gap: 12px;
  font-size: 14px;
}

.price-grid li:before {
  content: "✓";
  color: var(--green-dark);
  font-weight: 800;
  margin-inline-end: 8px;
}

.price-grid .btn {
  width: 100%;
}

.final-cta {
  max-width: 1180px;
  margin: 0 auto 80px;
  border-radius: 28px;
  background: var(--ink);
  color: #fff;
  padding: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.final-cta h2 {
  font-size: clamp(34px, 4vw, 52px);
}

.final-cta .eyebrow {
  color: var(--green);
}

/* dialogs + cookie */
dialog {
  border: 0;
  padding: 0;
  box-shadow: 0 30px 100px rgba(15, 20, 31, 0.3);
}

dialog::backdrop {
  background: rgba(15, 20, 30, 0.62);
  backdrop-filter: blur(4px);
}

.auth-dialog {
  width: min(920px, calc(100% - 32px));
  border-radius: 24px;
  overflow: hidden;
  grid-template-columns: 0.85fr 1.15fr;
}

.auth-dialog[open] {
  display: grid;
}

.dialog-close {
  position: absolute;
  inset-inline-end: 16px;
  top: 14px;
  border: 0;
  background: #f1f2f4;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 21px;
  z-index: 2;
}

.auth-side {
  background: var(--ink);
  color: #fff;
  padding: 55px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-mark.large {
  width: 52px;
  height: 52px;
  font-size: 25px;
  border: 1px solid #3a424f;
}

.auth-side h2 {
  font: 800 34px/1.1 var(--font-head);
  letter-spacing: -0.04em;
  margin: 28px 0 16px;
}

.auth-side p {
  color: #afb5c0;
  line-height: 1.6;
}

.auth-side>div {
  margin-top: 50px;
  color: #d6dae0;
  font-size: 14px;
}

.auth-side>div span {
  color: var(--green);
  margin-inline-end: 5px;
}

.auth-form {
  padding: 48px 52px;
  background: #fff;
}

.auth-form h2,
.modal-head h2 {
  font: 800 30px var(--font-head);
  margin: 0 0 8px;
}

.auth-form>p:not(.eyebrow, .auth-switch, .form-error) {
  color: var(--muted);
  margin: 0 0 25px;
}

.google-btn {
  width: 100%;
  height: 48px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 700;
}

.google-btn b {
  font-size: 18px;
  margin-inline-end: 8px;
  color: #4285f4;
}

.divider {
  height: 35px;
  display: flex;
  align-items: center;
  color: #6b7280;
  font-size: 12px;
}

.divider:before,
.divider:after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}

.divider span {
  padding: 0 12px;
}

.auth-form label,
.form-grid label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 15px;
}

.auth-form input,
.form-grid input,
.form-grid select,
.form-grid textarea,
.toolbar select,
.toolbar input {
  width: 100%;
  border: 1px solid #dfe1e6;
  border-radius: 9px;
  background: #fff;
  padding: 12px 13px;
  outline: none;
}

.auth-form input:focus,
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  border-color: #7971db;
  box-shadow: 0 0 0 3px #efedff;
}

.password-field {
  position: relative;
}

.password-field button {
  position: absolute;
  inset-inline-end: 5px;
  top: 5px;
  width: 36px;
  height: 36px;
  border: 0;
  background: none;
}

.forgot-link {
  border: 0;
  background: none;
  color: var(--violet);
  font-size: 12px;
  font-weight: 700;
  float: inline-end;
  margin-top: -10px;
}

.terms {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: start;
  font-weight: 400 !important;
}

.terms input {
  width: auto;
}

.auth-submit {
  width: 100%;
  margin-top: 8px;
}

.auth-switch {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin: 18px 0 0;
}

.auth-switch button {
  border: 0;
  background: none;
  color: var(--violet);
  font-weight: 700;
}

.form-error {
  color: #b42318 !important;
  font-size: 13px;
  margin: 12px 0 0 !important;
  min-height: 16px;
}

.edit-dialog {
  width: min(620px, calc(100% - 30px));
  border-radius: 20px;
  background: #fff;
  max-height: 90vh;
  overflow: auto;
}

.edit-dialog form {
  padding: 32px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 25px;
}

.modal-head .dialog-close {
  position: static;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 15px;
}

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

.form-grid textarea {
  min-height: 90px;
  resize: vertical;
}

.check-label {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
}

.check-label input {
  width: auto;
}

.cookie-banner {
  position: fixed;
  z-index: 100;
  inset-inline-start: 22px;
  inset-inline-end: 22px;
  bottom: 20px;
  max-width: 850px;
  margin: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(20, 25, 35, 0.2);
  padding: 19px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.cookie-banner strong {
  font: 700 15px var(--font-head);
}

.cookie-banner p {
  font-size: 13px;
  color: var(--muted);
  margin: 5px 0;
}

.cookie-banner a {
  text-decoration: underline;
  font-size: 12px;
}

.cookie-actions {
  display: flex;
  gap: 9px;
  flex-shrink: 0;
}

.cookie-actions>button:not(.btn) {
  border: 0;
  background: none;
  font-size: 13px;
  font-weight: 700;
}

/* dashboard */
.app-shell {
  min-height: 100vh;
  background: #f6f7f8;
  display: grid;
  grid-template-columns: 245px 1fr;
}

.sidebar {
  background: #fff;
  border-inline-end: 1px solid var(--line);
  height: 100vh;
  position: sticky;
  top: 0;
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
  z-index: 40;
}

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.dashboard-brand {
  padding: 0 9px;
  margin-bottom: 0;
}

.sidebar-close {
  display: none;
  border: 0;
  background: #f1f2f4;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 19px;
  flex-shrink: 0;
}

.sidebar-backdrop {
  display: none;
}

.sidebar nav {
  display: grid;
  gap: 5px;
}

.sidebar nav button {
  border: 0;
  background: none;
  border-radius: 9px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #656c78;
  font-size: 14px;
  font-weight: 600;
  text-align: start;
}

.sidebar nav button:hover,
.sidebar nav button.active {
  background: #f0f8f3;
  color: #286a46;
}

.sidebar nav button span {
  width: 18px;
  text-align: center;
  font-size: 16px;
}

.sidebar nav i {
  margin-inline-start: auto;
  background: #fff1d8;
  color: #8a5c00;
  border-radius: 99px;
  padding: 3px 7px;
  font-size: 12px;
  font-weight: 700;
  font-style: normal;
}

.sidebar-bottom {
  margin-top: auto;
}

.trial-card {
  background: #f2f3ff;
  border-radius: 13px;
  padding: 14px;
  margin-bottom: 13px;
}

.trial-card small {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #585c92;
  font-weight: 800;
}

.trial-card b {
  display: block;
  font-size: 13px;
  margin: 7px 0;
}

.trial-card>div {
  height: 4px;
  background: #dedff0;
  border-radius: 4px;
}

.trial-card>div i {
  display: block;
  width: 70%;
  height: 100%;
  background: var(--violet);
  border-radius: 4px;
}

.trial-card button {
  border: 0;
  background: none;
  color: var(--violet);
  font-size: 12px;
  font-weight: 700;
  padding: 9px 0 0;
}

.user-chip {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  padding: 15px 3px 5px;
  display: grid;
  grid-template-columns: 35px 1fr auto;
  gap: 9px;
  align-items: center;
  text-align: start;
}

.user-chip>span {
  width: 35px;
  height: 35px;
  border-radius: 10px;
  background: var(--peach);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}

.user-chip p {
  margin: 0;
  min-width: 0;
}

.user-chip b,
.user-chip small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-chip b {
  font-size: 12px;
}

.user-chip small {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

.dash-main {
  min-width: 0;
}

.dash-header {
  height: 105px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 clamp(22px, 4vw, 55px);
  display: flex;
  align-items: center;
}

.dash-header small {
  color: #5f6672;
  font-size: 12px;
}

.dash-header h1 {
  font: 800 25px var(--font-head);
  margin: 3px 0;
}

.header-actions {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.notification-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  position: relative;
}

.notification-btn i {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f56b5c;
  inset-inline-end: 8px;
  top: 7px;
}

.dash-menu {
  display: none;
  border: 0;
  background: none;
  font-size: 20px;
  margin-inline-end: 12px;
}

.panel-content {
  padding: 30px clamp(20px, 4vw, 55px) 70px;
  max-width: 1450px;
}

.welcome-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 25px;
}

.welcome-row h2 {
  font: 700 22px var(--font-head);
  margin: 0 0 4px;
}

.welcome-row p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
  margin-bottom: 22px;
}

.dash-stat,
.dash-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
}

.dash-stat {
  padding: 18px;
}

.dash-stat small {
  color: #5a6170;
  font-size: 12px;
  font-weight: 600;
}

.dash-stat strong {
  display: block;
  font: 800 25px var(--font-head);
  margin: 8px 0 3px;
}

.dash-stat em {
  font-size: 12px;
  color: #3f9463;
  font-style: normal;
  font-weight: 700;
}

.dash-grid {
  display: grid;
  grid-template-columns: 1.55fr 0.75fr;
  gap: 17px;
}

.dash-card {
  padding: 22px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
}

.card-head h3 {
  font: 700 16px var(--font-head);
  margin: 0;
}

.card-head button,
.card-head a {
  border: 0;
  background: none;
  color: var(--violet);
  font-size: 12px;
  font-weight: 700;
}

.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
}

.empty-state .empty-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: #f0f1f3;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  font-size: 21px;
}

.empty-state h3 {
  color: var(--ink);
  font: 700 16px var(--font-head);
  margin: 0 0 6px;
}

.empty-state p {
  font-size: 14px;
  max-width: 300px;
  margin: 0 auto 18px;
  line-height: 1.55;
}

.booking-row {
  display: grid;
  grid-template-columns: 64px 42px 1fr auto;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 13px 0;
}

.booking-row:first-child {
  border-top: 0;
}

.b-date {
  font-size: 13px;
  font-weight: 700;
  color: #1f2430;
  line-height: 1.3;
}

.booking-row .avatar {
  width: 39px;
  height: 39px;
  font-size: 12px;
}

.booking-row p {
  margin: 0;
  min-width: 0;
}

.booking-row p b,
.booking-row p small {
  display: block;
}

.booking-row p b {
  font-size: 14px;
}

.booking-row p small {
  font-size: 13px;
  color: #5f6672;
  margin-top: 3px;
}

.booking-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.b-time {
  font-size: 13px;
  font-weight: 700;
  color: #5f6672;
}

.booking-actions button {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 700;
}

.booking-actions .approve {
  background: #e8f8ee;
  color: #287349;
  border-color: #d1eedb;
}

.bookings-table {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 6px 20px;
}

.toolbar {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 18px;
  align-items: center;
}

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

.toolbar select,
.toolbar input {
  width: auto;
  font-size: 13px;
}

.list-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 18px;
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 15px;
}

.drag-handle {
  color: #adb1b8;
}

.list-card h3 {
  font: 700 15px var(--font-head);
  margin: 0 0 5px;
}

.list-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.list-actions {
  display: flex;
  gap: 6px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
}

.danger {
  color: #b42318;
}

.add-card {
  width: 100%;
  border: 1px dashed #cfd2d8;
  background: transparent;
  border-radius: 15px;
  padding: 20px;
  color: #686f7b;
  font-weight: 700;
}

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

.day-row {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: start;
  gap: 18px;
}

.day-row>label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}

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

.interval-pill {
  background: #f5f6f8;
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 12px;
}

.interval-pill button {
  border: 0;
  background: none;
  color: #a14343;
  margin-inline-start: 8px;
}

.day-row>.icon-btn {
  margin-top: 0;
}

.settings-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 18px;
}

.settings-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 24px;
}

.settings-card h3 {
  font: 700 16px var(--font-head);
  margin: 0 0 20px;
}

.color-field {
  display: flex !important;
  grid-template-columns: 42px 1fr;
  align-items: center;
}

.color-field input[type="color"] {
  height: 42px;
  padding: 3px;
}

.public-preview {
  position: sticky;
  top: 20px;
}

.preview-phone {
  border: 8px solid var(--ink);
  border-radius: 28px;
  background: #fff;
  overflow: hidden;
  min-height: 520px;
  box-shadow: var(--shadow);
}

.preview-cover {
  height: 120px;
  background: var(--preview-color, #222);
  display: grid;
  place-items: end start;
  padding: 18px;
  color: #fff;
}

.preview-cover h3 {
  margin: 0;
  font: 800 22px var(--font-head);
}

.preview-body {
  padding: 18px;
}

.preview-service {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.preview-service b,
.preview-service small {
  display: block;
  font-size: 12px;
}

.preview-service small {
  color: var(--muted);
  margin-top: 4px;
}

.qr-inline {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f7f7f8;
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 4px;
}

.qr-inline canvas {
  border-radius: 8px;
  background: #fff;
  flex-shrink: 0;
}

.qr-inline small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 8px;
}

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

.plan-option {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.plan-option.active {
  border-color: #68bd8b;
  background: #f0faf4;
}

.plan-option h4 {
  margin: 0 0 5px;
  font: 800 16px var(--font-head);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.plan-option p {
  color: var(--muted);
  font-size: 12px;
  flex: 1;
  margin: 0 0 12px;
}

.plan-option .btn {
  width: 100%;
  font-size: 12px;
  padding: 10px;
  margin-top: auto;
}

/* public booking */
.public-page {
  min-height: 100vh;
  background: #f5f6f7;
}

.public-header {
  height: 70px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 max(22px, calc((100% - 1000px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.public-header>a:last-child {
  font-size: 12px;
  font-weight: 700;
  color: #6f7580;
}

.public-business {
  max-width: 1000px;
  margin: auto;
  padding: 50px 22px 90px;
}

.business-hero {
  background: var(--business-color, #202631);
  color: #fff;
  border-radius: 24px;
  padding: 45px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  min-height: 230px;
}

.business-hero h1 {
  font: 800 clamp(33px, 5vw, 52px) var(--font-head);
  letter-spacing: -0.04em;
  margin: 0 0 8px;
}

.business-hero p {
  color: #d3d7dd;
  margin: 0;
  max-width: 530px;
}

.business-contact {
  text-align: end;
  font-size: 13px;
  line-height: 1.7;
}

.booking-flow {
  margin-top: -28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(20, 25, 35, 0.08);
  padding: 30px;
  position: relative;
}

.flow-progress {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}

.flow-progress i {
  height: 4px;
  flex: 1;
  border-radius: 4px;
  background: #eceef0;
}

.flow-progress i.active {
  background: var(--business-accent, #6c5ce7);
}

.booking-flow h2 {
  font: 700 23px var(--font-head);
  margin: 0 0 6px;
}

.booking-flow>p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 23px;
}

.public-services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.public-service {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  padding: 17px;
  text-align: start;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
}

.public-service:hover,
.public-service.selected {
  border-color: var(--business-accent, #6c5ce7);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--business-accent, #6c5ce7) 12%, transparent);
}

.public-service b {
  font-size: 15px;
}

.public-service span {
  font-weight: 800;
}

.public-service small {
  color: var(--muted);
  font-size: 12px;
  grid-column: 1/-1;
}

.booking-customer {
  max-width: 600px;
}

.flow-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
}

.success-booking {
  text-align: center;
  padding: 30px 10px;
}

.success-booking>span {
  width: 70px;
  height: 70px;
  border-radius: 22px;
  background: #e6f8ed;
  color: #2a7c4e;
  display: grid;
  place-items: center;
  font-size: 32px;
  margin: 0 auto 20px;
}

.success-booking h2 {
  margin-bottom: 10px;
}

.success-booking p {
  color: var(--muted);
  line-height: 1.6;
}

.public-page footer {
  text-align: center;
  color: #5f6672;
  font-size: 12px;
  padding: 20px;
}

@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 55px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-text {
    margin-inline-start: auto;
    margin-inline-end: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-product {
    max-width: 720px;
    margin: 25px auto 0;
  }

  .feature-card.wide {
    grid-template-columns: 1fr;
  }

  .dash-stats {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .public-preview {
    position: static;
  }

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

@media (max-width: 760px) {
  .site-header {
    height: 66px;
    padding: 0 18px;
    background: rgba(251, 250, 248, 0.92);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 65px;
    inset-inline-start: 12px;
    inset-inline-end: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 17px;
    display: grid;
    gap: 3px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: 0.2s;
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .main-nav a,
  .main-nav button {
    padding: 12px !important;
    text-align: start;
    justify-content: flex-start;
  }

  .hero {
    padding: 54px 18px 65px;
    min-height: auto;
  }

  .hero h1 {
    font-size: clamp(39px, 12vw, 56px);
  }

  .hero-text {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 18px;
  }

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

  .mock-body aside {
    display: none;
  }

  .mock-content {
    padding: 20px 13px;
  }

  .floating-card {
    inset-inline-end: 8px;
    bottom: -40px;
  }

  .trust-strip {
    margin-top: 30px;
  }

  .section {
    padding: 85px 18px;
  }

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

  .feature-card.wide {
    grid-column: auto;
  }

  .mini-phone {
    width: 100%;
    min-width: 0;
  }

  .steps-grid,
  .price-grid {
    grid-template-columns: 1fr;
  }

  .final-cta {
    margin: 0 18px 50px;
    padding: 38px 24px;
    display: block;
  }

  .final-cta .btn {
    margin-top: 25px;
  }

  .auth-dialog[open] {
    display: block;
  }

  .auth-side {
    display: none;
  }

  .auth-form {
    padding: 44px 25px 30px;
  }

  .cookie-banner {
    inset-inline-start: 10px;
    inset-inline-end: 10px;
    bottom: 10px;
    display: block;
  }

  .cookie-actions {
    margin-top: 14px;
    justify-content: flex-end;
  }

  .sidebar {
    position: fixed;
    inset-inline-start: 0;
    top: 0;
    width: 255px;
    transform: translateX(-105%);
    transition: 0.25s;
    box-shadow: var(--shadow);
  }

  .sidebar.open {
    transform: none;
  }

  .sidebar-close {
    display: block;
  }

  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 20, 30, 0.5);
    z-index: 39;
    opacity: 0;
    transition: 0.2s;
  }

  .sidebar-backdrop.open {
    display: block;
    opacity: 1;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .dash-header {
    height: 85px;
    padding: 0 16px;
  }

  .dash-menu {
    display: flex;
  }

  .dash-header h1 {
    font-size: 20px;
  }

  .qr-inline {
    flex-direction: column;
    text-align: center;
  }

  .header-actions .btn {
    display: none;
  }

  .panel-content {
    padding: 22px 14px 50px;
  }

  .welcome-row {
    align-items: start;
    gap: 15px;
  }

  .welcome-row>.btn {
    font-size: 0;
    width: 42px;
    height: 42px;
    padding: 0;
  }

  .welcome-row>.btn:after {
    content: "+";
    font-size: 20px;
  }

  .dash-stats {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .dash-stat {
    padding: 14px;
  }

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

  .toolbar {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .toolbar>div {
    display: flex;
    gap: 8px;
    margin-top: 0;
  }

  .toolbar>div>* {
    flex: 1;
    min-width: 0;
  }

  .toolbar>button {
    width: 100%;
  }

  .list-card {
    grid-template-columns: 1fr auto;
  }

  .drag-handle {
    display: none;
  }

  .day-row {
    grid-template-columns: 1fr auto;
  }

  .intervals {
    grid-column: 1/-1;
    grid-row: 2;
  }

  .settings-card {
    padding: 18px;
  }

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

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

  .public-header {
    padding: 0 16px;
  }

  .public-header>a:last-child {
    display: none;
  }

  .public-business {
    padding: 20px 12px 60px;
  }

  .business-hero {
    border-radius: 18px;
    padding: 28px 22px;
    display: block;
    min-height: 210px;
  }

  .business-contact {
    text-align: start;
    margin-top: 25px;
  }

  .booking-flow {
    padding: 22px 15px;
    border-radius: 17px;
  }

  .public-services {
    grid-template-columns: 1fr;
  }

  .booking-row {
    grid-template-columns: 46px 36px 1fr auto;
    gap: 8px;
  }

  .b-date {
    font-size: 12px;
  }

  .b-time {
    display: none;
  }

  .booking-actions {
    grid-column: 4;
  }

  .bookings-table {
    padding: 6px 13px;
  }
}

@media (max-width: 420px) {
  .stat-row {
    gap: 5px;
  }

  .stat-row>div {
    padding: 9px 6px;
  }

  .appointment {
    grid-template-columns: 28px 1fr auto;
  }

  .appointment time {
    display: none;
  }

  .feature-card {
    padding: 25px;
  }

  .week-preview {
    padding: 15px;
  }

  .week-days,
  .slot-row {
    gap: 5px;
  }

  .dash-stats {
    grid-template-columns: 1fr;
  }

  .flow-actions {
    gap: 8px;
  }

  .flow-actions .btn {
    flex: 1;
    padding: 12px 9px;
  }

  .modal-actions .btn {
    flex: 1;
  }

  .edit-dialog form {
    padding: 24px 18px;
  }
}

.toast-region {
  position: fixed;
  inset-inline-end: 18px;
  top: 18px;
  z-index: 200;
  display: grid;
  gap: 8px;
}

.toast {
  background: var(--ink);
  color: #fff;
  border-radius: 11px;
  padding: 13px 17px;
  box-shadow: var(--shadow);
  font-size: 13px;
  animation: toast-in 0.25s ease;
}

.toast.error {
  background: #9b2c2c;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

/* ============ Bookora — aggiunte: campi extra, dettaglio prenotazione, calendario a settimane ============ */

/* Badge di stato mancanti (rifiutata/annullata) */
.rejected {
  background: #fdeceb;
  color: #b3352a;
}

.cancelled {
  background: #f1f2f4;
  color: #6b7280;
}

/* Editor campi aggiuntivi nel modulo servizio */
.extra-fields-section {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 20px;
}

.extra-fields-title {
  display: block;
  font: 700 14px var(--font-head);
  margin-bottom: 4px;
}

.extra-fields-hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 14px;
}

.extra-fields-empty {
  font-size: 13px;
  color: var(--muted);
  background: #f7f7f8;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 12px;
}

.extra-field-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  gap: 8px;
  align-items: center;
  background: #f7f7f8;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 8px;
}

.extra-field-row .ef-label,
.extra-field-row .ef-type {
  padding: 9px 10px;
  border: 1px solid #dfe1e6;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
}

.extra-field-row .ef-options {
  grid-column: 1/-1;
  padding: 9px 10px;
  border: 1px solid #dfe1e6;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
}

.extra-field-row .ef-options.hidden {
  display: none;
}

.extra-field-row .ef-required {
  grid-column: 1/-1;
  font-size: 12px;
  font-weight: 600;
  color: #4a4f58;
}

.extra-field-row .ef-remove {
  width: 30px;
  height: 30px;
  font-size: 15px;
  justify-self: end;
}

#add-extra-field {
  margin-top: 2px;
  padding: 13px;
}

/* Dialog dettaglio prenotazione */
#booking-dialog .booking-detail-inner {
  padding: 24px 18px;
}

.booking-detail {
  display: grid;
  gap: 0;
}

.bd-row {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.bd-row:last-of-type {
  border-bottom: 0;
}

.bd-row small {
  display: block;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #5f6672;
  font-weight: 800;
  margin-bottom: 4px;
}

.bd-row p {
  margin: 0;
  font-size: 14px;
  color: #20242c;
}

.booking-detail textarea {
  width: 100%;
  border: 1px solid #dfe1e6;
  border-radius: 9px;
  padding: 11px;
  margin-top: 8px;
  min-height: 70px;
  font: inherit;
}

.booking-detail label.full {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-top: 16px;
}

.bd-owner-message {
  margin-top: 14px;
  padding: 14px;
  border-radius: 10px;
  background: #f4f5f7;
}

.bd-owner-message small {
  display: block;
  font-size: 12px;
  color: #5f6672;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 5px;
}

.bd-owner-message p {
  margin: 0;
  font-size: 14px;
}

#bd-reject {
  color: #a14343;
  border-color: #f0d3d0;
}

.booking-row {
  cursor: pointer;
}

.booking-row:hover {
  background: #fafbfc;
}

/* Icona "tre puntini" costruita in CSS: resta sempre dritta, indipendentemente da font/browser */
.dots-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.dots-icon span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #6b7280;
  display: block;
}

/* ============ Boot loader: evita il flash della pagina di login al refresh ============ */
#boot-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
}

#boot-loader.hidden {
  display: none;
}

#boot-loader .brand-mark {
  width: 52px;
  height: 52px;
  font-size: 24px;
  border-radius: 16px;
  animation: boot-pulse 1.1s ease-in-out infinite;
}

@keyframes boot-pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.55;
    transform: scale(0.94);
  }
}

/* ============ Esci: pulsante più leggibile ============ */
.logout-link {
  width: 100%;
  border: 0;
  background: none;
  color: #b3352a;
  font-size: 14px;
  font-weight: 700;
  text-align: start;
  padding: 12px 10px;
  margin-top: 2px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logout-link:before {
  content: "⏻";
  font-size: 14px;
}

.logout-link:hover {
  background: #fdeceb;
}

/* ============ Riordino servizi (sposta su/giù al posto dei puntini non funzionanti) ============ */
.reorder-controls {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reorder-controls button {
  width: 26px;
  height: 22px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1;
  color: #4a4f58;
}

.reorder-controls button:disabled {
  opacity: 0.3;
  cursor: default;
}

/* ============ Zona pericolosa (elimina account) ============ */
.danger-zone {
  border-color: #f0d3d0 !important;
}

.danger-zone h3 {
  color: #b3352a;
}

.danger-text {
  color: #5f6672;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 18px;
}

.btn-danger {
  background: #b3352a;
  border-color: #b3352a;
  color: #fff;
}

.btn-danger:hover {
  background: #962b22;
}

#delete-account-reauth label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

#delete-account-reauth input {
  width: 100%;
  border: 1px solid #dfe1e6;
  border-radius: 9px;
  padding: 12px 13px;
}

/* ============ Notifiche: rende chiaro che è interagibile ============ */
.notification-btn {
  cursor: pointer;
  transition: 0.15s border-color;
}

.notification-btn:hover {
  border-color: #b8bcc4;
  background: #fafbfc;
}

.row-hint {
  color: #5f6672;
  font-size: 12px;
  font-weight: 600;
  margin-inline-start: 8px;
}

/* ============ Calendario e orari: versione moderna, responsive ============ */
.cal-card {
  background: #fbfbfc;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  max-width: 360px;
  margin: 0 auto 4px;
}

.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.cal-nav .month-label {
  font: 800 16px var(--font-head);
  text-transform: capitalize;
  margin: 0;
  letter-spacing: -0.01em;
}

.cal-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 16px;
  flex-shrink: 0;
  transition: 0.15s;
}

.cal-nav-btn:hover:not(:disabled) {
  border-color: var(--business-accent, #6c5ce7);
  color: var(--business-accent, #6c5ce7);
}

.cal-nav-btn:disabled {
  opacity: 0.25;
  cursor: default;
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

.cal-weekdays span {
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: #8a8f99;
  text-transform: uppercase;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-day {
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  min-height: 34px;
  color: #1f2430;
  transition: 0.15s;
}

.cal-day:hover:not(:disabled):not(.selected) {
  background: #eef0f2;
}

.cal-day:disabled {
  opacity: 0.24;
  cursor: default;
}

.cal-day.selected {
  background: var(--business-accent, #6c5ce7);
  color: #fff;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--business-accent, #6c5ce7) 45%, transparent);
}

.cal-day.today:not(.selected) {
  box-shadow: inset 0 0 0 2px var(--business-accent, #6c5ce7);
  color: var(--business-accent, #6c5ce7);
}

.cal-day.empty {
  visibility: hidden;
}

.slot-list-wrap {
  margin-top: 22px;
}

.slot-loading,
.slot-empty {
  color: var(--muted);
  font-size: 14px;
  padding: 20px 0;
  text-align: center;
}

/* Tab per fascia oraria (Mattina / Pomeriggio / Sera): mostra solo un
   gruppo di orari alla volta, invece di un unico blocco enorme. */
.period-tabs {
  display: flex;
  gap: 7px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.period-tab {
  flex: 0 0 auto;
  padding: 9px 16px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: #5f6672;
  transition: 0.15s;
}

.period-tab:hover {
  border-color: var(--business-accent, #6c5ce7);
}

.period-tab.active {
  background: var(--business-accent, #6c5ce7);
  border-color: transparent;
  color: #fff;
}

.slot-session {
  margin-bottom: 0;
}

.slot-session-range {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #8a8f99;
  margin-bottom: 9px;
}

/* Riga unica scorrevole tipo slider: occupa poco spazio, niente più
   pareti di pulsanti che appaiono all'improvviso sotto il calendario. */
.slot-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 2px 2px 10px;
  scrollbar-width: thin;
}

.slot-scroll::-webkit-scrollbar {
  height: 5px;
}

.slot-scroll::-webkit-scrollbar-thumb {
  background: #dfe1e6;
  border-radius: 99px;
}

.slot-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px 17px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: 0.15s;
  color: #1f2430;
}

.slot-chip:hover {
  border-color: var(--business-accent, #6c5ce7);
  color: var(--business-accent, #6c5ce7);
}

.slot-chip.selected {
  background: var(--business-accent, #6c5ce7);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--business-accent, #6c5ce7) 40%, transparent);
}

/* ============ Tasti mobile più grandi (hamburger, apri menu, ecc.) ============ */
.dash-menu {
  width: 44px;
  height: 44px;
  font-size: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.dash-menu:hover {
  background: #f1f2f4;
}

.menu-toggle {
  width: 48px;
  height: 48px;
}

.sidebar-close {
  width: 40px;
  height: 40px;
  font-size: 21px;
}

.notification-btn {
  width: 44px;
  height: 44px;
}

.icon-btn {
  min-width: 36px;
  min-height: 36px;
}

@media (max-width: 760px) {
  .cal-day {
    min-height: 38px;
    font-size: 15px;
  }

  .slot-chip {
    padding: 13px 15px;
    font-size: 14px;
  }

  .period-tab {
    padding: 8px 14px;
    font-size: 13px;
  }

  /* Link pubblico: rimane visibile anche su mobile, come icona compatta */
  .header-actions .btn {
    display: none;
  }

  .header-actions .icon-link {
    display: inline-flex;
  }
}

.icon-link {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: #fff;
}

.booking-detail label.full .hint {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
  text-transform: none;
  letter-spacing: 0;
}

/* ==========================================================================
   Revisione pre-lancio: stati, onboarding, prenotazioni, servizi, orari,
   piano/prova, accessibilità. Queste regole sono in coda di proposito:
   rifiniscono i componenti esistenti senza riscriverli.
   ========================================================================== */

:root {
  --warn-bg: #fff6e0;
  --warn-ink: #7a5200;
  --danger-bg: #fdeceb;
  --danger-ink: #a3302a;
  --focus: #5a49d6;
}

/* Accessibilità: focus visibile per tastiera, mai rimosso */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.booking-row:focus-visible {
  outline-offset: -2px;
  border-radius: 10px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Testi minuscoli (9–10px) portati a una soglia leggibile */
.dash-header small,
.dash-stat em,
.card-head button,
.card-head a,
.trial-card small,
.trial-card button,
.bd-row small,
.bd-owner-message small,
.booking-actions button {
  font-size: 13px;
}
.sidebar nav i {
  font-size: 12px;
}
.trial-card small {
  font-size: 12px;
}
.dash-stat em.warn {
  color: #a16c00;
}
.form-grid .hint,
.hint {
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
}
.field-hint {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.muted-text {
  color: var(--muted);
  font-size: 13px;
}
.muted-text.block {
  display: block;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 14px;
}

/* Avvisi (prova in scadenza, errori di caricamento, nessun servizio visibile) */
.notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 14px;
  margin-bottom: 18px;
  border: 1px solid transparent;
}
.notice b {
  display: block;
  font-size: 15px;
}
.notice p {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.5;
}
.notice .btn {
  flex-shrink: 0;
}
.notice-warn {
  background: var(--warn-bg);
  border-color: #f4e0ab;
  color: var(--warn-ink);
}
.notice-danger {
  background: var(--danger-bg);
  border-color: #f3c9c5;
  color: var(--danger-ink);
}

/* Caricamento */
.loading-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 70px 20px;
  color: var(--muted);
  font-size: 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
}
.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #dcdde3;
  border-top-color: var(--violet);
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Intestazioni di pannello: il pulsante resta con la sua etichetta anche su mobile */
.welcome-row {
  gap: 16px;
  flex-wrap: wrap;
}
.welcome-row p {
  font-size: 14px;
  max-width: 62ch;
  line-height: 1.5;
}
.welcome-row > .btn,
.welcome-row > .btn:after {
  font-size: 15px;
  content: none;
}
@media (max-width: 760px) {
  .welcome-row > .btn {
    width: 100%;
    height: auto;
    padding: 13px 18px;
    font-size: 15px;
  }
  .welcome-row > .btn:after {
    content: none;
  }
  .notice {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Schede, barre di avanzamento, piccole etichette */
.dash-card {
  margin-bottom: 17px;
}
.dash-grid .dash-card {
  margin-bottom: 0;
}
.card-sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.card-hint {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 12px 0 16px;
}
.count-pill {
  display: inline-block;
  min-width: 22px;
  padding: 2px 7px;
  margin-inline-start: 6px;
  border-radius: 99px;
  background: #fff1d8;
  color: #8a5c00;
  font: 700 13px var(--font-body);
  text-align: center;
  vertical-align: middle;
}
.progress {
  height: 6px;
  background: #e8e9f2;
  border-radius: 6px;
  overflow: hidden;
}
.progress > i {
  display: block;
  height: 100%;
  background: var(--violet);
  border-radius: 6px;
  transition: width 0.3s ease;
}
.pending-card {
  border-color: #f4e0ab;
  background: linear-gradient(#fffdf6, #fff 60%);
}
.link-box {
  padding: 12px 14px;
  border-radius: 10px;
  background: #f4f5f7;
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.quick-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.quick-list {
  display: grid;
  gap: 8px;
}
.quick-list .add-card {
  padding: 14px;
  font-size: 14px;
}

/* Primo utilizzo: lista di configurazione */
.onboarding .progress {
  margin: 4px 0 8px;
}
.setup-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.setup-list li {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.setup-list li:first-child {
  border-top: 0;
}
.setup-list b {
  display: block;
  font-size: 15px;
}
.setup-list small {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-top: 2px;
  line-height: 1.45;
}
.setup-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  background: #eceef2;
  color: #4a505c;
}
.setup-list li.next .setup-check {
  background: var(--violet);
  color: #fff;
}
.setup-list li.done .setup-check {
  background: #dff5e8;
  color: #1e7a4b;
}
.setup-list li.done b {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: #c4c8d0;
}
.setup-done-label {
  font-size: 13px;
  font-weight: 700;
  color: #1e7a4b;
}
@media (max-width: 560px) {
  .setup-list li {
    grid-template-columns: 30px 1fr;
  }
  .setup-list li .btn,
  .setup-list li .setup-done-label {
    grid-column: 2;
    justify-self: start;
  }
}

/* Righe prenotazione: data/ora leggibili, stato sempre visibile */
.booking-row {
  grid-template-columns: 84px 40px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px 4px;
}
.booking-row .b-date {
  display: grid;
  gap: 2px;
}
.booking-row .b-date b {
  font-size: 14px;
}
.booking-row .b-date small {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}
.booking-row p b,
.booking-row p small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.booking-row.is-past {
  opacity: 0.72;
}
.booking-actions {
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.row-hint {
  font-size: 13px;
  font-weight: 700;
  color: var(--violet);
}
@media (max-width: 560px) {
  .booking-row {
    grid-template-columns: 62px minmax(0, 1fr) auto;
  }
  .booking-row .avatar {
    display: none;
  }
}

/* Tab e filtri prenotazioni */
.booking-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 14px;
  scrollbar-width: none;
}
.booking-tabs::-webkit-scrollbar {
  display: none;
}
.booking-tab {
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 99px;
  padding: 9px 15px;
  font-size: 14px;
  font-weight: 700;
  color: #4c5260;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.booking-tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.tab-count {
  font-size: 12px;
  font-weight: 700;
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 99px;
  background: #eceef2;
  color: #4a505c;
  text-align: center;
}
.booking-tab.active .tab-count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.tab-count.alert {
  background: #fff1d8;
  color: #8a5c00;
}
.booking-tab.active .tab-count.alert {
  background: #ffd27a;
  color: #5a3b00;
}
.toolbar-bookings > div {
  flex: 1;
  flex-wrap: wrap;
}
.toolbar-bookings input[type="search"] {
  flex: 1 1 220px;
  min-width: 0;
}
.toolbar input,
.toolbar select {
  font-size: 14px;
}

/* Servizi */
.service-card {
  grid-template-columns: auto minmax(0, 1fr) auto;
}
.service-card.is-hidden {
  background: #fafafb;
}
.service-card.is-hidden .service-info h3,
.service-card.is-hidden .service-meta {
  opacity: 0.6;
}
.service-info h3 {
  font-size: 16px;
}
.service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 14px !important;
  color: var(--ink) !important;
  font-weight: 600;
}
.service-meta span + span::before {
  content: "·";
  margin-inline-end: 14px;
  color: #b5b9c2;
}
.service-desc {
  margin-top: 6px !important;
  font-size: 14px !important;
  line-height: 1.45;
}
.list-actions {
  align-items: center;
}
.switch {
  width: 44px;
  height: 26px;
  border: 0;
  border-radius: 99px;
  background: #cfd3da;
  position: relative;
  padding: 0;
  transition: background 0.2s;
  flex-shrink: 0;
}
.switch span {
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s;
}
.switch.on {
  background: #2f9a63;
}
.switch.on span {
  transform: translateX(18px);
}
.modal-hint {
  margin: -10px 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.extra-field-row .ef-label,
.extra-field-row input,
.extra-field-row select {
  font-size: 14px;
}

/* Orari: fasce modificabili direttamente */
.day-row {
  grid-template-columns: 140px minmax(0, 1fr) auto;
  align-items: center;
}
.day-row > label {
  font-size: 15px;
}
.day-row > label input {
  width: 18px;
  height: 18px;
  accent-color: #2f9a63;
}
.day-row.is-off {
  background: #fafafb;
}
.day-row.is-off > label {
  color: var(--muted);
}
.interval-edit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f5f6f8;
  border-radius: 10px;
  padding: 6px 6px 6px 8px;
}
.interval-edit input[type="time"] {
  border: 1px solid #dfe1e6;
  border-radius: 8px;
  background: #fff;
  padding: 8px 9px;
  font-size: 15px;
  width: auto;
}
.interval-edit .icon-btn {
  min-width: 34px;
  min-height: 34px;
}
.rules-card {
  margin-top: 18px;
}
.rules-card .form-grid select {
  font-size: 15px;
}
.auto-confirm {
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafafb;
}
.auto-confirm input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
}
.auto-confirm b {
  display: block;
  font-size: 15px;
}
@media (max-width: 760px) {
  .day-row {
    grid-template-columns: 1fr auto;
  }
  .day-row > .intervals {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .interval-edit {
    width: 100%;
    justify-content: space-between;
  }
  .interval-edit input[type="time"] {
    flex: 1;
    min-width: 0;
  }
}
.save-bar {
  position: sticky;
  bottom: 14px;
  z-index: 5;
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px 12px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(30, 35, 50, 0.1);
  font-size: 14px;
  color: var(--muted);
}
.save-bar.dirty {
  border-color: #f0c96a;
  color: #7a5200;
  font-weight: 700;
}
.btn:disabled,
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Pagina pubblica: link e anteprima */
.slug-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.slug-field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  border: 1px solid #dfe1e6;
  border-radius: 9px;
  background: #fff;
  overflow: hidden;
}
.slug-field:focus-within {
  border-color: #7971db;
  box-shadow: 0 0 0 3px #efedff;
}
.slug-prefix {
  padding: 0 0 0 13px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  max-width: 55%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.slug-field input {
  border: 0 !important;
  box-shadow: none !important;
  padding-inline-start: 2px !important;
  min-width: 0;
}
.settings-card .btn[type="submit"] {
  margin-top: 6px;
}
.preview-phone {
  min-height: 0;
}
.preview-body {
  display: grid;
  gap: 2px;
}
.pv-desc {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.5;
  color: #3f4552;
}
.pv-contact {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}
.pv-contact:empty {
  display: none;
}
.preview-body > small {
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: #5f6672;
  margin-top: 6px;
}
.preview-service b,
.preview-service small {
  font-size: 14px;
}
.pv-note {
  font-size: 13px;
  color: var(--muted);
  margin: 10px 0 0;
}
.pv-cta {
  display: block;
  margin-top: 14px;
  text-align: center;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 12px;
  border-radius: 10px;
}

/* Account e piano */
.divider-line {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}
.danger-title {
  color: #b3352a;
}
.btn-danger-outline {
  border-color: #f0d3d0;
  color: #b3352a;
  background: #fff;
}
.btn-danger-outline:hover {
  background: #fdf3f2;
}
.plan-status {
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
  background: #f2f3ff;
}
.plan-status h4 {
  font: 800 20px var(--font-head);
  margin: 10px 0 6px;
}
.plan-status p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.55;
  color: #4a505c;
}
.plan-status .progress {
  margin-top: 4px;
}
.plan-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 99px;
  background: #fff;
  color: #4a4f8c;
}
.plan-status.expired {
  background: var(--danger-bg);
}
.plan-status.expired .plan-pill {
  color: var(--danger-ink);
}
.plan-status.paid {
  background: #eaf8ef;
}
.plan-status.paid .plan-pill {
  color: #1e7a4b;
}
.plan-grid {
  grid-template-columns: 1fr 1fr;
}
.plan-option {
  position: relative;
}
.plan-option h4 small {
  font: 600 14px var(--font-body);
  color: var(--muted);
}
.plan-option p {
  font-size: 14px;
}
.plan-option .btn {
  font-size: 14px;
  padding: 12px;
}
.plan-option.best {
  border-color: #68bd8b;
  background: #f6fcf8;
}
.plan-flag {
  position: absolute;
  top: -10px;
  inset-inline-end: 12px;
  background: #1e7a4b;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 99px;
}
@media (max-width: 1000px) {
  .plan-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .plan-grid {
    grid-template-columns: 1fr;
  }
}

/* Scheda prova/piano nella sidebar */
.trial-card.expired {
  background: var(--danger-bg);
}
.trial-card.expired small {
  color: var(--danger-ink);
}
.trial-card.expired button {
  color: var(--danger-ink);
}
.trial-card.paid {
  background: #eaf8ef;
}
.trial-card.paid small,
.trial-card.paid button {
  color: #1e7a4b;
}
.trial-card button {
  font-size: 13px;
  padding-top: 8px;
}
#trial-bar i {
  transition: width 0.3s;
}

/* Dettaglio prenotazione */
.bd-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
}
.bd-source {
  font-size: 13px;
  color: var(--muted);
}
.bd-row a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.bd-cancel {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.bd-cancel .modal-actions {
  margin-top: 14px;
}

/* Pagina pubblica: contatti, info-box, azioni di conferma */
.business-contact a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.info-box {
  max-width: 560px;
  margin: 22px auto;
  padding: 18px;
  border-radius: 12px;
  background: #f4f5f7;
  text-align: start;
}
.info-box small {
  font-size: 12px;
  letter-spacing: 0.06em;
  font-weight: 800;
  color: #5f6672;
}
.info-box p {
  margin: 7px 0 12px;
  color: #252a33;
}
.info-box p:last-child {
  margin-bottom: 0;
}
.info-box input {
  width: 100%;
  padding: 11px;
  border: 1px solid #dfe1e6;
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
}
.success-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.booking-customer .form-error {
  margin: 0 0 8px !important;
}
.booking-customer input,
.booking-customer textarea,
.booking-customer select {
  font-size: 16px; /* evita lo zoom automatico di iOS */
}

/* Autenticazione */
.auth-legal {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.auth-legal a {
  text-decoration: underline;
}
.auth-form input {
  font-size: 16px;
}

/* Footer landing */
.site-footer {
  max-width: 1240px;
  margin: 0 auto;
  padding: 34px 28px 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
}
.site-footer .brand {
  font-size: 18px;
}
.site-footer nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
  font-weight: 600;
  color: #505765;
}
.site-footer nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.price-grid button.btn {
  width: 100%;
}
@media (max-width: 760px) and (min-width: 400px) {
  .dash-stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* Notifiche: in basso al centro, non coprono i pulsanti dell'intestazione */
.toast-region {
  top: auto !important;
  right: auto !important;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: min(440px, calc(100% - 28px));
  z-index: 300 !important;
  pointer-events: none;
}
.toast {
  font-size: 15px !important;
  line-height: 1.4;
  animation: toast-up 0.25s ease !important;
}
@keyframes toast-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* Pagina pubblica: selettore dell'orario (prima senza stili) */
.time-picker-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 16px;
  border: 1.5px solid #dfe1e6;
  border-radius: 12px;
  background: #fff;
  font-size: 16px;
  font-weight: 700;
  text-align: start;
  margin-top: 4px;
}
.time-picker-toggle:hover,
.time-picker-toggle.open {
  border-color: var(--business-accent, var(--violet));
}
.time-picker-arrow {
  font-style: normal;
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s;
}
.time-picker-toggle.open .time-picker-arrow {
  transform: rotate(180deg);
}
.time-picker-panel {
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
}
.time-option {
  padding: 12px 6px;
  border: 1px solid #dfe1e6;
  border-radius: 10px;
  background: #fff;
  font-size: 16px;
  font-weight: 700;
}
.time-option:hover {
  border-color: var(--business-accent, var(--violet));
}
.time-option.selected {
  background: var(--business-accent, var(--violet));
  border-color: var(--business-accent, var(--violet));
  color: #fff;
}
.slot-list-wrap {
  margin: 18px 0 6px;
}
.success-booking .info-box p {
  font-size: 15px;
  line-height: 1.55;
}
.success-booking .info-box input {
  font-size: 15px;
}

/* Rifiniture mobile dashboard */
.save-bar .btn {
  white-space: nowrap;
}
@media (max-width: 760px) {
  .toolbar-bookings > div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
  }
  .toolbar-bookings input[type="search"] {
    grid-column: 1 / -1;
  }
  .toolbar-bookings input[type="date"] {
    min-width: 0;
    width: 100%;
  }
  .toolbar-bookings .btn {
    white-space: nowrap;
    padding-inline: 16px;
  }
  .save-bar {
    bottom: 8px;
  }
}


/* ==========================================================================
   Lingue: selettore, RTL (arabo), tipografia per alfabeti non latini
   ========================================================================== */

/* Base tipografica: testo corrente 16px, righe respirabili */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  font-size: 16px;
  line-height: 1.55;
}
h1, h2, h3, h4 {
  line-height: 1.2;
  overflow-wrap: anywhere;
}
p, li, label, small {
  overflow-wrap: break-word;
}
button, .btn {
  line-height: 1.25;
}
.btn {
  font-size: 15px;
}
.btn-small {
  font-size: 14px;
}
input, select, textarea {
  font-size: 15px;
}
/* Evita lo zoom automatico di iOS nei campi */
@media (max-width: 760px) {
  input, select, textarea {
    font-size: 16px;
  }
}

/* Selettore lingua */
.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #fff;
  color: #3b4250;
  cursor: pointer;
}
.lang-switch:hover {
  border-color: #c9ccd4;
}
.lang-switch:focus-within {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px #efedff;
}
.lang-switch svg {
  flex-shrink: 0;
}
.lang-select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 0 18px 0 0;
  max-width: 130px;
  cursor: pointer;
  outline: none;
  text-overflow: ellipsis;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 7px) 55%, calc(100% - 3px) 55%;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
}
[dir="rtl"] .lang-select {
  padding: 0 0 0 18px;
  background-position: 7px 55%, 3px 55%;
}
.lang-select option {
  color: #121722;
  background: #fff;
}
.main-nav .lang-switch,
.public-header-actions .lang-switch {
  height: 38px;
}
.public-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.auth-lang {
  display: flex;
  justify-content: flex-end;
  margin: -6px 0 10px;
}
.auth-lang .lang-switch {
  height: 36px;
}
.sidebar nav button b {
  font-weight: inherit;
}
@media (max-width: 760px) {
  .main-nav .lang-switch {
    align-self: flex-start;
  }
  .public-header-actions .public-create {
    display: none;
  }
}
/* Nell'intestazione stretta del telefono resta solo il globo */
@media (max-width: 560px) {
  .compact-switch .lang-switch {
    width: 42px;
    padding: 0;
    justify-content: center;
  }
  .compact-switch .lang-select {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: none;
    opacity: 0;
    padding: 0;
  }
  .header-actions .btn {
    display: none;
  }
}

/* RTL (arabo): specchia ciò che non è già logico */
[dir="rtl"] .sidebar {
  transform: none;
}
@media (max-width: 1000px) {
  [dir="rtl"] .sidebar {
    transform: translateX(105%);
  }
  [dir="rtl"] .sidebar.open {
    transform: none;
  }
}
[dir="rtl"] .switch.on span {
  transform: translateX(-18px);
}
[dir="rtl"] .arrow,
[dir="rtl"] .feature-card .arrow {
  display: inline-block;
  transform: scaleX(-1);
}
[dir="rtl"] .reorder-controls,
[dir="rtl"] input[type="time"],
[dir="rtl"] input[type="tel"],
[dir="rtl"] input[type="email"],
[dir="rtl"] input[type="url"],
[dir="rtl"] input[type="number"],
[dir="rtl"] input[name="slug"] {
  direction: ltr;
  text-align: end;
}
[dir="rtl"] .toast-region {
  direction: rtl;
}

/* Alfabeti non latini: niente spaziatura negativa tra le lettere */
:lang(ar) *, :lang(hi) *, :lang(zh) *, :lang(ja) *, :lang(ko) * {
  letter-spacing: normal !important;
}
:lang(ar) body, :lang(hi) body {
  line-height: 1.7;
}
:lang(zh) body, :lang(ja) body, :lang(ko) body {
  line-height: 1.65;
}
:lang(ja) h1, :lang(ja) h2, :lang(zh) h1, :lang(zh) h2, :lang(ko) h1, :lang(ko) h2 {
  word-break: keep-all;
  overflow-wrap: anywhere;
}
:lang(de) h1, :lang(de) h2, :lang(nl) h1, :lang(nl) h2, :lang(sv) h1, :lang(sv) h2, :lang(fi) h1 {
  hyphens: auto;
  -webkit-hyphens: auto;
}
:lang(de) .btn, :lang(ru) .btn, :lang(uk) .btn, :lang(el) .btn, :lang(pl) .btn, :lang(cs) .btn {
  white-space: normal;
  text-align: center;
}
.interval-edit input[type="time"] {
  min-width: 0;
  padding-inline: 8px;
}
