:root {
  --app-border: #e7e9ee;
  --app-muted: #6b7280;
  --app-surface: #ffffff;
  --app-dark: #17191c;
}

html { scroll-behavior: smooth; }
body { background: #f7f8fa; color: #1f2937; }
.navbar { background: rgba(255,255,255,.96); border-bottom: 1px solid var(--app-border); backdrop-filter: blur(12px); }
.navbar-brand { font-weight: 700; letter-spacing: -.02em; }
.brand-logo-link { display: inline-flex; align-items: center; padding-top: .1rem; padding-bottom: .1rem; }
.brand-logo { display: block; width: 140px; height: auto; }
.container-narrow { max-width: 1080px; }
.page-header { padding: 2rem 0 1.25rem; }
.card { border-color: var(--app-border); box-shadow: 0 1px 2px rgba(15, 23, 42, .03); }
.card-hover { transition: transform .15s ease, box-shadow .15s ease; }
.card-hover:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15, 23, 42, .06); }
.metric-value { font-size: 1.9rem; font-weight: 700; letter-spacing: -.04em; }
.text-muted-app { color: var(--app-muted); }
.service-price { font-weight: 700; }
.slot-grid { display: flex; flex-wrap: wrap; gap: .5rem; }
.slot-input { position: absolute; opacity: 0; pointer-events: none; }
.slot-label { border: 1px solid var(--app-border); border-radius: .5rem; padding: .45rem .7rem; cursor: pointer; background: #fff; }
.slot-input:checked + .slot-label { background: #212529; border-color: #212529; color: #fff; }
.form-control, .form-select { border-color: #dfe3e8; }
.table > :not(caption) > * > * { padding-top: .9rem; padding-bottom: .9rem; }
.badge-soft { background: #eef2f7; color: #374151; font-weight: 500; }
.auth-card { max-width: 440px; margin: 3rem auto; }
.hero { padding: 4rem 0 2.5rem; }
.hero h1 { letter-spacing: -.04em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #4b5563;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; }
.eyebrow-light { color: rgba(255,255,255,.72); }

.sales-hero { padding: 6rem 0 5rem; }
.sales-hero h1 { max-width: 760px; letter-spacing: -.055em; line-height: 1.03; }
.sales-hero .lead { max-width: 680px; }
.sales-section { padding: 5rem 0; }
.section-heading { max-width: 680px; }
.section-heading h2, .sales-section h2 { letter-spacing: -.035em; }
.closing-copy { max-width: 680px; }

.product-preview {
  overflow: hidden;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 1rem;
  box-shadow: 0 22px 60px rgba(15, 23, 42, .09);
  transform: rotate(1deg);
}
.preview-topbar { padding: 1.15rem 1.25rem; border-bottom: 1px solid var(--app-border); background: #fbfbfc; }
.preview-body { padding: .75rem; }
.preview-appointment { display: flex; align-items: center; gap: .9rem; padding: 1rem .75rem; border-bottom: 1px solid #f0f1f3; }
.preview-appointment:last-of-type { border-bottom: 0; }
.preview-time { width: 50px; font-size: .82rem; font-weight: 700; color: #4b5563; }
.preview-summary { padding: .25rem .25rem .5rem; }
.preview-stat { display: flex; flex-direction: column; gap: .1rem; padding: .9rem; border-radius: .75rem; background: #f7f8fa; }
.preview-stat strong { font-size: 1.35rem; line-height: 1; }
.preview-stat span { font-size: .75rem; color: var(--app-muted); }

.feature-card { padding: 1.5rem; background: var(--app-surface); border: 1px solid var(--app-border); border-radius: .85rem; }
.icon-box { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: .75rem; background: #eef1f4; color: #20242a; font-size: 1.15rem; }
.icon-box-sm { width: 34px; height: 34px; border-radius: .6rem; font-size: .9rem; }

.steps-list { border-top: 1px solid var(--app-border); }
.step-item { display: grid; grid-template-columns: 64px 1fr; gap: 1rem; padding: 1.35rem 0; border-bottom: 1px solid var(--app-border); }
.step-number { font-size: .8rem; font-weight: 700; letter-spacing: .08em; color: #9ca3af; }

.client-callout { padding: 2.5rem; border-radius: 1rem; background: var(--app-dark); color: #fff; }
.find-header { padding-top: 4rem; padding-bottom: 2rem; }
.empty-state { border-style: dashed; background: rgba(255,255,255,.55); }
.site-footer { border-top: 1px solid var(--app-border); background: #fff; }

.account-menu {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .55rem .35rem .4rem;
  background: #fff;
  border: 1px solid var(--app-border);
}
.account-menu:hover, .account-menu:focus { background: #f7f8fa; border-color: #d7dbe1; }
.account-avatar {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #20242a;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
}
.account-dropdown { min-width: 230px; }

.dashboard-header { padding: 2.5rem 0 1.5rem; }
.dashboard-header h1 { letter-spacing: -.035em; }
.dashboard-metric {
  position: relative;
  padding: 1.35rem;
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: .8rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .025);
}
.dashboard-metric-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: .65rem;
  background: #f1f3f5;
  color: #343a40;
}
.dashboard-metric-value {
  font-size: 1.8rem;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -.045em;
  color: #17191c;
}
.dashboard-metric-money { font-size: 1.45rem; letter-spacing: -.035em; }
.dashboard-metric-note { margin-top: .45rem; font-size: .75rem; color: #8a929e; }
.dashboard-card { overflow: hidden; border-radius: .85rem; }
.dashboard-card-header { padding: 1.15rem 1.25rem; border-bottom-color: var(--app-border); }
.dashboard-appointment {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #eff1f3;
}
.dashboard-appointment:last-child { border-bottom: 0; }
.dashboard-appointment-date { display: flex; flex-direction: column; line-height: 1.1; }
.dashboard-appointment-date strong { font-size: .95rem; }
.dashboard-appointment-date span { margin-top: .28rem; color: var(--app-muted); font-size: .75rem; }
.dashboard-appointment-main { min-width: 0; }
.dashboard-appointment-price { white-space: nowrap; font-size: .86rem; font-weight: 600; }
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: .22rem .48rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 600;
}
.status-confirmed { background: #edf7ef; color: #2d6a3f; }
.status-pending { background: #fff4dc; color: #845d0a; }
.status-completed { background: #eef2f7; color: #4b5563; }
.status-cancelled { background: #f8ecee; color: #8b3a43; }
.dashboard-empty { padding: 3rem 1.5rem; text-align: center; }
.dashboard-empty-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .8rem;
  border-radius: .8rem;
  background: #f1f3f5;
  color: #6b7280;
  font-size: 1.15rem;
}
.dashboard-actions { display: flex; flex-direction: column; }
.dashboard-action {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .9rem 0;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid #eff1f3;
}
.dashboard-action:first-child { padding-top: 0; }
.dashboard-action:last-child { padding-bottom: 0; border-bottom: 0; }
.dashboard-action:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.dashboard-action-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: .65rem;
  background: #f1f3f5;
}
.dashboard-action strong, .dashboard-action small { display: block; }
.dashboard-action strong { font-size: .9rem; }
.dashboard-action small { margin-top: .1rem; color: var(--app-muted); font-size: .75rem; }
.dashboard-tip {
  display: flex;
  gap: .85rem;
  padding: 1.15rem;
  border: 1px dashed #d9dde3;
  border-radius: .8rem;
  background: rgba(255,255,255,.55);
  color: #525a65;
}
.dashboard-tip > i { margin-top: .05rem; }
.dashboard-tip strong { display: block; margin-bottom: .25rem; font-size: .85rem; color: #343a40; }

.schedule-page-header { padding-bottom: 1.5rem; }
.schedule-card { overflow: hidden; border-radius: .9rem; }
.schedule-card-header { padding: 1.2rem 1.4rem; border-bottom-color: var(--app-border); }
.schedule-note {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border: 1px solid #dce2e8;
  border-radius: .8rem;
  background: #f2f5f7;
  color: #4b5563;
  font-size: .85rem;
}
.schedule-note > i { margin-top: .08rem; }
.schedule-note strong, .schedule-note span { display: block; }
.schedule-note strong { color: #252a31; margin-bottom: .15rem; }
.schedule-week-list { padding: 0 1.4rem; }
.schedule-week-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(150px, 1fr) minmax(150px, 1fr) 130px;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 0;
  border-bottom: 1px solid #edf0f2;
}
.schedule-week-row:last-child { border-bottom: 0; }
.schedule-day { display: flex; flex-direction: column; gap: .2rem; }
.schedule-time-field .form-control { min-height: 40px; }
.schedule-closed-toggle { padding-top: 1.25rem; }
.schedule-empty {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: 2rem;
  text-align: center;
  color: var(--app-muted);
}
.schedule-empty > i { font-size: 1.4rem; margin-bottom: .35rem; }
.schedule-empty strong { color: #343a40; }
.special-date-list { padding: 0 1.25rem; }
.special-date-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #edf0f2;
}
.special-date-row:last-child { border-bottom: 0; }
.special-date-calendar {
  width: 44px;
  height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #dde2e7;
  border-radius: .65rem;
  background: #fafbfc;
  line-height: 1;
}
.special-date-calendar strong { font-size: 1rem; }
.special-date-calendar span { margin-top: .25rem; font-size: .6rem; color: var(--app-muted); }
.special-date-content { min-width: 0; }
.holiday-list { padding: 0 1.25rem; }
.holiday-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 120px auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #edf0f2;
}
.holiday-date { display: flex; flex-direction: column; line-height: 1.1; }
.holiday-date strong { font-size: .92rem; }
.holiday-date span { margin-top: .2rem; font-size: .7rem; color: var(--app-muted); }
.holiday-main { min-width: 0; }
.holiday-status { text-align: right; }
.holiday-editor { border-bottom: 1px solid #edf0f2; }
.holiday-editor-inner { margin: 0 0 1rem 70px; padding: 1rem; border-radius: .75rem; background: #f7f8fa; }

@media (max-width: 991.98px) {
  .sales-hero { padding: 4rem 0 3.5rem; }
  .sales-section { padding: 4rem 0; }
  .product-preview { transform: none; }
  .schedule-week-row { grid-template-columns: 1fr 1fr; }
  .schedule-day { grid-column: 1 / -1; }
  .schedule-closed-toggle { padding-top: 0; align-self: end; }
  .holiday-row { grid-template-columns: 58px minmax(0, 1fr) auto; }
  .holiday-status { display: none; }
  .holiday-editor-inner { margin-left: 0; }
}

@media (max-width: 575.98px) {
  .brand-logo { width: 124px; }
  .sales-hero h1 { font-size: 2.55rem; }
  .client-callout { padding: 2rem 1.5rem; }
  .dashboard-header { padding-top: 2rem; }
  .dashboard-appointment { grid-template-columns: 48px minmax(0, 1fr); }
  .dashboard-appointment-price { grid-column: 2; margin-top: -.45rem; }
  .schedule-week-list, .holiday-list { padding-left: 1rem; padding-right: 1rem; }
  .schedule-week-row { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .schedule-closed-toggle { grid-column: 1 / -1; }
  .holiday-row { grid-template-columns: 50px minmax(0, 1fr); }
  .holiday-adjust { grid-column: 2; justify-self: start; }
  .special-date-row { grid-template-columns: 44px minmax(0, 1fr); }
  .special-date-row form { grid-column: 2; }
}
