

:root {
  
  --cf-navy-900: #0a0b4d;
  --cf-navy-800: #0d0e61;   
  --cf-navy-700: #1a1c79;
  --cf-navy-600: #2c2f95;
  --cf-navy-100: #e3e4f2;
  --cf-navy-50:  #f1f1f8;

  --cf-cyan-700: #017a96;
  --cf-cyan-600: #01a0c6;   
  --cf-cyan-500: #2db8d8;
  --cf-cyan-100: #d9f1f7;
  --cf-cyan-50:  #ecf8fb;

  
  --cf-ink:      #1d2730;
  --cf-ink-2:    #3b4a57;
  --cf-ink-3:    #5e6d7a;
  --cf-mute:     #8a96a3;
  --cf-line:     #e3e1dc;
  --cf-line-2:   #efece6;
  --cf-bg:       #faf7f2;     
  --cf-card:     #ffffff;

  
  --cf-green:    #16826b;
  --cf-green-bg: #e3f1ec;
  --cf-amber:    #b6730a;
  --cf-amber-bg: #fbeed5;
  --cf-red:      #b3271e;
  --cf-red-bg:   #f9e1df;
  --cf-whatsapp: #25d366;
  --cf-whatsapp-dark: #128c45;

  
  --cf-sub:      #7a3aa0;
  --cf-sub-bg:   #f1e8f7;

  
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;

  --shadow-1: 0 1px 2px rgba(15,40,70,.06), 0 1px 1px rgba(15,40,70,.03);
  --shadow-2: 0 4px 14px rgba(15,40,70,.07), 0 1px 2px rgba(15,40,70,.04);
  --shadow-3: 0 18px 40px -16px rgba(15,40,70,.22), 0 6px 18px -8px rgba(15,40,70,.12);

  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans", "Manrope", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--cf-bg);
  color: var(--cf-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { min-height: 100vh; }

h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.01em; margin: 0; }
h1 { font-size: 1.75rem; font-weight: 700; line-height: 1.15; }
h2 { font-size: 1.35rem; font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.1rem;  font-weight: 600; }

p { margin: 0; }
button { font-family: inherit; }

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--cf-line);
}
.topbar-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: inherit;
}
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--cf-navy-800);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 800; font-size: 18px;
  letter-spacing: -0.02em;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.18);
}
.brand-meta { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--cf-ink); }
.brand-sub  { font-size: 12px; color: var(--cf-ink-3); }

.topbar-user {
  display: flex; align-items: center; gap: 10px;
}
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--cf-navy-100); color: var(--cf-navy-800);
  display: grid; place-items: center;
  font-weight: 700; font-size: 14px;
}
.user-name {
  font-weight: 600; font-size: 14px; color: var(--cf-ink);
  max-width: min(160px, 30vw); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.user-sub  { font-size: 12px; color: var(--cf-ink-3); }

.user-name-link {
  display: inline-flex; align-items: center; gap: 4px;
  text-decoration: none;
  color: var(--cf-ink);
  padding: 4px 8px;
  border-radius: 8px;
  transition: background .12s, color .12s;
}
.user-name-link:hover { background: var(--cf-navy-50); color: var(--cf-navy-800); }
.user-name-link:focus-visible { outline: 2px solid var(--cf-cyan-600); outline-offset: 2px; }
.user-name-chev { color: var(--cf-ink-3); transition: transform .12s, color .12s; }
.user-name-link:hover .user-name-chev { color: var(--cf-navy-800); transform: translateY(1px); }

.avatar-link {
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s, background .12s;
}
.avatar-link:hover {
  background: var(--cf-navy-200, var(--cf-navy-100));
  transform: scale(1.05);
  box-shadow: 0 2px 8px -2px rgba(15,40,70,.20);
}
.avatar-link:focus-visible { outline: 2px solid var(--cf-cyan-600); outline-offset: 2px; }

.main {
  flex: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 80px;
}

.btn {
  appearance: none; border: 1px solid transparent;
  background: var(--cf-navy-800); color: #fff;
  padding: 14px 22px;
  border-radius: var(--r-md);
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px;
  transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
  text-decoration: none;
}
.btn:hover { background: var(--cf-navy-700); }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: var(--cf-line); color: var(--cf-mute); cursor: not-allowed; }

.btn-ghost {
  background: transparent; color: var(--cf-navy-800);
  border-color: var(--cf-line);
}
.btn-ghost:hover { background: var(--cf-navy-50); }

.btn-secondary {
  background: #fff; color: var(--cf-ink);
  border-color: var(--cf-line);
  box-shadow: var(--shadow-1);
}
.btn-secondary:hover { background: var(--cf-navy-50); border-color: var(--cf-navy-100); }

.btn-whatsapp { background: var(--cf-whatsapp); color: #fff; }
.btn-whatsapp:hover { background: var(--cf-whatsapp-dark); }

.btn-block { width: 100%; }

.btn-lg { font-size: 16px; padding: 16px 24px; min-height: 56px; }

.card {
  background: var(--cf-card);
  border: 1px solid var(--cf-line);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-1);
}
.card-pad-lg { padding: 32px; }
.card-tight { padding: 16px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field-label {
  font-size: 13px; font-weight: 600; color: var(--cf-ink-2);
}
.field-hint { font-size: 12px; color: var(--cf-ink-3); }
.field-error { font-size: 13px; color: var(--cf-red); }
.input, .select, .textarea {
  width: 100%;
  padding: 13px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--cf-ink);
  background: #fff;
  border: 1px solid var(--cf-line);
  border-radius: var(--r-md);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  min-height: 48px;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--cf-navy-600);
  box-shadow: 0 0 0 4px rgba(40, 128, 163, .12);
}

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--cf-bg);
}
.auth-side {
  background: linear-gradient(160deg, var(--cf-navy-900) 0%, var(--cf-navy-700) 100%);
  color: #fff;
  padding: 48px;
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
}
.auth-side::after {
  content: "";
  position: absolute; right: -120px; bottom: -120px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 70%);
}
.auth-side-brand { display: flex; align-items: center; gap: 14px; }
.auth-side-brand .brand-mark {
  background: rgba(255,255,255,.14);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.auth-side-title { font-family: var(--font-display); font-size: 36px; font-weight: 700; line-height: 1.1; max-width: 480px; }
.auth-side-title em { color: #9ed7ee; font-style: normal; }
.auth-side-points { display: flex; flex-direction: column; gap: 16px; max-width: 440px; }
.auth-side-point { display: flex; gap: 14px; align-items: flex-start; }
.auth-side-point-num {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.12); display: grid; place-items: center;
  font-weight: 700; font-size: 13px; flex-shrink: 0;
}
.auth-side-point-text { color: rgba(255,255,255,.88); font-size: 15px; line-height: 1.4; }
.auth-side-foot { font-size: 13px; color: rgba(255,255,255,.6); }
.auth-side-foot a { color: #9ed7ee; text-decoration: none; }

.auth-main {
  display: flex; align-items: center; justify-content: center;
  padding: 48px 32px;
}
.auth-form {
  width: 100%; max-width: 420px;
  display: flex; flex-direction: column; gap: 22px;
}
.auth-form h1 { font-size: 28px; }
.auth-form .lead { color: var(--cf-ink-3); font-size: 15px; }
.auth-form .link { color: var(--cf-navy-700); text-decoration: none; font-weight: 600; font-size: 14px; cursor: pointer; }
.auth-form .link:hover { text-decoration: underline; }
.auth-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }

@media (max-width: 880px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-side { padding: 28px 24px; gap: 28px; min-height: 280px; }
  .auth-side-title { font-size: 26px; }
  .auth-side-points { display: none; }
  .auth-main { padding: 32px 20px 48px; }
}

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  background: var(--cf-navy-100); color: var(--cf-navy-800);
  white-space: nowrap;
  flex-shrink: 0;
}
.pill-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.pill-green  { background: var(--cf-green-bg);  color: var(--cf-green); }
.pill-amber  { background: var(--cf-amber-bg);  color: var(--cf-amber); }
.pill-red    { background: var(--cf-red-bg);    color: var(--cf-red); }
.pill-sub    { background: var(--cf-sub-bg);    color: var(--cf-sub); }
.pill-muted  { background: var(--cf-line-2);    color: var(--cf-ink-3); }

.greeting { display: flex; flex-direction: column; gap: 4px; margin-bottom: 24px; }
.greeting h1 { font-size: 28px; }
.greeting p { color: var(--cf-ink-3); font-size: 15px; }

.grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}
.grid-col { display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 880px) {
  .grid { grid-template-columns: 1fr; }
}

.next-appt {
  background: linear-gradient(155deg, var(--cf-navy-900) 0%, var(--cf-navy-700) 100%);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.next-appt::after {
  content: "";
  position: absolute; right: -80px; top: -80px;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 70%);
}
.next-appt-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.next-appt-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.65);
}
.next-appt-when {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 700; line-height: 1.1;
  margin-top: 8px;
}
.next-appt-meta {
  margin-top: 12px;
  color: rgba(255,255,255,.86);
  font-size: 15px;
  display: flex; flex-wrap: wrap; gap: 18px;
}
.next-appt-meta-item { display: flex; align-items: center; gap: 8px; }
.next-appt-actions { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 2; }
.next-appt-actions .btn-secondary { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.22); backdrop-filter: blur(6px); }
.next-appt-actions .btn-secondary:hover { background: rgba(255,255,255,.22); }
.next-appt-actions .btn-ghost { color: #fff; border-color: rgba(255,255,255,.0); background: transparent; }
.next-appt-actions .btn-ghost:hover { background: rgba(255,255,255,.10); }

.empty-appt {
  text-align: center; padding: 36px 20px;
  border: 2px dashed var(--cf-line);
  border-radius: var(--r-lg);
  background: var(--cf-card);
}
.empty-appt h3 { margin-bottom: 6px; }
.empty-appt p { color: var(--cf-ink-3); margin-bottom: 16px; }

.card-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.card-title { font-family: var(--font-display); font-size: 16px; font-weight: 700; }

.operator-card { display: flex; flex-direction: column; gap: 16px; }
.operator-row { display: flex; align-items: center; gap: 14px; }
.operator-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--cf-navy-100); color: var(--cf-navy-800);
  display: grid; place-items: center;
  font-weight: 700; font-size: 18px;
  font-family: var(--font-display);
}
.operator-avatar-sub { background: var(--cf-sub-bg); color: var(--cf-sub); }
.operator-name { font-weight: 600; font-size: 15px; }
.operator-role { font-size: 13px; color: var(--cf-ink-3); }
.operator-note {
  font-size: 13px; color: var(--cf-ink-3);
  padding: 12px;
  background: var(--cf-navy-50);
  border-radius: var(--r-sm);
  border-left: 3px solid var(--cf-navy-600);
}

.history-list { display: flex; flex-direction: column; gap: 0; }
.history-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--cf-line-2);
}
.history-item:last-child { border-bottom: none; }
.history-date {
  flex-shrink: 0; width: 56px;
  display: flex; flex-direction: column; align-items: center;
  background: var(--cf-navy-50); color: var(--cf-navy-800);
  border-radius: var(--r-sm); padding: 6px 0;
}
.history-date-day { font-size: 18px; font-weight: 700; line-height: 1; font-family: var(--font-display); }
.history-date-mon { font-size: 11px; text-transform: uppercase; font-weight: 700; letter-spacing: .04em; }
.history-body { flex: 1; }
.history-when { font-size: 14px; font-weight: 600; }
.history-with { font-size: 13px; color: var(--cf-ink-3); }

.wizard {
  background: #fff;
  border-radius: var(--r-xl);
  border: 1px solid var(--cf-line);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.wizard-head {
  padding: 22px 28px;
  border-bottom: 1px solid var(--cf-line-2);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.wizard-head h2,
.wizard-head .wizard-title { font-size: 20px; margin: 0; font-weight: 700; }
.wizard-head p { color: var(--cf-ink-3); font-size: 14px; }
.steps { display: flex; gap: 10px; align-items: center; }
.step {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  background: var(--cf-line-2); color: var(--cf-ink-3);
}
.step-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,.06); color: var(--cf-ink-3);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
}
.step.active { background: var(--cf-navy-800); color: #fff; }
.step.active .step-num { background: rgba(255,255,255,.22); color: #fff; }
.step.done { background: var(--cf-green-bg); color: var(--cf-green); }
.step.done .step-num { background: var(--cf-green); color: #fff; }
.step-sep { width: 14px; height: 1px; background: var(--cf-line); }

.wizard-body { padding: 28px; }
.wizard-foot {
  padding: 18px 28px;
  border-top: 1px solid var(--cf-line-2);
  background: var(--cf-bg);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}

.sub-banner {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px;
  background: var(--cf-sub-bg);
  border: 1px solid color-mix(in oklab, var(--cf-sub) 22%, transparent);
  border-radius: var(--r-md);
  margin-bottom: 20px;
}
.sub-banner-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff; color: var(--cf-sub);
  display: grid; place-items: center; flex-shrink: 0;
  font-size: 20px;
}
.sub-banner-body { font-size: 14px; line-height: 1.45; color: #4a2a64; }
.sub-banner-body strong { color: #2f1746; }

.cal {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 880px) {
  .cal { grid-template-columns: 1.1fr .9fr; gap: 32px; }
}
.cal-month {
  display: flex; flex-direction: column; gap: 12px;
}
.cal-month-head {
  display: flex; justify-content: space-between; align-items: center;
}
.cal-month-title { font-family: var(--font-display); font-weight: 700; font-size: 17px; text-transform: capitalize; }
.cal-nav {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--cf-line);
  background: #fff; cursor: pointer;
  display: grid; place-items: center;
  color: var(--cf-ink-2);
  transition: background .15s, border-color .15s;
}
.cal-nav:hover { background: var(--cf-navy-50); border-color: var(--cf-navy-100); }
.cal-nav:disabled { opacity: .35; cursor: not-allowed; }
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
}
.cal-dow {
  text-align: center; font-size: 11px; font-weight: 700;
  color: var(--cf-mute); text-transform: uppercase; letter-spacing: .06em;
  padding: 6px 0;
}
.cal-day {
  aspect-ratio: 1;
  border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  color: var(--cf-ink);
  position: relative;
  transition: background .12s, border-color .12s;
}
.cal-day:hover { background: var(--cf-navy-50); }
.cal-day.muted { color: var(--cf-mute); cursor: default; }
.cal-day.muted:hover { background: transparent; }
.cal-day.disabled { color: var(--cf-mute); cursor: not-allowed; opacity: .55; text-decoration: line-through; }
.cal-day.disabled:hover { background: transparent; }
.cal-day.has-slots { color: var(--cf-navy-800); }
.cal-day.today { box-shadow: inset 0 0 0 1px var(--cf-navy-600); }
.cal-day.selected { background: var(--cf-navy-800); color: #fff; }
.cal-day.selected .cal-day-dot { background: #fff; }
.cal-day-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--cf-navy-600);
  margin-top: 3px;
}

.slots {
  display: flex; flex-direction: column; gap: 14px;
}
.slots-head { display: flex; align-items: baseline; justify-content: space-between; }
.slots-head h3 { font-family: var(--font-display); font-size: 17px; }
.slots-head p { font-size: 13px; color: var(--cf-ink-3); }
.slot-section { display: flex; flex-direction: column; gap: 8px; }
.slot-section-label {
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  color: var(--cf-mute); text-transform: uppercase;
  padding-top: 4px;
}
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.slot {
  appearance: none;
  border: 1px solid var(--cf-line);
  background: #fff;
  border-radius: var(--r-md);
  padding: 12px 12px;
  text-align: left;
  cursor: pointer;
  display: flex; flex-direction: column; gap: 4px;
  transition: border-color .12s, background .12s, transform .08s;
  min-height: 64px;
}
.slot:hover { border-color: var(--cf-navy-600); background: var(--cf-navy-50); }
.slot.selected {
  border-color: var(--cf-navy-800);
  background: var(--cf-navy-800);
  color: #fff;
  box-shadow: 0 4px 12px -2px rgba(10,54,86,.35);
}
.slot.selected .slot-with { color: rgba(255,255,255,.85); }
.slot.disabled {
  background: var(--cf-line-2);
  color: var(--cf-mute);
  cursor: not-allowed;
  border-color: transparent;
}
.slot.sub {
  border-color: var(--cf-sub);
  background: var(--cf-sub-bg);
  color: var(--cf-sub);
}
.slot.sub.selected {
  background: var(--cf-sub);
  color: #fff;
  border-color: var(--cf-sub);
}
.slot.sub.selected .slot-with { color: rgba(255,255,255,.85); }
.slot-time { font-size: 17px; font-weight: 700; font-family: var(--font-display); letter-spacing: -.01em; }
.slot-with { font-size: 12px; font-weight: 600; }
.slot-with-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700;
  padding: 2px 6px; border-radius: 4px;
  background: rgba(122,58,160,.18); color: var(--cf-sub);
}
.slot.selected .slot-with-badge { background: rgba(255,255,255,.22); color: #fff; }

.no-slots {
  text-align: center;
  padding: 30px 20px;
  background: var(--cf-bg);
  border-radius: var(--r-md);
  color: var(--cf-ink-3);
  font-size: 14px;
}

.summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 720px) {
  .summary { grid-template-columns: 1.4fr 1fr; }
}
.summary-card {
  background: var(--cf-navy-50);
  border: 1px solid var(--cf-navy-100);
  border-radius: var(--r-lg);
  padding: 22px;
}
.summary-row { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid rgba(40,128,163,.12); }
.summary-row:last-child { border-bottom: none; }
.summary-row-label { font-size: 13px; font-weight: 700; color: var(--cf-ink-3); width: 110px; flex-shrink: 0; text-transform: uppercase; letter-spacing: .04em; }
.summary-row-val { font-size: 15px; color: var(--cf-ink); font-weight: 500; }
.summary-row-val strong { font-weight: 700; }

.help-card {
  background: #fff;
  border: 1px solid var(--cf-line);
  border-radius: var(--r-lg);
  padding: 20px;
  font-size: 14px; color: var(--cf-ink-3);
  display: flex; flex-direction: column; gap: 10px;
}
.help-card h4 { font-family: var(--font-display); font-size: 14px; color: var(--cf-ink); }

.success-wrap {
  max-width: 560px; margin: 60px auto; text-align: center;
  background: #fff;
  border: 1px solid var(--cf-line);
  border-radius: var(--r-xl);
  padding: 48px 32px;
  box-shadow: var(--shadow-2);
}
.success-check {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--cf-green-bg);
  color: var(--cf-green);
  display: grid; place-items: center;
  margin: 0 auto 18px;
}
.success-wrap h1 { font-size: 28px; margin-bottom: 10px; }
.success-wrap .lead { color: var(--cf-ink-3); font-size: 16px; margin-bottom: 24px; }
.success-detail {
  background: var(--cf-navy-50); border-radius: var(--r-md); padding: 18px;
  text-align: left;
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 28px;
}
.success-detail .when { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--cf-navy-900); }
.success-detail .who  { font-size: 14px; color: var(--cf-ink-2); }
.success-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.state-card {
  max-width: 560px; margin: 60px auto;
  background: #fff;
  border: 1px solid var(--cf-line);
  border-radius: var(--r-xl);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-2);
}
.state-icon {
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto 16px;
}
.state-icon-amber { background: var(--cf-amber-bg); color: var(--cf-amber); }
.state-icon-wa { background: #e8faef; color: var(--cf-whatsapp-dark); }
.state-card h1 { font-size: 24px; margin-bottom: 12px; }
.state-card .lead { color: var(--cf-ink-3); font-size: 15px; line-height: 1.55; margin-bottom: 24px; }
.state-card .lead strong { color: var(--cf-ink); }

.banner {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 18px;
  border-radius: var(--r-md);
  margin-bottom: 20px;
  background: var(--cf-amber-bg);
  border: 1px solid color-mix(in oklab, var(--cf-amber) 25%, transparent);
}
.banner-icon {
  width: 30px; height: 30px; border-radius: 50%;
  background: #fff; color: var(--cf-amber);
  display: grid; place-items: center; flex-shrink: 0;
}
.banner-body { font-size: 14px; color: #5c3a07; line-height: 1.45; }
.banner-body strong { color: #3d2603; }

@media (max-width: 640px) {
  .main { padding: 18px 16px 100px; }
  .greeting h1 { font-size: 22px; }
  .next-appt { padding: 22px; }
  .next-appt-when { font-size: 24px; }
  .wizard-head, .wizard-body, .wizard-foot { padding-left: 18px; padding-right: 18px; }
  .step { padding: 8px 10px; }
  .step span:last-child { display: none; }
  .card-pad-lg { padding: 22px; }
  .topbar-inner { padding: 10px 14px; }
  .brand-sub { display: none; }
}

.main::-webkit-scrollbar { width: 0; }

.flash {
  padding: 12px 16px;
  border-radius: var(--r-md);
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.45;
}
.flash-success { background: var(--cf-green-bg); color: var(--cf-green); }
.flash-error   { background: var(--cf-red-bg);   color: var(--cf-red);   }
.flash-warn    { background: var(--cf-amber-bg); color: var(--cf-amber); }
.flash-info    { background: var(--cf-navy-50);  color: var(--cf-navy-800); }

img.brand-mark {
  background: transparent;
  box-shadow: none;
  padding: 0;
  object-fit: contain;
}
.auth-side-brand img.brand-mark { background: transparent; box-shadow: none; }

/* === Audit fix bundle === */

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--cf-navy-800); color: #fff;
  padding: 10px 14px; border-radius: 0 0 var(--r-sm) 0;
  font-weight: 600; z-index: 100;
}
.skip-link:focus { left: 0; outline: 2px solid var(--cf-cyan-600); outline-offset: 2px; }

.btn:focus-visible,
.btn-secondary:focus-visible,
.btn-ghost:focus-visible,
.btn-whatsapp:focus-visible,
.cal-day:focus-visible,
.cal-nav:focus-visible,
.slot:focus-visible,
.link:focus-visible,
a.brand:focus-visible {
  outline: 2px solid var(--cf-cyan-600);
  outline-offset: 2px;
}

.slot-section-label,
.cal-dow,
.muted { color: var(--cf-ink-3); }
.pill-green { color: #0f5c4a; }

.cal-nav { width: 44px; height: 44px; }

.auth-form .link,
.auth-row a {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 6px 4px;
}

input[type="text"], input[type="email"], input[type="tel"],
input[type="password"], .input, .select, .textarea {
  font-size: 16px;
}

.cal-day { min-width: 36px; min-height: 36px; }

@media (max-width: 640px) {
  .cal-grid { gap: 4px; }
  .step { min-height: 44px; padding: 0 10px; align-items: center; }
}
@media (max-width: 500px) {
  .slot-grid { gap: 10px; }
  .slot { min-height: 68px; }
}

.topbar { -webkit-backdrop-filter: saturate(140%) blur(10px); }

.page-footer {
  max-width: 1180px; margin: 0 auto;
  padding: 18px 20px 28px;
  font-size: 13px; color: var(--cf-ink-3);
  text-align: center;
}
.page-footer a { color: var(--cf-navy-700); text-decoration: none; margin-right: 4px; }
.page-footer a:hover { text-decoration: underline; }

.fab-wa {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--cf-whatsapp); color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--shadow-3);
  z-index: 40;
  text-decoration: none;
}
.fab-wa:hover { background: var(--cf-whatsapp-dark); }
.fab-wa:focus-visible { outline: 3px solid var(--cf-cyan-600); outline-offset: 3px; }

.mobile-cta-bar {
  display: none;
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid var(--cf-line);
  box-shadow: 0 -4px 12px rgba(15,40,70,.06);
  z-index: 35;
}
.mobile-cta-bar .btn { width: 100%; min-height: 56px; }

@media (max-width: 640px) {
  .mobile-cta-bar { display: block; }
  .main { padding-bottom: 120px; }
  .mobile-hidden { display: none !important; }
  .fab-wa { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

@supports(padding: env(safe-area-inset-bottom)) {
  .wizard-foot {
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }
}

.sub-banner {
  border-color: rgba(122,58,160,.22);
  border-color: color-mix(in oklab, var(--cf-sub) 22%, transparent);
}
.banner {
  border-color: rgba(182,115,10,.25);
  border-color: color-mix(in oklab, var(--cf-amber) 25%, transparent);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
@media (max-width: 640px) {
  .admin-stats { grid-template-columns: 1fr; }
}
.admin-stat {
  background: #fff;
  border: 1px solid var(--cf-line);
  border-radius: 14px;
  padding: 18px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 1px 2px rgba(15,40,70,.04);
}
.admin-stat-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; flex-shrink: 0;
}
.admin-stat-icon-navy  { background: var(--cf-navy-100); color: var(--cf-navy-800); }
.admin-stat-icon-cyan  { background: var(--cf-cyan-100); color: var(--cf-cyan-700); }
.admin-stat-icon-green { background: var(--cf-green-bg); color: var(--cf-green); }
.admin-stat-val { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 26px; font-weight: 700; line-height: 1; color: var(--cf-ink); }
.admin-stat-lbl { font-size: 13px; color: var(--cf-ink-3); margin-top: 4px; }

.admin-toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin-bottom: 18px;
  justify-content: space-between;
}
.admin-segments {
  display: inline-flex; gap: 2px;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--cf-line);
  border-radius: 12px;
}
.admin-seg {
  appearance: none; border: 0;
  background: transparent;
  padding: 8px 14px;
  font-size: 14px; font-weight: 600;
  color: var(--cf-ink-3);
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none;
  transition: background .12s, color .12s;
}
.admin-seg:hover { color: var(--cf-ink); }
.admin-seg.active { background: var(--cf-navy-800); color: #fff; }
.admin-seg:focus-visible {
  outline: 2px solid var(--cf-cyan-600);
  outline-offset: 2px;
}
.admin-filter-group {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.admin-filter-group .select {
  width: auto; min-height: 42px; padding: 8px 12px; font-size: 14px;
}
.admin-filter-group .input {
  width: 260px; min-height: 42px; padding: 8px 12px; font-size: 14px;
}
@media (max-width: 640px) {
  .admin-toolbar { flex-direction: column; align-items: stretch; }
  .admin-filter-group { flex-direction: column; }
  .admin-filter-group .select,
  .admin-filter-group .input { width: 100%; }
  .admin-segments { width: 100%; justify-content: space-between; }
  .admin-seg { flex: 1; justify-content: center; padding: 8px 6px; font-size: 13px; }
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
}
.admin-table thead th {
  text-align: left;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--cf-ink-3);
  padding: 14px 16px;
  background: var(--cf-bg);
  border-bottom: 1px solid var(--cf-line);
  white-space: nowrap;
}
.admin-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--cf-line-2);
  vertical-align: top;
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: var(--cf-navy-50); }
.admin-table tbody tr:hover td { background: transparent; }

.admin-icon-btn {
  appearance: none; border: 0; background: transparent;
  width: 44px; height: 44px; border-radius: 10px;
  display: inline-grid; place-items: center;
  color: var(--cf-ink-3); cursor: pointer;
  text-decoration: none;
}
.admin-icon-btn:hover { background: var(--cf-bg); color: var(--cf-ink); }
.admin-icon-btn:focus-visible { outline: 2px solid var(--cf-cyan-600); outline-offset: 2px; }

.admin-backdrop {
  position: fixed; inset: 0; background: rgba(15,40,70,.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 50;
  display: block;
  text-decoration: none;
  color: transparent;
  cursor: pointer;
  animation: cf-fade-in .15s ease;
}
.admin-drawer {
  position: fixed; right: 0; top: 0; bottom: 0;
  width: min(460px, 100%);
  background: #fff;
  z-index: 51;
  display: flex; flex-direction: column;
  box-shadow: -20px 0 60px -20px rgba(15,40,70,.30);
  animation: cf-slide-in .18s ease;
}
@keyframes cf-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes cf-slide-in { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.admin-drawer-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--cf-line-2);
}
.admin-drawer-body {
  flex: 1; overflow-y: auto;
  padding: 18px 24px;
  display: flex; flex-direction: column; gap: 20px;
}
.admin-drawer-foot {
  display: flex; gap: 10px; justify-content: space-between; align-items: center;
  padding: 16px 24px;
  border-top: 1px solid var(--cf-line-2);
  background: var(--cf-bg);
}
.admin-section { display: flex; flex-direction: column; }
.admin-section-label {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--cf-mute);
}
.admin-drawer-overline {
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--cf-ink-3);
}
.admin-drawer-title {
  margin-top: 4px;
  font-size: 20px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
  text-transform: capitalize;
}
@media (max-width: 640px) {
  .admin-drawer { width: 100%; }
  .admin-drawer-head,
  .admin-drawer-body,
  .admin-drawer-foot { padding-left: 18px; padding-right: 18px; }
  .admin-drawer-foot { flex-direction: column-reverse; gap: 8px; align-items: stretch; }
  .admin-drawer-foot .btn { width: 100%; }
}

.pw-strength {
  margin-top: 6px;
  display: flex; gap: 6px; align-items: center;
}
.pw-strength-bars {
  display: flex; gap: 3px; flex: 1;
}
.pw-strength-bar {
  flex: 1; height: 4px; border-radius: 999px;
  background: var(--cf-line);
  transition: background .15s;
}
.pw-strength-bar.is-on-1 { background: var(--cf-red); }
.pw-strength-bar.is-on-2 { background: var(--cf-amber); }
.pw-strength-bar.is-on-3 { background: var(--cf-amber); }
.pw-strength-bar.is-on-4 { background: var(--cf-green); }
.pw-strength-label {
  font-size: 12px; font-weight: 600;
  min-width: 60px; text-align: right;
  color: var(--cf-ink-3);
}
.pw-strength-label.is-on-1 { color: var(--cf-red); }
.pw-strength-label.is-on-2,
.pw-strength-label.is-on-3 { color: var(--cf-amber); }
.pw-strength-label.is-on-4 { color: var(--cf-green); }

.pw-toggle {
  position: relative;
}
.pw-toggle .input { padding-right: 52px; }
.pw-toggle-btn {
  position: absolute;
  right: 4px; top: 4px;
  width: 44px; height: 44px;
  border: 0; border-radius: 8px;
  background: transparent;
  cursor: pointer;
  color: var(--cf-ink-3);
  display: inline-grid; place-items: center;
}
.pw-toggle-btn:hover { background: var(--cf-bg); color: var(--cf-ink); }
.pw-toggle-btn:focus-visible { outline: 2px solid var(--cf-cyan-600); outline-offset: 2px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.week-head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--cf-line-2);
  background: var(--cf-bg);
}
.week-nav { display: flex; align-items: center; gap: 8px; }
.week-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700; font-size: 16px; text-transform: capitalize;
}
.week-legend { display: flex; gap: 14px; font-size: 12px; color: var(--cf-ink-3); }
.week-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.dot-op-edison, .dot-op-andrea, .dot-op-sub {
  width: 10px; height: 10px; border-radius: 50%; display: inline-block;
}
.dot-op-edison { background: var(--cf-navy-700); }
.dot-op-andrea { background: var(--cf-cyan-600); }
.dot-op-sub    { background: var(--cf-sub); }

.week-grid-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.week-grid {
  display: grid;
  grid-template-columns: 72px repeat(5, minmax(140px, 1fr));
  min-width: 700px;
}
.week-corner {
  background: var(--cf-bg);
  border-bottom: 1px solid var(--cf-line);
  border-right: 1px solid var(--cf-line-2);
}
.week-day-head {
  padding: 14px 10px;
  text-align: center;
  background: #fff;
  border-bottom: 1px solid var(--cf-line);
  border-right: 1px solid var(--cf-line-2);
}
.week-day-head:last-child { border-right: none; }
.week-day-head.current { background: var(--cf-navy-50); }
.week-day-head.current .week-dnum { color: var(--cf-navy-800); }
.week-dow { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cf-mute); }
.week-dnum {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700; font-size: 20px; line-height: 1.2; color: var(--cf-ink);
}

.week-hour {
  padding: 8px 10px;
  font-size: 12px; font-weight: 600;
  color: var(--cf-ink-3);
  background: var(--cf-bg);
  border-right: 1px solid var(--cf-line-2);
  border-bottom: 1px solid var(--cf-line-2);
  text-align: right;
}
.week-cell {
  min-height: 80px;
  background: #fff;
  border-right: 1px solid var(--cf-line-2);
  border-bottom: 1px solid var(--cf-line-2);
  padding: 6px;
  position: relative;
}
.week-cell:nth-child(6n) { border-right: none; }
.week-cell.past { background: repeating-linear-gradient(45deg, #fff 0 8px, #faf7f2 8px 12px); }
.week-cell.closed { background: var(--cf-line-2); }

.week-lunch {
  grid-column: 2 / -1;
  padding: 8px 12px;
  background: var(--cf-line-2);
  color: var(--cf-ink-3);
  font-size: 11px; font-weight: 600;
  text-align: center;
  letter-spacing: .04em; text-transform: uppercase;
  border-bottom: 1px solid var(--cf-line-2);
}

.week-appt {
  display: flex; flex-direction: column; gap: 2px;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  border-left: 3px solid var(--cf-navy-700);
  background: var(--cf-navy-50);
  color: var(--cf-ink);
  transition: transform .08s, box-shadow .12s;
  font-family: inherit;
  min-height: 64px;
  text-decoration: none;
}
.week-appt:hover { box-shadow: 0 4px 12px -4px rgba(15,40,70,.20); transform: translateY(-1px); }
.week-appt:focus-visible {
  outline: 2px solid var(--cf-cyan-600);
  outline-offset: 2px;
}
.week-appt-time {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700; font-size: 13px; line-height: 1.1;
}
.week-appt-name {
  font-size: 12px; font-weight: 600; color: var(--cf-ink-2); line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.week-appt-tag {
  margin-top: 2px;
  font-size: 10px; font-weight: 700;
  color: var(--cf-sub);
  display: inline-flex; align-items: center; gap: 3px;
}
.week-appt-edison { border-left-color: var(--cf-navy-700); background: var(--cf-navy-50); }
.week-appt-andrea { border-left-color: var(--cf-cyan-600); background: var(--cf-cyan-50); }
.week-appt-sub    { border-left-color: var(--cf-sub);      background: var(--cf-sub-bg); }

@media (max-width: 640px) {
  .week-head { padding: 12px 14px; flex-direction: column; align-items: stretch; }
  .week-nav { justify-content: space-between; }
  .week-title { text-align: center; }
  .week-legend { justify-content: center; flex-wrap: wrap; font-size: 11px; }
  .week-grid { grid-template-columns: 56px repeat(5, minmax(110px, 1fr)); min-width: 600px; }
  .week-hour { font-size: 11px; padding: 6px 8px; }
  .week-dnum { font-size: 17px; }
  .week-appt { padding: 6px 8px; min-height: 56px; }
  .week-appt-name { font-size: 11px; }
}

@media (max-width: 640px) {
  .admin-table thead { display: none; }
  .admin-table, .admin-table tbody { display: block; width: 100%; }
  .admin-table tr { display: block; width: 100%; }
  .admin-table tbody tr {
    padding: 14px 16px;
    border-bottom: 1px solid var(--cf-line-2);
    background: #fff;
  }
  .admin-table tbody tr:hover { background: var(--cf-bg); }
  .admin-table tbody td {
    display: block;
    padding: 4px 0;
    border-bottom: none;
    vertical-align: top;
  }
  .admin-table tbody td:first-child {
    font-weight: 700;
    padding-bottom: 6px;
    margin-bottom: 6px;
    border-bottom: 1px dashed var(--cf-line-2);
  }
  .admin-table tbody td.admin-cell-actions {
    display: flex; gap: 6px; justify-content: flex-start;
    padding-top: 10px;
  }
  .admin-table tbody td.admin-cell-actions .btn { flex: 1; }
}
