:root {
  color-scheme: light;
  --ink: #2f3732;
  --muted: #6f776f;
  --line: #eadfdf;
  --surface: #fffaf8;
  --surface-strong: #ffffff;
  --blush: #f6dfe6;
  --rose: #d8899b;
  --sage: #cfe5dc;
  --mint: #eef8f1;
  --lilac: #ded9f2;
  --champagne: #f7dcab;
  --terracotta: #b97865;
  --shadow: 0 22px 70px rgba(69, 50, 49, 0.14);
  --soft-shadow: 0 14px 36px rgba(69, 50, 49, 0.1);
  --radius: 8px;
  --container: min(1180px, calc(100vw - 32px));
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(246, 223, 230, 0.55), transparent 36rem),
    linear-gradient(120deg, rgba(207, 229, 220, 0.38), transparent 32rem),
    var(--surface);
}

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

button {
  cursor: pointer;
}

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

.site-shell {
  min-height: 100vh;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 16px;
  left: 50%;
  display: flex;
  width: var(--container);
  min-height: 64px;
  transform: translateX(-50%);
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 250, 248, 0.78);
  padding: 10px 12px;
  box-shadow: 0 16px 42px rgba(55, 45, 45, 0.13);
  backdrop-filter: blur(18px);
}

.brand,
.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
}

.brand-wordmark {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid rgba(216, 137, 155, 0.34);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(246, 223, 230, 0.58));
  color: #7e4d58;
  padding: 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 700;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(216, 137, 155, 0.42);
  border-radius: 50%;
  background: linear-gradient(135deg, #fff, var(--blush) 54%, var(--sage));
  color: #8c4f5d;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
}

.topnav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 10px 14px;
  color: #49524b;
  font-size: 0.94rem;
  line-height: 1;
  white-space: nowrap;
}

.topnav a:hover {
  background: rgba(216, 137, 155, 0.12);
  color: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  min-height: 76vh;
  overflow: hidden;
  align-items: center;
  padding: 120px max(24px, calc((100vw - 1180px) / 2)) 56px;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 92px;
  background: linear-gradient(180deg, transparent, var(--surface));
  content: "";
  pointer-events: none;
}

.legal-page-shell {
  background:
    linear-gradient(180deg, rgba(246, 223, 230, 0.5), transparent 32rem),
    linear-gradient(120deg, rgba(207, 229, 220, 0.34), transparent 28rem),
    var(--surface);
}

.legal-hero {
  width: var(--container);
  margin: 0 auto;
  padding: 138px 0 22px;
}

.legal-hero h1 {
  max-width: 920px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 6vw, 5.6rem);
  font-weight: 500;
}

.legal-hero p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 250, 248, 0.96) 0%, rgba(255, 250, 248, 0.82) 31%, rgba(255, 250, 248, 0.1) 68%),
    linear-gradient(180deg, rgba(47, 55, 50, 0.06), rgba(47, 55, 50, 0.16)),
    url("/assets/nail-studio-hero.png") center right / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
}

.eyebrow {
  margin: 0 0 10px;
  color: #94616e;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
}

.hero h1 {
  max-width: 13ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.7rem, 8vw, 7.6rem);
  font-weight: 500;
}

.hero-copy {
  max-width: 34rem;
  margin: 22px 0 30px;
  color: #47524c;
  font-size: 1.2rem;
  line-height: 1.65;
}

.trust-strip {
  position: relative;
  z-index: 2;
  display: grid;
  width: var(--container);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: -30px auto 18px;
}

.trust-strip span {
  border: 1px solid rgba(234, 223, 223, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
  color: #4d584f;
  padding: 14px 16px;
  font-size: 0.92rem;
  font-weight: 780;
  text-align: center;
}

.primary-link,
.primary-button,
.secondary-button,
.icon-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 0;
  font-weight: 760;
}

.primary-link,
.primary-button {
  background: #2f3732;
  color: #fffaf8;
  padding: 0 18px;
  box-shadow: 0 12px 28px rgba(47, 55, 50, 0.18);
}

.primary-link:hover,
.primary-button:hover {
  background: #202821;
}

.secondary-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 0 16px;
}

.secondary-button:hover {
  border-color: rgba(216, 137, 155, 0.5);
  background: #fff7f8;
}

.text-button {
  min-height: 40px;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  font: inherit;
  font-weight: 760;
  text-align: center;
  cursor: pointer;
}

.text-button:hover {
  text-decoration: underline;
}

.icon-button {
  width: 44px;
  min-width: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 1.5rem;
}

.section {
  width: var(--container);
  margin: 0 auto;
  padding: 72px 0;
  scroll-margin-top: 128px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-heading h2,
.alert-section h2 {
  max-width: 620px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
}

.section-note,
.micro-copy {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.micro-copy {
  font-size: 0.9rem;
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}

.booking-panel,
.summary-panel,
.admin-login,
.admin-dashboard,
.payment-box,
.alert-section,
.client-portal-form,
.client-results,
.client-auth-card,
.password-reset-card,
.client-message-form,
.legal-card,
.legal-notice,
.service-form,
.open-calendar-form,
.agenda-board,
.day-panel,
.opening-preview,
.settings-form,
.settings-card {
  border: 1px solid rgba(234, 223, 223, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--soft-shadow);
}

.booking-panel {
  min-height: 640px;
  padding: 18px;
}

.summary-panel {
  position: sticky;
  top: 96px;
  padding: 20px;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.step {
  display: flex;
  min-width: 0;
  min-height: 58px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: #68706a;
  padding: 10px;
  text-align: left;
}

.step span {
  display: inline-grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: #476458;
  font-weight: 800;
}

.step strong {
  min-width: 0;
  font-size: 0.94rem;
}

.step.is-active {
  border-color: rgba(216, 137, 155, 0.54);
  background: linear-gradient(135deg, rgba(246, 223, 230, 0.82), rgba(255, 255, 255, 0.95));
  color: var(--ink);
}

.step-page {
  display: none;
}

.step-page.is-active {
  display: block;
}

.service-grid,
.public-services,
.admin-service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.service-card,
.option-card,
.appointment-card,
.admin-service-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
}

.service-card {
  display: grid;
  min-height: 178px;
  text-align: left;
}

.service-card:hover,
.service-card.is-selected,
.option-card:hover,
.option-card.is-selected {
  border-color: rgba(216, 137, 155, 0.62);
  background: #fff8f9;
  box-shadow: 0 14px 32px rgba(216, 137, 155, 0.12);
}

.service-card h3,
.admin-service-card h3,
.appointment-card h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.service-card p,
.admin-service-card p,
.appointment-card p,
.payment-note,
.field small {
  color: var(--muted);
  line-height: 1.55;
}

.service-meta,
.summary-line,
.appointment-meta,
.option-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
}

.pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  background: var(--mint);
  color: #465c53;
  padding: 5px 10px;
  font-size: 0.82rem;
  font-weight: 760;
}

.pill.price {
  background: var(--blush);
  color: #874b59;
}

.pill.gold {
  background: rgba(247, 220, 171, 0.62);
  color: #805b2f;
}

.option-zone {
  margin-top: 16px;
}

.option-helper {
  border: 1px solid rgba(207, 229, 220, 0.92);
  border-radius: var(--radius);
  background: rgba(238, 248, 241, 0.78);
  color: #465c53;
  margin-bottom: 12px;
  padding: 14px;
  line-height: 1.55;
}

.option-helper p {
  margin: 0;
}

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

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

.option-card {
  display: grid;
  gap: 8px;
  min-height: 116px;
  text-align: left;
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  margin: 6px 0 14px;
}

.calendar-toolbar h3 {
  text-align: center;
  text-transform: capitalize;
}

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

.calendar-weekdays {
  margin-bottom: 8px;
  color: #8a817e;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.day-button {
  display: grid;
  min-height: 70px;
  align-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  padding: 8px 5px;
}

.day-button:hover:not(:disabled),
.day-button.is-selected {
  border-color: rgba(216, 137, 155, 0.62);
  background: linear-gradient(135deg, var(--blush), #fff);
}

.day-button:disabled {
  cursor: not-allowed;
  background: #f6f1ef;
  color: #aaa09c;
}

.day-number {
  font-size: 1rem;
}

.day-availability {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.1;
}

.day-button.is-available {
  border-color: rgba(93, 125, 111, 0.36);
  background: linear-gradient(135deg, rgba(238, 248, 241, 0.92), #fff);
}

.day-button.is-available .day-availability {
  color: #4c6b5e;
}

.day-button.is-full,
.day-button.is-muted {
  opacity: 0.72;
  filter: grayscale(0.2);
}

.day-button.is-checking .day-availability {
  color: #9b918e;
}

.calendar-spacer {
  min-height: 70px;
}

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

.slot-panel h3 {
  margin-bottom: 12px;
}

.slot-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
  min-height: 48px;
}

.slot-button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.slot-button:hover,
.slot-button.is-selected {
  border-color: rgba(93, 125, 111, 0.62);
  background: var(--mint);
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 48px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  display: grid;
  place-items: center;
  padding: 14px;
  text-align: center;
}

.booking-form,
.waitlist-form,
.contact-form,
.admin-login-form,
.service-form,
.open-calendar-form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: #414942;
  font-size: 0.9rem;
  font-weight: 800;
}

.field label span[aria-hidden="true"] {
  color: #b66b7c;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 13px 12px;
  outline: none;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(216, 137, 155, 0.78);
  box-shadow: 0 0 0 4px rgba(246, 223, 230, 0.78);
}

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

.compact-field {
  width: min(220px, 100%);
}

.payment-box {
  padding: 16px;
}

.payment-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.payment-heading h3 {
  font-size: 1rem;
}

#deposit-chip {
  border-radius: 999px;
  background: var(--lilac);
  color: #5a5572;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 800;
}

.stripe-card,
.mock-card {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 14px 12px;
}

.mock-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.mock-card strong {
  color: var(--ink);
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #525a54;
  line-height: 1.45;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #2f3732;
}

.check-row a {
  color: #8c4f5d;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.form-actions,
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  justify-content: space-between;
}

.summary-panel h3 {
  margin: 8px 0 14px;
  font-size: 1.35rem;
}

.summary-block {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.summary-block:first-child {
  border-top: 0;
  padding-top: 0;
}

.summary-block p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.services-section {
  padding-top: 54px;
}

.public-services .service-card {
  min-height: 206px;
}

.service-options-list {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.client-section {
  padding-top: 54px;
}

.client-page-shell {
  background:
    linear-gradient(180deg, rgba(246, 223, 230, 0.5), transparent 32rem),
    linear-gradient(120deg, rgba(207, 229, 220, 0.34), transparent 28rem),
    var(--surface);
}

.client-hero {
  width: var(--container);
  margin: 0 auto;
  padding: 138px 0 22px;
}

.client-hero h1 {
  max-width: 850px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 6vw, 5.6rem);
  font-weight: 500;
}

.client-hero p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.client-layout,
.settings-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.client-login-layout {
  max-width: 460px;
  margin: 0 auto;
  grid-template-columns: 1fr;
}

.client-portal-form,
.client-results,
.client-auth-card,
.password-reset-card,
.client-message-form,
.contact-form,
.contact-card,
.settings-form,
.settings-card,
.admin-message-card {
  padding: 20px;
}

.client-auth-card,
.password-reset-card,
.client-message-form {
  display: grid;
  gap: 14px;
}

.client-create-account-link {
  margin-top: 2px;
}

.client-register-form .field input,
.booking-account-card .field input {
  min-height: 58px;
  padding: 16px 14px;
  font-size: 1rem;
}

.client-register-form .field,
.booking-account-card .field {
  gap: 9px;
}

.password-reset-card form {
  display: grid;
  gap: 14px;
}

.client-results {
  display: grid;
  gap: 12px;
  min-height: 230px;
}

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

.client-dashboard {
  padding-top: 34px;
}

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

.client-dashboard-header h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
}

.client-dashboard-header p:not(.eyebrow) {
  color: var(--muted);
  margin: 8px 0 0;
}

.client-section-list {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.client-appointment-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 248, 249, 0.94), rgba(255, 255, 255, 0.98)),
    #fff;
  padding: 18px;
}

.client-appointment-card h3 {
  margin: 10px 0 8px;
  font-size: 1.18rem;
}

.client-appointment-card p {
  color: var(--muted);
  line-height: 1.55;
}

.contact-section {
  padding-top: 50px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.contact-form,
.contact-card {
  border: 1px solid rgba(234, 223, 223, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--soft-shadow);
}

.contact-card {
  position: sticky;
  top: 96px;
}

.contact-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.contact-card p {
  color: var(--muted);
  line-height: 1.6;
}

.legal-section {
  padding-top: 42px;
}

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

.legal-card,
.legal-notice {
  padding: 20px;
}

.legal-card h3,
.legal-notice h3,
.settings-card h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
}

.legal-card p,
.legal-notice p,
.settings-card p {
  color: var(--muted);
  line-height: 1.62;
}

.legal-notice {
  margin-top: 12px;
  background:
    linear-gradient(135deg, rgba(222, 217, 242, 0.52), rgba(255, 255, 255, 0.92)),
    #fff;
}

.compact-consent {
  font-size: 0.9rem;
}

.alert-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 24px;
  align-items: center;
  margin-bottom: 80px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(207, 229, 220, 0.84), rgba(255, 255, 255, 0.92)),
    #fff;
}

.admin-screen {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(246, 223, 230, 0.72), transparent 34rem),
    linear-gradient(225deg, rgba(207, 229, 220, 0.64), transparent 30rem),
    var(--surface);
  padding: 32px 0 72px;
}

.admin-login {
  width: min(440px, calc(100vw - 32px));
  margin: 12vh auto 0;
  padding: 28px;
}

.admin-brand {
  margin-bottom: 24px;
}

.admin-brand h1 {
  font-size: 2rem;
}

.admin-dashboard {
  width: var(--container);
  margin: 0 auto;
  padding: 22px;
}

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

.admin-header h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
}

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

.stat {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 14px;
}

.stat span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 760;
}

.stat strong {
  display: block;
  margin-top: 10px;
  font-size: 1.5rem;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.admin-tab {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 0 14px;
  font-weight: 800;
}

.admin-tab.is-active {
  border-color: rgba(216, 137, 155, 0.6);
  background: var(--blush);
  color: #7b4752;
}

.admin-tab.has-new {
  border-color: rgba(50, 121, 92, 0.72);
  background: #e9f8f0;
  color: #2f6f55;
  box-shadow: 0 10px 24px rgba(50, 121, 92, 0.16);
}

.admin-tab.has-new::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 8px;
  border-radius: 999px;
  background: #2f6f55;
}

.admin-tab-panel {
  display: none;
}

.admin-tab-panel.is-active {
  display: block;
}

.panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}

.panel-heading h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 500;
}

.pro-agenda {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 14px;
  margin-bottom: 18px;
}

.agenda-board,
.day-panel,
.opening-preview {
  padding: 16px;
}

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

.pro-day-button {
  display: grid;
  min-height: 96px;
  align-content: start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 10px;
  text-align: left;
}

.pro-day-button:hover:not(:disabled),
.pro-day-button.is-selected {
  border-color: rgba(216, 137, 155, 0.62);
  background: #fff8f9;
}

.pro-day-button.is-today {
  box-shadow: inset 0 0 0 2px rgba(207, 229, 220, 0.9);
}

.pro-day-button:disabled {
  cursor: default;
  opacity: 0.45;
}

.pro-day-number {
  font-weight: 850;
}

.pro-day-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.pro-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rose);
}

.pro-dot.opening {
  background: #79a493;
}

.pro-day-count {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 760;
}

.day-panel h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
  text-transform: capitalize;
}

.day-list {
  display: grid;
  gap: 9px;
}

.day-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 11px;
}

.day-item strong,
.opening-card strong {
  display: block;
  margin-bottom: 4px;
}

.day-item span,
.opening-card span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}


.day-item.is-opening {
  background: #fffdf8;
  border-color: rgba(222, 194, 144, 0.7);
}

.day-item.is-used {
  background: #fff8f8;
  border-color: rgba(216, 137, 155, 0.45);
}

.day-item.is-free {
  background: #f7fbf8;
  border-color: rgba(116, 163, 135, 0.42);
}

.compact-actions {
  margin-top: 10px;
}

.appointment-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.message-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.client-directory {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.appointment-card,
.admin-message-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.admin-message-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
}

.admin-message-card.is-new {
  border-color: rgba(50, 121, 92, 0.72);
  background: linear-gradient(135deg, rgba(233, 248, 240, 0.98), #fff 62%);
  box-shadow: 0 18px 42px rgba(50, 121, 92, 0.16);
}

.admin-message-card.is-open {
  border-color: rgba(216, 137, 155, 0.55);
  background: #fffaf8;
}

.admin-message-card h3 {
  margin: 8px 0;
  font-size: 1.08rem;
}

.conversation-thread {
  display: grid;
  gap: 9px;
  margin: 12px 0;
}

.conversation-bubble {
  max-width: 720px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 11px 12px;
}

.conversation-bubble.is-pro {
  margin-left: auto;
  border-color: rgba(216, 137, 155, 0.34);
  background: #fff7f8;
}

.conversation-bubble.is-client {
  margin-right: auto;
  border-color: rgba(190, 216, 204, 0.68);
  background: #f7fbf8;
}

.conversation-bubble strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.82rem;
}

.conversation-bubble p {
  margin: 0;
  white-space: pre-wrap;
}

.conversation-bubble span,
.reply-context {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

.conversation-card.has-pro-reply {
  border-color: rgba(216, 137, 155, 0.44);
  background: linear-gradient(135deg, rgba(255, 248, 249, 0.92), #fff);
}

.client-directory-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
  display: grid;
  gap: 10px;
}

.client-directory-card h3 {
  margin: 8px 0;
  font-size: 1.1rem;
}

.client-directory-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.client-directory-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.client-directory-stats span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffaf8;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.admin-message-card p {
  color: var(--muted);
  line-height: 1.55;
}

.message-body {
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding-top: 10px;
  white-space: pre-wrap;
}

.appointment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: end;
}

.message-composer {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.message-composer textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 12px;
  resize: vertical;
}

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

.danger-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(185, 86, 86, 0.38);
  border-radius: var(--radius);
  background: #fff5f4;
  color: #9e3e3e;
  padding: 0 12px;
  font-weight: 800;
}

.service-form,
.open-calendar-form {
  margin-bottom: 18px;
  padding: 18px;
}

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

.admin-service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.slot-opening-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: start;
}

.day-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0;
  padding: 12px;
}

.day-picker legend {
  padding: 0 6px;
  color: #414942;
  font-size: 0.9rem;
  font-weight: 800;
}

.day-picker label {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 0 10px;
  color: #525a54;
  font-weight: 760;
}

.day-picker input {
  accent-color: #2f3732;
}

.opening-preview {
  position: sticky;
  top: 24px;
}

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

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

.opening-card .secondary-button {
  width: 100%;
  margin-top: 10px;
}

.toast-region {
  position: fixed;
  z-index: 60;
  right: 18px;
  bottom: 18px;
  display: grid;
  width: min(380px, calc(100vw - 36px));
  gap: 10px;
}

.toast {
  border: 1px solid rgba(234, 223, 223, 0.92);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 14px 16px;
  color: var(--ink);
}

.toast strong {
  display: block;
  margin-bottom: 4px;
}

.toast p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

[hidden] {
  display: none !important;
}

@media (max-width: 920px) {
  .topbar {
    top: 10px;
    width: calc(100vw - 20px);
  }

  .topnav a {
    padding: 9px 10px;
    font-size: 0.86rem;
  }

  .hero {
    min-height: 82vh;
    padding-top: 118px;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(255, 250, 248, 0.96), rgba(255, 250, 248, 0.64) 56%, rgba(255, 250, 248, 0.28)),
      url("/assets/nail-studio-hero.png") center / cover no-repeat;
  }

  .booking-layout,
  .alert-section,
  .pro-agenda,
  .slot-opening-layout,
  .client-layout,
  .contact-layout,
  .settings-layout,
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .summary-panel {
    position: static;
  }

  .opening-preview {
    position: static;
  }

  .contact-card {
    position: static;
  }

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

@media (max-width: 680px) {
  :root {
    --container: min(100vw - 22px, 1180px);
  }

  .topbar {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px 12px;
    padding: 10px 12px 12px;
  }

  .topnav {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 2px 0 0;
    scrollbar-width: none;
  }

  .topnav::-webkit-scrollbar {
    display: none;
  }

  .topnav a {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 8px 10px;
  }

  .topnav .topnav-instagram {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 42px;
    min-width: 42px;
    height: 42px;
  }

  .brand-wordmark {
    min-height: 38px;
    padding: 0 10px;
    font-size: 0.98rem;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 17vw, 4.6rem);
  }

  .section {
    padding: 52px 0;
  }

  .client-hero {
    padding: 122px 0 8px;
  }

  .client-hero h1 {
    font-size: clamp(2.25rem, 12vw, 3.25rem);
  }

  .client-section {
    padding-top: 22px;
  }

  .section-heading {
    display: block;
  }

  .booking-panel {
    padding: 12px;
  }

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

  .service-grid,
  .public-services,
  .admin-service-list,
  .option-grid,
  .field-row,
  .admin-stats,
  .client-overview,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .calendar-weekdays,
  .calendar-grid,
  .pro-calendar-grid {
    gap: 5px;
  }

  .day-button,
  .calendar-spacer,
  .pro-day-button {
    min-height: 52px;
  }

  .pro-day-button {
    padding: 7px;
  }

  .pro-day-count {
    display: none;
  }

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

  .appointment-card,
  .admin-message-card {
    grid-template-columns: 1fr;
  }

  .appointment-actions,
  .form-actions,
  .admin-header {
    justify-content: stretch;
  }

  .appointment-actions > *,
  .form-actions > *,
  .admin-header > * {
    width: 100%;
  }
}

.client-message-form.is-reply-form {
  margin-top: 10px;
  background: #fff;
}

.home-hidden-tool {
  display: none !important;
}

.home-cta-panel,
.contact-login-panel,
.reservation-auth-panel {
  border: 1px solid rgba(234, 223, 223, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
  padding: 22px;
  display: grid;
  gap: 12px;
  max-width: 720px;
}

.home-cta-panel h3,
.contact-login-panel h3 {
  margin: 0;
  font-size: 1.25rem;
}

.home-cta-panel p,
.contact-login-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.client-register-form {
  margin-top: 18px;
}

.client-filterbar {
  align-items: end;
  margin: 8px 0 12px;
}

.client-directory-stats a,
.compact-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffaf8;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
}

.client-directory-stats a:hover,
.compact-link:hover {
  border-color: rgba(216, 137, 155, 0.5);
  color: var(--ink);
}

.auth-choice-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.auth-choice-bar .is-active {
  border-color: rgba(216, 137, 155, 0.58);
  box-shadow: 0 12px 28px rgba(216, 137, 155, 0.18);
}

.client-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
}

.client-detail-header h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 500;
}

.client-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 14px;
  align-items: start;
}

.client-detail-tool {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(234, 223, 223, 0.92);
  border-radius: var(--radius);
  background: #fffaf8;
  padding: 16px;
}

.client-detail-tool h4 {
  margin: 0;
  font-size: 1rem;
}

.client-directory-card.has-unread {
  border-color: rgba(50, 121, 92, 0.62);
  background: linear-gradient(135deg, rgba(233, 248, 240, 0.96), #fff 62%);
}

.clean-opening-list {
  gap: 12px;
}

.clean-opening-card {
  gap: 12px;
}

.opening-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.opening-meta-grid span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 6px 9px;
}

@media (max-width: 820px) {
  .client-detail-grid,
  .client-detail-header {
    grid-template-columns: 1fr;
  }

  .client-detail-header {
    display: grid;
  }
}


.topnav .topnav-instagram {
  width: 44px;
  min-width: 44px;
  height: 44px;
  flex: 0 0 auto;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(216, 137, 155, 0.38);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 18%, rgba(247, 220, 171, 0.96), transparent 30%),
    linear-gradient(135deg, #f6dfe6 0%, #d8899b 45%, #9f7bd8 100%);
  color: #fff;
  box-shadow: 0 14px 30px rgba(171, 93, 132, 0.22);
}

.topnav .topnav-instagram:hover {
  background:
    radial-gradient(circle at 32% 18%, rgba(247, 220, 171, 1), transparent 30%),
    linear-gradient(135deg, #f2bfd1 0%, #d8899b 42%, #806dd2 100%);
  color: #fff;
  transform: translateY(-1px);
}

.topnav-instagram svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.instagram-cta {
  position: relative;
  gap: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background:
    radial-gradient(circle at 18% 18%, rgba(247, 220, 171, 0.95), transparent 26%),
    linear-gradient(135deg, #f2bfd1 0%, #d8899b 42%, #806dd2 100%);
  box-shadow: 0 18px 34px rgba(171, 93, 132, 0.24);
}


.instagram-cta:hover {
  background:
    radial-gradient(circle at 18% 18%, rgba(247, 220, 171, 1), transparent 26%),
    linear-gradient(135deg, #eca9c0 0%, #cf728b 42%, #6d5cc6 100%);
}


.contact-instagram-panel {
  display: grid;
  min-height: 200px;
  align-content: center;
  justify-items: center;
  gap: 16px;
  text-align: center;
}

.contact-note {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.instagram-cta {
  min-height: 64px;
  min-width: min(360px, 100%);
  justify-content: center;
  border-radius: 999px;
  padding: 0 32px;
  font-size: 1.05rem;
}

.booking-flow-section {
  padding-top: 132px;
}

.booking-layout-wide {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.flow-page-heading {
  margin-bottom: 22px;
}

.flow-page-heading h2 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
}

.booking-account-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.booking-account-card.is-ready,
.confirmation-card,
.success-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
}

.payment-box-focused {
  margin-bottom: 16px;
}

@media (max-width: 820px) {
  .booking-account-layout,
  .booking-layout-wide {
    grid-template-columns: 1fr;
  }
}

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

.blocked-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
}

.blocked-item strong,
.blocked-item span,
.blocked-item p {
  display: block;
}

.blocked-item span,
.blocked-item p {
  color: var(--muted);
  line-height: 1.45;
}

.blocked-item p {
  margin: 5px 0 0;
}

.compact-empty {
  padding: 14px;
}

@media (max-width: 680px) {
  .blocked-item {
    grid-template-columns: 1fr;
  }
}
