:root {
  color-scheme: light;
  --ink: #352920;
  --muted: #85766b;
  --line: #e6dbd0;
  --paper: #f6efe8;
  --card: rgba(255, 253, 250, 0.92);
  --dark: #2d211b;
  --dark-soft: #3a2b23;
  --green: #7b5138;
  --green-soft: #f0e1d5;
  --gold: #b9825f;
  --gold-soft: #f5e7db;
  --red: #a35d48;
  --shadow: 0 10px 30px rgba(70, 45, 30, 0.055);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f7f8f5 0%, var(--paper) 46%, #eef1eb 100%);
  font-family: "Segoe UI Variable Text", "Segoe UI", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(184, 131, 70, 0.34);
  outline-offset: 2px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

[hidden] {
  display: none !important;
}

svg {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.app-shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 28px 18px 20px;
  color: #f7f5ee;
  background:
    radial-gradient(circle at 0 0, rgba(184, 131, 70, 0.12), transparent 22rem),
    var(--dark);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #e7c79e;
  border: 1px solid rgba(231, 199, 158, 0.28);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
}

.brand-mark svg {
  width: 25px;
  height: 25px;
}

.brand strong {
  display: block;
  font-family: "Arial Narrow", "Roboto Condensed", sans-serif;
  font-size: 17px;
  letter-spacing: 0.16em;
}

.brand span {
  display: block;
  margin-top: 4px;
  color: #a9ada2;
  font-size: 11px;
  letter-spacing: 0.03em;
}

.main-nav {
  display: grid;
  gap: 7px;
  margin-top: 52px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  color: #aeb2a8;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
  color: #fff;
  border-color: rgba(231, 199, 158, 0.13);
  background: linear-gradient(100deg, rgba(184, 131, 70, 0.22), rgba(255, 255, 255, 0.05));
  box-shadow: inset 3px 0 0 #c69862;
}

.nav-item svg {
  width: 19px;
  height: 19px;
}

.nav-item span {
  font-size: 13px;
  font-weight: 600;
}

.nav-count {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  margin-left: auto;
  padding: 0 7px;
  color: #f2d8b9 !important;
  font-size: 11px !important;
  border-radius: 8px;
  background: rgba(184, 131, 70, 0.2);
}

.sidebar-bottom {
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.demo-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.demo-card .status-dot {
  margin-top: 5px;
}

.demo-card strong,
.demo-card span {
  display: block;
}

.demo-card strong {
  font-size: 11px;
  font-weight: 650;
}

.demo-card div span {
  margin-top: 4px;
  color: #959a90;
  font-size: 10px;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #70a684;
  box-shadow: 0 0 0 4px rgba(112, 166, 132, 0.11);
}

.settings {
  min-height: 42px;
}

.main-content {
  width: 100%;
  max-width: 1660px;
  margin: 0 auto;
  padding: 34px clamp(22px, 3vw, 48px) 22px;
}

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

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #818579;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.15em;
}

.topbar h1 {
  margin: 10px 0 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.topbar p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.topbar-actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 43px;
  padding: 0 17px;
  font-size: 12px;
  font-weight: 650;
  border: 1px solid transparent;
  border-radius: 9px;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: var(--green);
  box-shadow: 0 8px 18px rgba(36, 75, 61, 0.17);
}

.button-primary:hover {
  background: #193c2f;
  box-shadow: 0 10px 24px rgba(36, 75, 61, 0.22);
}

.button-secondary {
  color: #454a40;
  border-color: #d9dbd2;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 3px 9px rgba(34, 38, 29, 0.025);
}

.button-secondary:hover {
  background: #fff;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 22px;
}

.metric-card {
  min-height: 132px;
  padding: 18px 19px 16px;
  border: 1px solid rgba(213, 220, 211, 0.92);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #70756a;
  font-size: 11px;
  font-weight: 650;
}

.metric-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.metric-icon svg {
  width: 16px;
  height: 16px;
}

.metric-icon.warm {
  color: #97662f;
  background: var(--gold-soft);
}

.metric-icon.green {
  color: #397053;
  background: var(--green-soft);
}

.metric-icon.blue {
  color: #50697d;
  background: #e7edf1;
}

.metric-icon.neutral {
  color: #686d62;
  background: #eceee8;
}

.metric-card > strong {
  display: block;
  margin-top: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 35px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.metric-card > strong small {
  color: #7c8076;
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

.metric-card p {
  margin: 8px 0 0;
  color: #93968d;
  font-size: 10px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(290px, 0.82fr);
  gap: 20px;
  align-items: start;
}

.panel {
  overflow: hidden;
  border: 1px solid rgba(213, 220, 211, 0.96);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 23px 24px 18px;
}

.panel-heading.compact {
  align-items: center;
  padding-bottom: 16px;
}

.panel h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.panel-heading p {
  margin: 6px 0 0;
  color: #8b8e84;
  font-size: 10px;
  line-height: 1.5;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  color: #517260;
  font-size: 9px;
  font-weight: 700;
  border: 1px solid #d8e6dc;
  border-radius: 20px;
  background: rgba(235, 244, 238, 0.72);
}

.live-badge .status-dot {
  width: 5px;
  height: 5px;
  box-shadow: none;
  animation: pulse 2.4s ease-in-out infinite;
}

.queue-tabs {
  display: flex;
  gap: 5px;
  margin: 0 24px 8px;
  padding: 4px;
  border: 1px solid #e4e5de;
  border-radius: 11px;
  background: rgba(239, 240, 234, 0.74);
}

.queue-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 12px;
  color: #7e8277;
  font-size: 10px;
  font-weight: 650;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.queue-tab span {
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  font-size: 8px;
  border-radius: 6px;
  background: rgba(32, 35, 30, 0.06);
}

.queue-tab.active {
  color: #30372f;
  background: #fff;
  box-shadow: 0 2px 7px rgba(34, 38, 29, 0.07);
}

.queue-tab.active span {
  color: #3b6652;
  background: #e7efe9;
}

.queue-columns {
  display: grid;
  grid-template-columns: 54px minmax(118px, 0.8fr) minmax(145px, 1.05fr) 72px auto;
  align-items: center;
  gap: 13px;
  margin: 0 12px 4px;
  padding: 0 12px;
  color: #929a90;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.align-right {
  text-align: right;
}

.queue-list {
  padding: 0 12px 8px;
}

.queue-row {
  display: grid;
  grid-template-columns: 54px minmax(118px, 0.8fr) minmax(145px, 1.05fr) 72px auto;
  align-items: center;
  gap: 13px;
  min-height: 71px;
  padding: 10px 12px;
  border-bottom: 1px solid #eceee8;
  animation: fadeUp 240ms ease both;
  transition: background 150ms ease;
}

.queue-row:hover {
  background: rgba(245, 247, 242, 0.8);
}

.queue-row:last-child {
  border-bottom: 0;
}

.queue-row.in-service {
  margin: 4px 0;
  border: 1px solid #dce7df;
  border-radius: 9px;
  background: rgba(232, 241, 234, 0.56);
}

.queue-row.in-service:hover {
  background: rgba(226, 238, 229, 0.82);
}

.ticket-badge {
  display: grid;
  place-items: center;
  width: 51px;
  height: 39px;
  color: #775630;
  font-family: "Arial Narrow", "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  border: 1px solid #e9dcc9;
  border-radius: 7px;
  background: #f8f1e7;
}

.in-service .ticket-badge {
  color: #2f624b;
  border-color: #d6e5da;
  background: #e6f0e9;
}

.client-cell {
  min-width: 0;
}

.client-cell strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-cell span {
  display: block;
  margin-top: 5px;
  color: #92958c;
  font-size: 9px;
}

.service-cell strong {
  display: block;
  font-size: 10px;
  font-weight: 650;
}

.service-cell span {
  display: block;
  margin-top: 5px;
  color: #92958c;
  font-size: 9px;
}

.status-cell {
  display: inline-flex;
  justify-content: center;
  min-width: 62px;
  padding: 6px 8px;
  color: #8d6c3f;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 20px;
  background: #f5eddf;
}

.status-cell.in-service {
  color: #35654e;
  background: #e2eee6;
}

.row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.mini-button {
  min-height: 31px;
  padding: 0 10px;
  color: #596052;
  font-size: 9px;
  font-weight: 700;
  border: 1px solid #dfe1d8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.75);
}

.mini-button:hover {
  border-color: #b9c8bd;
  background: #fff;
}

.mini-button.primary {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.mini-button.primary:hover {
  background: #193c2f;
}

.mini-button.danger {
  padding: 0 8px;
  color: #a2695e;
  border-color: transparent;
  background: transparent;
}

.mini-button.danger:hover {
  color: var(--red);
  background: #fbefec;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 210px;
  padding: 30px;
  color: #7c8175;
  text-align: center;
}

.empty-state strong {
  margin-bottom: 7px;
  color: #444b40;
  font-family: Georgia, serif;
  font-size: 19px;
  font-weight: 500;
}

.empty-state span {
  max-width: 260px;
  font-size: 11px;
  line-height: 1.6;
}

.queue-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
  padding: 14px 24px;
  border-top: 1px solid #e7e8e0;
  background: rgba(247, 247, 243, 0.7);
}

.next-ticket {
  display: flex;
  align-items: center;
  gap: 10px;
}

.next-ticket span {
  color: #8c9085;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.next-ticket strong {
  color: #70502e;
  font-family: "Arial Narrow", sans-serif;
  font-size: 19px;
  letter-spacing: 0.04em;
}

.queue-footer p {
  margin: 0;
  color: #9a9d94;
  font-size: 9px;
  text-align: right;
}

.right-column {
  display: grid;
  gap: 20px;
}

.small-label {
  color: #989b92;
  font-size: 9px;
  font-weight: 600;
}

.barbers-list {
  display: grid;
  gap: 8px;
  padding: 0 15px 15px;
}

.barber-card {
  display: grid;
  grid-template-columns: 37px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid #e3e7df;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.56);
}

.barber-card.busy {
  border-color: #dbe7df;
  background: rgba(237, 245, 239, 0.55);
}

.avatar {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  color: #775a37;
  font-family: Georgia, serif;
  font-size: 14px;
  border-radius: 9px;
  background: #eee3d3;
}

.barber-card:nth-child(2) .avatar {
  color: #456551;
  background: #dfeae2;
}

.barber-card:nth-child(3) .avatar {
  color: #586777;
  background: #e2e8ec;
}

.barber-info {
  min-width: 0;
}

.barber-info strong {
  display: block;
  font-size: 11px;
}

.barber-info span {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: #898e82;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.barber-info span.available {
  color: #4e7b62;
}

.barber-card .mini-button {
  white-space: nowrap;
}

.now-panel {
  position: relative;
  overflow: hidden;
  color: #f5f3ec;
  border-color: #2d332a;
  background:
    radial-gradient(circle at 90% 0, rgba(184, 131, 70, 0.22), transparent 19rem),
    linear-gradient(145deg, #242a22, #171a15);
  box-shadow: 0 18px 40px rgba(23, 25, 20, 0.16);
}

.now-panel::after {
  position: absolute;
  right: -55px;
  bottom: -80px;
  width: 190px;
  height: 190px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(255, 255, 255, 0.018), 0 0 0 56px rgba(255, 255, 255, 0.012);
  pointer-events: none;
}

.now-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 22px 12px;
}

.now-kicker {
  color: #c9a477;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.now-heading h2 {
  margin-top: 7px;
  color: #f4f1e8;
  font-size: 19px;
}

.screen-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #a9b7ac;
  font-size: 8px;
}

.screen-status .status-dot {
  width: 5px;
  height: 5px;
  box-shadow: none;
}

.now-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 13px 22px 23px;
}

.now-ticket {
  color: #e9c9a3;
  font-family: "Arial Narrow", sans-serif;
  font-size: clamp(43px, 4vw, 59px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

.now-details {
  min-width: 0;
}

.now-details > strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.now-details > span {
  display: block;
  margin-top: 5px;
  color: #9fa59a;
  font-size: 9px;
}

.barber-chip {
  display: inline-flex;
  margin-top: 9px;
  padding: 5px 8px;
  color: #d2d8cf;
  font-size: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
}

.up-next-line {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.12);
}

.up-next-line > span {
  color: #969c91;
  font-size: 9px;
}

.up-next-line > strong {
  color: #e7d2b7;
  font-family: "Arial Narrow", sans-serif;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.text-button {
  margin-left: auto;
  padding: 5px 0;
  color: #cbb18f;
  font-size: 9px;
  font-weight: 700;
  border: 0;
  background: transparent;
}

.text-button:hover {
  color: #f1d7b8;
}

.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding: 0 4px;
  color: #a0a398;
  font-size: 9px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(20, 24, 19, 0.46);
  backdrop-filter: blur(10px);
  animation: fadeIn 160ms ease;
}

.glass-modal {
  width: min(100%, 480px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 18px;
  background: rgba(248, 249, 245, 0.9);
  box-shadow: 0 24px 80px rgba(13, 19, 13, 0.28);
  backdrop-filter: blur(26px) saturate(1.15);
  animation: modalIn 200ms ease;
}

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

.modal-heading h2 {
  margin: 8px 0 0;
  font-family: Georgia, serif;
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.close-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #6d7367;
  font-size: 23px;
  line-height: 1;
  border: 1px solid #dcded5;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.5);
}

.close-button:hover {
  color: #30372f;
  background: #fff;
}

.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 17px 0 8px;
  color: #4f574a;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.025em;
}

.field-label:first-child {
  margin-top: 0;
}

.field-label span {
  color: #999d92;
  font-size: 8px;
  font-weight: 500;
}

.text-input {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  color: #30372e;
  font-size: 12px;
  border: 1px solid #d9dcd2;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.66);
  transition: border-color 150ms ease, background 150ms ease;
}

.text-input::placeholder {
  color: #a4a79f;
}

.text-input:focus {
  border-color: #9bb4a5;
  background: #fff;
}

.service-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.service-option {
  min-height: 62px;
  padding: 10px;
  color: #697064;
  font-size: 9px;
  font-weight: 700;
  text-align: left;
  border: 1px solid #dcdfd5;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.48);
}

.service-option span {
  display: block;
  margin-top: 6px;
  color: #969c90;
  font-size: 8px;
  font-weight: 500;
}

.service-option:hover {
  border-color: #b7c7ba;
}

.service-option.selected {
  color: #315c47;
  border-color: #9bb6a5;
  background: rgba(228, 239, 231, 0.82);
  box-shadow: inset 0 0 0 1px rgba(36, 75, 61, 0.08);
}

.service-option.selected span {
  color: #668372;
}

.modal-note {
  margin-top: 18px;
  padding: 11px 12px;
  color: #7e8577;
  font-size: 9px;
  line-height: 1.6;
  border: 1px solid rgba(184, 131, 70, 0.13);
  border-radius: 10px;
  background: rgba(244, 234, 219, 0.5);
}

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

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: min(420px, calc(100vw - 32px));
  min-height: 52px;
  padding: 12px 12px 12px 17px;
  color: #f7f7f2;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(28, 34, 27, 0.88);
  box-shadow: 0 14px 40px rgba(15, 21, 15, 0.25);
  backdrop-filter: blur(20px);
  animation: toastIn 220ms ease;
}

.toast > span {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
}

.toast-action {
  padding: 6px 8px;
  color: #e9c99f;
  font-size: 10px;
  font-weight: 750;
  border: 0;
  border-radius: 7px;
  background: rgba(184, 131, 70, 0.16);
}

.toast-close {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  color: #b9beb4;
  font-size: 19px;
  border: 0;
  border-radius: 7px;
  background: transparent;
}

.toast-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.public-screen {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: #f4f1e7;
  background:
    radial-gradient(circle at 12% 12%, rgba(184, 131, 70, 0.14), transparent 30rem),
    radial-gradient(circle at 90% 90%, rgba(80, 112, 88, 0.16), transparent 32rem),
    #131611;
}

.public-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 110px;
  padding: 25px clamp(24px, 4vw, 64px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.public-brand .brand-mark {
  width: 50px;
  height: 50px;
}

.public-brand .brand strong {
  font-size: 20px;
}

.public-brand .brand span {
  color: #91998c;
  font-size: 11px;
}

.public-clock {
  text-align: right;
}

.public-clock strong {
  display: block;
  color: #e9c9a3;
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.public-clock span {
  display: block;
  margin-top: 3px;
  color: #8e9689;
  font-size: 10px;
  text-transform: capitalize;
}

.public-main {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.75fr);
  flex: 1;
  min-height: 0;
}

.public-now {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 30px 70px;
  text-align: center;
}

.public-label {
  color: #9da494;
  font-size: clamp(10px, 1vw, 13px);
  font-weight: 700;
  letter-spacing: 0.24em;
}

.public-ticket {
  margin: 22px 0 18px;
  color: #eac9a1;
  font-family: "Arial Narrow", Impact, sans-serif;
  font-size: clamp(120px, 19vw, 300px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.85;
  text-shadow: 0 14px 60px rgba(184, 131, 70, 0.13);
}

.public-now h1 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.public-barber {
  margin-top: 18px;
  padding: 11px 18px;
  color: #c6d3c9;
  font-size: clamp(12px, 1.3vw, 17px);
  border: 1px solid rgba(172, 203, 182, 0.18);
  border-radius: 999px;
  background: rgba(109, 149, 121, 0.09);
}

.public-now p {
  margin: 30px 0 0;
  color: #858e7f;
  font-size: clamp(10px, 1vw, 13px);
}

.public-next {
  display: flex;
  flex-direction: column;
  padding: 44px clamp(22px, 3vw, 42px);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.018);
}

.public-next-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 22px;
  color: #b5bbae;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.public-next-heading span:last-child {
  color: #788171;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0;
}

.public-queue-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 86px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.public-queue-item:first-child {
  min-height: 102px;
}

.public-queue-item:first-child .public-queue-ticket {
  color: #e9c79e;
}

.public-queue-ticket {
  color: #cdd3c7;
  font-family: "Arial Narrow", sans-serif;
  font-size: clamp(27px, 3vw, 43px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.public-queue-item strong {
  display: block;
  overflow: hidden;
  font-size: clamp(12px, 1.25vw, 16px);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-queue-item span:last-child {
  display: block;
  margin-top: 5px;
  color: #7f8979;
  font-size: 10px;
}

.public-tip {
  margin-top: auto;
  padding-top: 30px;
  color: #737d6e;
  font-size: 10px;
  line-height: 1.7;
}

.public-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 16px clamp(24px, 4vw, 64px);
  color: #747e6e;
  font-size: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.public-back {
  min-height: 36px;
  padding: 0 14px;
  color: #b6beb0;
  font-size: 10px;
  font-weight: 650;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
}

.public-back:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

body.public-mode {
  overflow: hidden;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

@media (max-width: 1220px) {
  .app-shell {
    grid-template-columns: 206px minmax(0, 1fr);
  }

  .sidebar {
    padding-inline: 13px;
  }

  .workspace-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(275px, 0.8fr);
  }

  .queue-row,
  .queue-columns {
    grid-template-columns: 51px minmax(110px, 0.9fr) minmax(120px, 1fr) auto;
    gap: 10px;
  }

  .queue-columns span:nth-child(4),
  .status-cell {
    display: none;
  }
}

@media (max-width: 1020px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: sticky;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    width: 100%;
    height: auto;
    min-height: 76px;
    padding: 13px 22px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .brand {
    flex: 0 0 auto;
    padding: 0;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand span {
    font-size: 9px;
  }

  .main-nav {
    display: flex;
    gap: 4px;
    margin: 0 0 0 auto;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-item {
    min-height: 40px;
    padding: 0 11px;
  }

  .nav-item.active {
    box-shadow: none;
  }

  .nav-item span {
    font-size: 11px;
  }

  .nav-count,
  .sidebar-bottom {
    display: none !important;
  }

  .main-content {
    padding-top: 26px;
  }

  .workspace-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(275px, 0.8fr);
  }
}

@media (max-width: 820px) {
  .topbar {
    align-items: flex-start;
  }

  .topbar-actions {
    flex-direction: column-reverse;
  }

  .topbar-actions .button {
    min-height: 39px;
    padding-inline: 13px;
  }

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

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

  .right-column {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .queue-row,
  .queue-columns {
    grid-template-columns: 51px minmax(110px, 0.9fr) minmax(120px, 1fr) auto;
  }

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

  .public-next {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 0;
  }

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

  .public-tip {
    margin-top: 20px;
    padding-top: 0;
  }

  body.public-mode {
    overflow: auto;
  }
}

@media (max-width: 620px) {
  .sidebar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 11px;
    padding: 12px 16px 10px;
  }

  .brand {
    justify-content: center;
  }

  .brand span {
    display: none;
  }

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

  .brand-mark svg {
    width: 21px;
    height: 21px;
  }

  .brand strong {
    font-size: 13px;
  }

  .main-nav {
    justify-content: space-between;
    width: 100%;
    margin: 0;
  }

  .nav-item {
    justify-content: center;
    gap: 6px;
    min-height: 35px;
    padding: 0 8px;
  }

  .nav-item svg {
    width: 16px;
    height: 16px;
  }

  .nav-item span {
    font-size: 9px;
  }

  .main-content {
    padding: 22px 14px 18px;
  }

  .topbar {
    display: block;
    margin-bottom: 20px;
  }

  .topbar h1 {
    font-size: 32px;
  }

  .topbar p {
    font-size: 10px;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 18px;
  }

  .topbar-actions .button {
    width: 100%;
    font-size: 10px;
  }

  .topbar-actions .button svg {
    width: 17px;
    height: 17px;
  }

  .summary-grid {
    gap: 10px;
    margin-bottom: 15px;
  }

  .metric-card {
    min-height: 124px;
    padding: 16px;
  }

  .metric-top {
    font-size: 10px;
  }

  .metric-icon {
    width: 26px;
    height: 26px;
  }

  .metric-icon svg {
    width: 14px;
    height: 14px;
  }

  .metric-card > strong {
    font-size: 30px;
  }

  .panel {
    border-radius: 16px;
  }

  .panel-heading {
    padding: 19px 17px 15px;
  }

  .panel-heading p {
    font-size: 9px;
  }

  .panel h2 {
    font-size: 20px;
  }

  .live-badge {
    padding: 5px 7px;
    font-size: 8px;
  }

  .queue-tabs {
    margin-inline: 15px;
  }

  .queue-tab {
    flex: 1;
    gap: 5px;
    padding-inline: 6px;
    font-size: 9px;
  }

  .queue-columns {
    display: none;
  }

  .queue-list {
    padding-inline: 8px;
  }

  .queue-row {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 9px;
    min-height: 77px;
    padding: 10px 8px;
  }

  .ticket-badge {
    width: 46px;
    height: 37px;
    font-size: 13px;
  }

  .service-cell {
    grid-column: 2 / 4;
    grid-row: 2;
    display: flex;
    gap: 6px;
    margin-top: -3px;
  }

  .service-cell span {
    margin-top: 0;
  }

  .row-actions {
    grid-column: 3;
    grid-row: 1;
  }

  .mini-button {
    padding-inline: 8px;
    font-size: 8px;
  }

  .mini-button.danger {
    font-size: 0;
  }

  .mini-button.danger::after {
    content: "Quitar";
    font-size: 8px;
  }

  .queue-footer {
    display: block;
    padding: 14px 17px;
  }

  .queue-footer p {
    margin-top: 7px;
    font-size: 8px;
    text-align: left;
  }

  .right-column {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .barbers-list {
    padding-inline: 12px;
  }

  .now-content {
    gap: 15px;
  }

  .now-ticket {
    font-size: 52px;
  }

  .page-footer {
    display: block;
    text-align: center;
  }

  .page-footer span {
    display: block;
    margin-top: 5px;
  }

  .modal-backdrop {
    align-items: end;
    padding: 0;
  }

  .glass-modal {
    width: 100%;
    max-height: 92vh;
    padding: 22px 18px calc(20px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
  }

  .service-options {
    grid-template-columns: 1fr;
  }

  .service-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
  }

  .service-option span {
    margin-top: 0;
  }

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

  .toast {
    right: 16px;
    bottom: 16px;
    left: 16px;
    gap: 10px;
  }

  .public-header {
    min-height: 90px;
    padding: 18px;
  }

  .public-brand .brand-mark {
    width: 38px;
    height: 38px;
  }

  .public-brand .brand strong {
    font-size: 15px;
  }

  .public-brand .brand span {
    font-size: 8px;
  }

  .public-clock strong {
    font-size: 22px;
  }

  .public-clock span {
    font-size: 8px;
  }

  .public-now {
    min-height: 480px;
    padding: 45px 20px;
  }

  .public-ticket {
    font-size: clamp(115px, 34vw, 180px);
  }

  .public-next {
    padding: 28px 20px;
  }

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

  .public-footer {
    padding-inline: 18px;
  }

  .public-footer > span {
    display: none;
  }

  .public-back {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  color: var(--ink);
  background: linear-gradient(180deg, #fffaf6 0%, var(--paper) 52%, #eee1d5 100%);
}

.sidebar {
  color: #fbf6f1;
  background:
    radial-gradient(circle at 0 0, rgba(197, 151, 116, 0.18), transparent 23rem),
    linear-gradient(180deg, #33251e, #241b16);
}

.brand-mark {
  color: #e4bfa2;
  border-color: rgba(228, 191, 162, 0.28);
  background: rgba(255, 248, 241, 0.045);
}

.brand span,
.nav-item,
.demo-card div span {
  color: #c6b5a8;
}

.nav-item.active {
  border-color: rgba(228, 191, 162, 0.14);
  background: linear-gradient(100deg, rgba(185, 130, 95, 0.26), rgba(255, 255, 255, 0.045));
  box-shadow: inset 3px 0 0 #c99a75;
}

.nav-count {
  color: #f1d3b9 !important;
  background: rgba(185, 130, 95, 0.22);
}

.demo-card {
  border-color: rgba(255, 248, 241, 0.08);
  background: rgba(255, 248, 241, 0.035);
}

.status-dot {
  background: #b88966;
  box-shadow: 0 0 0 4px rgba(184, 137, 102, 0.12);
}

.eyebrow,
.metric-top,
.panel-heading p,
.metric-card p,
.queue-columns,
.client-cell span,
.service-cell span,
.queue-footer p,
.small-label,
.page-footer {
  color: #918276;
}

.button-primary,
.mini-button.primary {
  color: #fffaf6;
  border-color: #7b5138;
  background: #7b5138;
  box-shadow: 0 8px 18px rgba(105, 66, 44, 0.16);
}

.button-primary:hover,
.mini-button.primary:hover {
  border-color: #62402d;
  background: #62402d;
  box-shadow: 0 10px 24px rgba(105, 66, 44, 0.2);
}

.button-secondary {
  color: #5b4638;
  border-color: #e2d5c9;
  background: rgba(255, 253, 250, 0.72);
}

.button-secondary:hover {
  background: #fff;
}

.button-quiet {
  color: #8a6a54;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.button-quiet:hover {
  color: #5e402e;
  background: rgba(123, 81, 56, 0.06);
}

.metric-card,
.panel {
  border-color: #e7ddd3;
}

.metric-icon.warm {
  color: #8b5b3e;
  background: #f3e3d5;
}

.metric-icon.green {
  color: #7a5138;
  background: #eee0d4;
}

.metric-icon.blue {
  color: #8c6a55;
  background: #f0e7e1;
}

.metric-icon.neutral {
  color: #7d6a5e;
  background: #eee7e2;
}

.metric-card > strong small {
  color: #8d7b6e;
}

.live-badge {
  color: #8a654c;
  border-color: #ead8c7;
  background: rgba(250, 240, 231, 0.82);
}

.queue-tabs {
  border-color: #e8ded4;
  background: rgba(244, 238, 232, 0.82);
}

.queue-tab {
  color: #8b7b6e;
}

.queue-tab.active {
  color: #49372b;
  background: #fffdfa;
}

.queue-tab.active span {
  color: #7d563c;
  background: #f0e2d6;
}

.queue-row {
  border-bottom-color: #eee6de;
}

.queue-row:hover {
  background: rgba(250, 246, 241, 0.86);
}

.queue-row.in-service {
  border-color: #e6d5c5;
  background: rgba(248, 240, 233, 0.68);
}

.queue-row.in-service:hover {
  background: rgba(244, 233, 223, 0.9);
}

.ticket-badge {
  color: #7a5136;
  border-color: #ead7c4;
  background: #faf0e5;
}

.in-service .ticket-badge {
  color: #6f4b35;
  border-color: #e5d1bf;
  background: #f2e5d9;
}

.status-cell {
  color: #8b684e;
  background: #f4e9de;
}

.status-cell.in-service {
  color: #6f4b35;
  background: #eddfd2;
}

.mini-button {
  color: #665244;
  border-color: #e3d8cf;
  background: rgba(255, 253, 250, 0.78);
}

.mini-button:hover {
  border-color: #cbb29f;
  background: #fff;
}

.mini-button.danger {
  color: #a46b56;
}

.mini-button.danger:hover {
  color: #8f4d3b;
  background: #fbefe9;
}

.empty-state {
  color: #88786b;
}

.empty-state strong {
  color: #4c382b;
}

.queue-footer {
  border-top-color: #e9e0d7;
  background: rgba(250, 247, 243, 0.82);
}

.next-ticket span {
  color: #948477;
}

.next-ticket strong {
  color: #7a5138;
}

.barber-card {
  border-color: #e9e0d8;
}

.barber-card.busy {
  border-color: #e6d5c5;
  background: rgba(248, 240, 233, 0.72);
}

.avatar {
  color: #765139;
  background: #eee0d3;
}

.barber-card:nth-child(2) .avatar {
  color: #865f47;
  background: #ead8c9;
}

.barber-card:nth-child(3) .avatar {
  color: #6f5142;
  background: #e7ddd6;
}

.barber-info span {
  color: #918176;
}

.barber-info span.available {
  color: #8a654d;
}

.now-panel {
  color: #fbf6f1;
  border-color: #4a362b;
  background:
    radial-gradient(circle at 90% 0, rgba(197, 151, 116, 0.24), transparent 19rem),
    linear-gradient(145deg, #3b2a22, #241b16);
  box-shadow: 0 18px 40px rgba(52, 34, 24, 0.18);
}

.now-kicker {
  color: #d7b18e;
}

.now-heading h2 {
  color: #f8f1ea;
}

.screen-status,
.now-details > span,
.up-next-line > span {
  color: #c0ad9e;
}

.now-ticket,
.up-next-line > strong {
  color: #efd0ae;
}

.barber-chip {
  color: #eadbce;
  border-color: rgba(255, 248, 241, 0.12);
  background: rgba(255, 248, 241, 0.06);
}

.up-next-line {
  border-top-color: rgba(255, 248, 241, 0.09);
  background: rgba(33, 23, 18, 0.2);
}

.text-button {
  color: #d9b593;
}

.text-button:hover {
  color: #f1d7b8;
}

.glass-modal {
  border-color: rgba(255, 253, 250, 0.64);
  background: rgba(252, 248, 243, 0.9);
}

.close-button {
  color: #786457;
  border-color: #e2d5c9;
}

.field-label {
  color: #5b4435;
}

.field-label span {
  color: #a08f81;
}

.text-input {
  color: #3c2d23;
  border-color: #e0d3c7;
  background: rgba(255, 253, 250, 0.74);
}

.text-input::placeholder {
  color: #aa998b;
}

.text-input:focus {
  border-color: #c3a087;
  background: #fff;
}

.service-option {
  color: #786252;
  border-color: #e3d7cc;
  background: rgba(255, 253, 250, 0.56);
}

.service-option span {
  color: #a08d7d;
}

.service-option:hover {
  border-color: #cdb29e;
}

.service-option.selected {
  color: #68462f;
  border-color: #c6a388;
  background: rgba(244, 230, 217, 0.88);
}

.service-option.selected span {
  color: #927057;
}

.modal-note {
  color: #887262;
  border-color: rgba(185, 130, 95, 0.16);
  background: rgba(245, 231, 219, 0.62);
}

.toast {
  color: #fff9f3;
  border-color: rgba(255, 248, 241, 0.15);
  background: rgba(49, 34, 26, 0.9);
}

.toast-action {
  color: #efc9a7;
  background: rgba(185, 130, 95, 0.18);
}

.toast-close {
  color: #d0beb0;
}

.public-screen {
  color: #fbf6f1;
  background:
    radial-gradient(circle at 12% 12%, rgba(197, 151, 116, 0.18), transparent 30rem),
    radial-gradient(circle at 90% 90%, rgba(123, 81, 56, 0.24), transparent 32rem),
    #241b16;
}

.public-brand span,
.public-clock span,
.public-now p,
.public-next-heading span:last-child,
.public-queue-item span:last-child,
.public-tip,
.public-footer {
  color: #b9a696;
}

.public-clock strong,
.public-ticket,
.public-queue-item:first-child .public-queue-ticket {
  color: #efd0ae;
}

.public-barber {
  color: #ead8c9;
  border-color: rgba(228, 191, 162, 0.2);
  background: rgba(185, 130, 95, 0.1);
}

.public-next {
  background: rgba(255, 248, 241, 0.022);
}

.public-queue-item,
.public-header,
.public-footer {
  border-color: rgba(255, 248, 241, 0.09);
}

.public-queue-ticket,
.public-queue-item strong {
  color: #e8d9cc;
}

.public-back {
  color: #d6c1af;
  border-color: rgba(255, 248, 241, 0.14);
  background: rgba(255, 248, 241, 0.04);
}

.customer-screen {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: #352920;
  background:
    radial-gradient(circle at 8% 20%, rgba(229, 190, 163, 0.3), transparent 27rem),
    radial-gradient(circle at 92% 78%, rgba(151, 101, 69, 0.1), transparent 30rem),
    linear-gradient(145deg, #fffdfa, #f8efe7 58%, #f1e3d7);
}

.customer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 27px 38px;
  border-bottom: 1px solid rgba(151, 101, 69, 0.12);
}

.customer-brand .brand-mark {
  color: #7b5138;
  border-color: #dec5b1;
  background: #f6e8dc;
}

.customer-brand .brand strong {
  color: #3c2b21;
  font-size: 18px;
}

.customer-brand .brand span {
  color: #9a8372;
  font-size: 10px;
}

.customer-header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.arrival-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #8a6a54;
  font-size: 10px;
  font-weight: 650;
}

.customer-staff-link {
  min-height: 36px;
  padding: 0 13px;
  color: #72503a;
  font-size: 10px;
  font-weight: 700;
  border: 1px solid #ddc8b7;
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.58);
}

.customer-staff-link:hover {
  color: #4f3424;
  border-color: #c5a58c;
  background: #fffdfa;
}

.customer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 0.86fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
  width: min(1180px, calc(100% - 76px));
  margin: auto;
  padding: 62px 0;
}

.customer-kicker,
.customer-card-heading > span,
.confirmation-kicker {
  color: #9a7154;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.customer-copy h1 {
  max-width: 620px;
  margin: 17px 0 20px;
  color: #38271e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 5.6vw, 76px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.customer-copy > p {
  max-width: 535px;
  margin: 0;
  color: #8b7565;
  font-size: 14px;
  line-height: 1.75;
}

.customer-steps {
  display: grid;
  gap: 15px;
  margin-top: 35px;
}

.customer-steps > div {
  display: flex;
  align-items: center;
  gap: 15px;
}

.customer-steps > div > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  color: #8a6043;
  font-family: Georgia, serif;
  font-size: 12px;
  border: 1px solid #dfc7b4;
  border-radius: 50%;
  background: rgba(255, 253, 250, 0.52);
}

.customer-steps p {
  margin: 0;
  color: #937c6b;
  font-size: 11px;
}

.customer-steps strong {
  color: #5d4231;
  font-weight: 700;
}

.customer-live-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  max-width: 535px;
  margin-top: 38px;
  padding: 21px 24px;
  color: #fbf6f1;
  border: 1px solid #4b3629;
  border-radius: 13px;
  background:
    radial-gradient(circle at 90% 0, rgba(210, 164, 128, 0.16), transparent 16rem),
    linear-gradient(135deg, #3b2a22, #2b201a);
  box-shadow: 0 14px 32px rgba(64, 40, 27, 0.12);
}

.customer-live-card > div:first-child > span,
.customer-next > span {
  display: block;
  color: #c5ab96;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.customer-live-card > div:first-child > strong {
  display: inline-block;
  margin-top: 7px;
  color: #f3d7bd;
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
}

.customer-live-card p {
  display: inline-block;
  margin: 0 0 0 8px;
  color: #bda48f;
  font-size: 10px;
}

.customer-next {
  padding-left: 25px;
  border-left: 1px solid rgba(255, 248, 241, 0.12);
}

.customer-next > strong {
  display: block;
  margin-top: 8px;
  color: #f3d7bd;
  font-family: "Arial Narrow", sans-serif;
  font-size: 25px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}

.customer-form-card {
  min-height: 560px;
  padding: 34px;
  border: 1px solid #e4d3c4;
  border-radius: 18px;
  background: rgba(255, 253, 250, 0.9);
  box-shadow: 0 24px 70px rgba(83, 52, 34, 0.1);
  backdrop-filter: blur(20px);
}

.customer-card-heading {
  margin-bottom: 27px;
}

.customer-card-heading h2 {
  margin: 9px 0 7px;
  color: #3c2b21;
  font-family: Georgia, serif;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.customer-card-heading p {
  margin: 0;
  color: #9a8575;
  font-size: 11px;
}

.customer-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.customer-fieldset legend,
.customer-name-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  color: #5d4433;
  font-size: 11px;
  font-weight: 700;
}

.customer-fieldset legend > span,
.customer-name-label > span {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  color: #875e42;
  font-family: Georgia, serif;
  font-size: 10px;
  border: 1px solid #e2cbb9;
  border-radius: 50%;
  background: #faf0e7;
}

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

.customer-service {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 139px;
  padding: 16px 14px;
  color: #765b49;
  text-align: left;
  border: 1px solid #e6d9ce;
  border-radius: 11px;
  background: #fffdfa;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.customer-service:hover {
  transform: translateY(-2px);
  border-color: #c9a88e;
}

.customer-service.selected {
  color: #65432d;
  border-color: #b98d6c;
  background: #f7e9dc;
  box-shadow: inset 0 0 0 1px rgba(151, 101, 69, 0.08);
}

.customer-service-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  color: #92684b;
  border-radius: 9px;
  background: #f6ece3;
}

.customer-service.selected .customer-service-icon {
  color: #754d34;
  background: #edd8c6;
}

.customer-service-icon svg {
  width: 22px;
  height: 22px;
}

.customer-service strong {
  font-size: 10px;
  line-height: 1.35;
}

.customer-service > span:last-child {
  margin-top: 5px;
  color: #a18a78;
  font-size: 9px;
}

.customer-name-label {
  margin-top: 25px;
}

.customer-name-input {
  width: 100%;
  min-height: 49px;
  padding: 0 15px;
  color: #3c2d23;
  font-size: 13px;
  border: 1px solid #e0d3c7;
  border-radius: 10px;
  background: #fffdfa;
}

.customer-name-input::placeholder {
  color: #b09d8d;
}

.customer-name-input:focus {
  border-color: #bd9475;
  background: #fff;
}

.customer-form-note {
  margin-top: 13px;
  color: #a08b79;
  font-size: 9px;
  line-height: 1.6;
}

.customer-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  margin-top: 23px;
  color: #fffaf6;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #7b5138;
  border-radius: 10px;
  background: #7b5138;
  box-shadow: 0 10px 22px rgba(105, 66, 44, 0.17);
  transition: background 150ms ease, transform 150ms ease;
}

.customer-submit:hover {
  transform: translateY(-1px);
  background: #62402d;
}

.customer-submit svg {
  width: 18px;
  height: 18px;
}

.customer-ticket-confirmation {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 490px;
  text-align: center;
}

.confirmation-check {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: #7b5138;
  border: 1px solid #dfc3ad;
  border-radius: 50%;
  background: #f5e5d8;
}

.confirmation-check svg {
  width: 25px;
  height: 25px;
}

.customer-ticket-confirmation h2 {
  margin: 10px 0 0;
  color: #513a2b;
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 500;
}

.confirmation-ticket {
  margin: 18px 0 10px;
  color: #7b5138;
  font-family: "Arial Narrow", Impact, sans-serif;
  font-size: clamp(82px, 9vw, 118px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.customer-ticket-confirmation > p {
  margin: 0;
  color: #967c68;
  font-size: 11px;
}

.confirmation-position {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 24px;
  padding: 10px 15px;
  color: #82634c;
  border: 1px solid #e6d2c1;
  border-radius: 9px;
  background: #fbf1e8;
}

.confirmation-position span {
  font-size: 10px;
}

.confirmation-position strong {
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 500;
}

.confirmation-note {
  max-width: 320px;
  margin-top: 18px;
  color: #a08a78;
  font-size: 9px;
  line-height: 1.65;
}

.confirmation-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  width: 100%;
  margin-top: 25px;
}

.customer-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 38px 25px;
  color: #a28c7a;
  font-size: 9px;
  border-top: 1px solid rgba(151, 101, 69, 0.1);
}

.avatar {
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

[data-barber-photo="alex"] {
  object-position: 50% 24%;
}

[data-barber-photo="miguel"] {
  object-position: 50% 20%;
}

[data-barber-photo="santiago"] {
  object-position: 50% 32%;
}

.customer-progress {
  display: grid;
  grid-template-columns: auto minmax(16px, 1fr) auto minmax(16px, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.customer-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: #ad998a;
}

.customer-progress-step > span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  font-family: Georgia, serif;
  font-size: 11px;
  border: 1px solid #e3d3c5;
  border-radius: 50%;
  background: #fbf6f1;
}

.customer-progress-step strong {
  font-size: 9px;
  font-weight: 650;
}

.customer-progress-step.active {
  color: #744d35;
}

.customer-progress-step.active > span {
  color: #fffaf6;
  border-color: #8a5e43;
  background: #8a5e43;
  box-shadow: 0 0 0 4px #f3e5d9;
}

.customer-progress-step.complete {
  color: #8a6a53;
}

.customer-progress-step.complete > span {
  color: #7b5138;
  border-color: #d9bda6;
  background: #f0dfd1;
}

.customer-progress-line {
  height: 1px;
  margin-bottom: 18px;
  background: #e7d9cd;
}

.customer-step {
  animation: customer-step-in 180ms ease both;
}

@keyframes customer-step-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.customer-barber-card {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  color: #654634;
  text-align: left;
  border: 1px solid #e5d7cb;
  border-radius: 12px;
  background: #fffdfa;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.customer-barber-card:hover {
  transform: translateY(-2px);
  border-color: #c8a488;
}

.customer-barber-card.selected {
  border-color: #a77857;
  box-shadow: 0 0 0 2px rgba(167, 120, 87, 0.13), 0 9px 20px rgba(94, 58, 36, 0.08);
}

.customer-barber-photo {
  position: relative;
  display: block;
  height: 150px;
  overflow: hidden;
  background: #e9ddd3;
}

.customer-barber-photo::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 45%;
  content: "";
  background: linear-gradient(transparent, rgba(38, 25, 18, 0.32));
  pointer-events: none;
}

.customer-barber-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.customer-barber-card:hover img {
  transform: scale(1.025);
}

.customer-barber-availability {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 1;
  padding: 4px 7px;
  color: #5f4838;
  font-size: 8px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 20px;
  background: rgba(255, 253, 250, 0.92);
}

.customer-barber-availability.busy {
  color: #f8eee5;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(64, 43, 31, 0.82);
}

.customer-barber-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 12px 11px;
}

.customer-barber-meta strong {
  font-size: 11px;
}

.customer-barber-meta > span {
  color: #a28b79;
  font-size: 8px;
}

.customer-barber-card.selected .customer-barber-meta {
  background: #f7eadd;
}

.customer-barber-card.selected .customer-barber-meta > span {
  color: #875c40;
  font-weight: 700;
}

.customer-step-actions {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 10px;
  margin-top: 23px;
}

.customer-step-actions .button,
.customer-step-actions .customer-submit {
  min-height: 50px;
  margin: 0;
}

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

.customer-name-grid .customer-name-label {
  margin-top: 0;
}

.customer-phone-label {
  margin-top: 21px;
}

.customer-phone-field {
  display: flex;
  align-items: center;
  min-height: 49px;
  overflow: hidden;
  border: 1px solid #e0d3c7;
  border-radius: 10px;
  background: #fffdfa;
  transition: border-color 160ms ease, background 160ms ease;
}

.customer-phone-field:focus-within {
  border-color: #bd9475;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(184, 131, 70, 0.1);
}

.customer-phone-field > span {
  display: grid;
  align-items: center;
  align-self: stretch;
  padding: 0 13px;
  color: #76523a;
  font-size: 13px;
  font-weight: 700;
  border-right: 1px solid #e6d8cc;
  background: #f8eee5;
}

.customer-phone-field .customer-name-input {
  min-width: 0;
  min-height: 47px;
  padding-left: 13px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.customer-phone-field .customer-name-input:focus {
  outline: 0;
  background: transparent;
}

.customer-phone-help {
  margin: 7px 0 0;
  color: #a08b79;
  font-size: 9px;
}

.confirmation-ticket {
  font-size: clamp(76px, 7.5vw, 100px);
}

.customer-ticket-confirmation > p:first-of-type {
  margin-top: 8px;
}

.confirmation-lookup-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  margin-top: 20px;
  padding: 12px 13px;
  text-align: left;
  border: 1px solid #dfc4ae;
  border-radius: 11px;
  background: #f8ece1;
}

.confirmation-lookup-code span {
  display: block;
  color: #98765e;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.confirmation-lookup-code strong {
  display: block;
  margin-top: 5px;
  color: #68442f;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 20px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.confirmation-lookup-code .button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 9px;
}

.confirmation-position {
  margin-top: 16px;
}

.confirmation-display-link {
  margin-top: 15px;
  padding: 4px;
  color: #927057;
  font-size: 9px;
  border: 0;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.customer-lookup-view {
  min-height: 490px;
}

.customer-back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 22px;
  padding: 0;
  color: #8c6a51;
  font-size: 10px;
  font-weight: 650;
  border: 0;
  background: transparent;
}

.customer-back-link svg {
  width: 16px;
  height: 16px;
}

.lookup-code-input {
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lookup-error {
  margin: 10px 0 0;
  padding: 10px 12px;
  color: #8e4e3b;
  font-size: 10px;
  line-height: 1.5;
  border: 1px solid #ecd0c3;
  border-radius: 8px;
  background: #fff2ec;
}

.lookup-result {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid #e2cdbd;
  border-radius: 12px;
  background: #fbf3eb;
}

.lookup-result-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}

.lookup-result-top > div > span {
  display: block;
  color: #9a7b65;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.lookup-result-top > div > strong {
  display: block;
  margin-top: 3px;
  color: #714a32;
  font-family: "Arial Narrow", Impact, sans-serif;
  font-size: 42px;
  line-height: 1;
}

.lookup-status {
  padding: 5px 9px;
  color: #775239;
  font-size: 9px;
  font-weight: 700;
  border: 1px solid #dfc3ab;
  border-radius: 20px;
  background: #f4e2d2;
}

.lookup-status[data-status="in-service"] {
  color: #41624b;
  border-color: #c8dbcc;
  background: #e8f1e9;
}

.lookup-status[data-status="completed"] {
  color: #5f645b;
  border-color: #d9ddd4;
  background: #eef0eb;
}

.lookup-status[data-status="cancelled"] {
  color: #934f3d;
  border-color: #e8c9bd;
  background: #fae9e2;
}

.lookup-result h3 {
  margin: 16px 0 13px;
  color: #4e3627;
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 500;
}

.lookup-detail {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 8px 0;
  font-size: 10px;
  border-top: 1px solid #ead9cb;
}

.lookup-detail span {
  color: #9b8270;
}

.lookup-detail strong {
  color: #624531;
  font-weight: 650;
  text-align: right;
}

.lookup-position {
  margin: 12px 0 0;
  padding: 9px 10px;
  color: #7b573e;
  font-size: 10px;
  font-weight: 650;
  text-align: center;
  border-radius: 8px;
  background: #f0dfd1;
}

.lookup-device-note {
  text-align: center;
}

@media (max-width: 980px) {
  .customer-layout {
    grid-template-columns: 1fr;
    gap: 34px;
    width: min(680px, calc(100% - 48px));
    padding: 45px 0;
  }

  .customer-copy h1 {
    max-width: none;
    font-size: clamp(46px, 8vw, 66px);
  }

  .customer-copy > p,
  .customer-live-card {
    max-width: none;
  }

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

  .customer-steps > div {
    align-items: flex-start;
  }

  .customer-form-card {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .customer-header {
    padding: 18px;
  }

  .customer-brand .brand-mark {
    width: 35px;
    height: 35px;
  }

  .customer-brand .brand strong {
    font-size: 14px;
  }

  .customer-brand .brand span,
  .arrival-note {
    display: none;
  }

  .customer-header-actions {
    gap: 0;
  }

  .customer-staff-link {
    min-height: 34px;
    padding-inline: 10px;
    font-size: 9px;
  }

  .customer-layout {
    width: calc(100% - 28px);
    padding: 34px 0;
  }

  .customer-kicker {
    font-size: 8px;
  }

  .customer-copy h1 {
    margin-top: 13px;
    font-size: clamp(40px, 12vw, 54px);
  }

  .customer-copy > p {
    font-size: 12px;
    line-height: 1.65;
  }

  .customer-steps {
    grid-template-columns: 1fr;
    gap: 11px;
    margin-top: 25px;
  }

  .customer-steps > div {
    align-items: center;
  }

  .customer-live-card {
    margin-top: 25px;
    padding: 18px;
  }

  .customer-live-card > div:first-child > strong {
    font-size: 29px;
  }

  .customer-live-card p {
    display: block;
    margin: 5px 0 0;
  }

  .customer-next {
    padding-left: 18px;
  }

  .customer-form-card {
    padding: 23px 18px;
    border-radius: 14px;
  }

  .customer-card-heading h2 {
    font-size: 28px;
  }

  .customer-progress {
    gap: 7px;
    margin-bottom: 23px;
  }

  .customer-progress-step strong {
    font-size: 8px;
  }

  .customer-barber-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .customer-barber-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
  }

  .customer-barber-photo {
    height: 72px;
  }

  .customer-barber-photo::after {
    display: none;
  }

  .customer-barber-availability {
    bottom: 5px;
    left: 5px;
    padding: 3px 5px;
    font-size: 7px;
  }

  .customer-barber-meta {
    padding: 12px 13px;
  }

  .customer-barber-meta strong {
    font-size: 12px;
  }

  .customer-name-grid {
    gap: 9px;
  }

  .customer-service-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .customer-service {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    min-height: 66px;
    padding: 11px 12px;
  }

  .customer-service-icon {
    grid-row: 1 / 3;
    margin: 0;
  }

  .customer-service strong {
    grid-column: 2;
  }

  .customer-service > span:last-child {
    grid-column: 3;
    grid-row: 1 / 3;
    margin: 0;
  }

  .customer-ticket-confirmation {
    min-height: 440px;
  }

  .confirmation-ticket {
    font-size: 92px;
  }

  .confirmation-actions {
    grid-template-columns: 1fr;
  }

  .customer-footer {
    display: block;
    padding: 18px;
    text-align: center;
  }

  .customer-footer span {
    display: block;
    margin-top: 5px;
  }

  .topbar-actions .button-quiet {
    grid-column: 1 / -1;
    order: 3;
    min-height: 30px;
  }
}

@media (max-width: 380px) {
  .customer-name-grid {
    grid-template-columns: 1fr;
  }

  .customer-brand {
    gap: 8px;
    padding-left: 0;
  }

  .customer-header-actions {
    gap: 6px;
  }

  .customer-staff-link {
    padding-inline: 8px;
    font-size: 8px;
  }

  .confirmation-lookup-code {
    gap: 8px;
    padding-inline: 10px;
  }

  .confirmation-lookup-code strong {
    font-size: 18px;
  }
}
