:root {
  --ink: #0b0b0d;
  --charcoal: #151518;
  --cream: #f4f4f4;
  --paper: #ffffff;
  --gold: #e11d2e;
  --green: #0b0b0d;
  --wine: #c1121f;
  --muted: #5d6067;
  --line: rgba(11, 11, 13, 0.14);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(244, 244, 244, 0.94), rgba(244, 244, 244, 0.94)),
    #0b0b0d;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 16px clamp(18px, 4vw, 56px);
  color: var(--paper);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
}

.page-header {
  position: relative;
  color: #ffffff;
  background: var(--charcoal);
}

.brand,
.nav-links,
.quick-stats,
.info-strip,
footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  color: #ffffff;
  background: var(--gold);
  font-size: 0.82rem;
}

.nav-links {
  gap: clamp(14px, 4vw, 34px);
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
}

.header-action,
.primary-button {
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.header-action {
  padding: 11px 18px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: var(--wine);
}

.header-action:hover,
.primary-button:hover {
  background: #9f101b;
}

.nav-links a:hover,
footer a:hover {
  color: var(--gold);
}

.brand:hover .brand-mark {
  background: #ff2638;
}

.primary-button,
.header-action,
.time-option,
footer a,
.brand-mark {
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  color: var(--paper);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 10vw, 110px) clamp(18px, 6vw, 90px);
  color: #ffffff;
  background-color: #050506;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.45)),
    url("data:image/svg+xml,%3Csvg width='140' height='140' viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23c1121f' stroke-width='5' stroke-linecap='round' stroke-linejoin='round' opacity='0.46'%3E%3Cpath d='M45 44h45c7 0 12 5 12 12v18H58c-7 0-13-6-13-13V44Z'/%3E%3Cpath d='M58 74v18h35V74'/%3E%3Cpath d='M43 60H30c-5 0-9 4-9 9v15h22'/%3E%3Cpath d='M102 60h10c5 0 8 4 8 9v15h-18'/%3E%3Cpath d='M75 92v20'/%3E%3Cpath d='M56 112h38'/%3E%3Cpath d='M66 118l-14 12'/%3E%3Cpath d='M84 118l14 12'/%3E%3Cpath d='M92 44V30c0-6-5-10-11-10H62c-6 0-11 4-11 10v14'/%3E%3C/g%3E%3C/svg%3E");
  background-size: auto, 140px 140px;
}

.page-hero h1 {
  max-width: 10.5em;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
}

.barber-profile-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: clamp(54px, 9vw, 96px) 18px;
  color: #ffffff;
  text-align: center;
  background-color: #050506;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.76)),
    url("data:image/svg+xml,%3Csvg width='140' height='140' viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23c1121f' stroke-width='5' stroke-linecap='round' stroke-linejoin='round' opacity='0.46'%3E%3Cpath d='M45 44h45c7 0 12 5 12 12v18H58c-7 0-13-6-13-13V44Z'/%3E%3Cpath d='M58 74v18h35V74'/%3E%3Cpath d='M43 60H30c-5 0-9 4-9 9v15h22'/%3E%3Cpath d='M102 60h10c5 0 8 4 8 9v15h-18'/%3E%3Cpath d='M75 92v20'/%3E%3Cpath d='M56 112h38'/%3E%3Cpath d='M66 118l-14 12'/%3E%3Cpath d='M84 118l14 12'/%3E%3Cpath d='M92 44V30c0-6-5-10-11-10H62c-6 0-11 4-11 10v14'/%3E%3C/g%3E%3C/svg%3E");
  background-size: auto, 140px 140px;
}

.barber-profile-card {
  width: min(720px, 100%);
}

.barber-photo {
  width: clamp(118px, 18vw, 168px);
  height: clamp(118px, 18vw, 168px);
  margin: 0 auto 18px;
  border: 6px solid #ffffff;
  border-radius: 999px;
  object-fit: cover;
  object-position: center;
  background: var(--wine);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.38);
}

.barber-profile-card h1 {
  max-width: none;
  margin-bottom: 12px;
}

.barber-profile-card p:not(.eyebrow) {
  max-width: 650px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.6;
}

.barber-profile-card .quick-stats {
  justify-content: center;
}

.compact-profile {
  min-height: 360px;
}

.compact-profile .barber-photo {
  width: 120px;
  height: 120px;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-color: #050506;
  background-image:
    radial-gradient(circle at 18% 20%, rgba(193, 18, 31, 0.22), transparent 28%),
    url("data:image/svg+xml,%3Csvg width='140' height='140' viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23c1121f' stroke-width='5' stroke-linecap='round' stroke-linejoin='round' opacity='0.5'%3E%3Cpath d='M45 44h45c7 0 12 5 12 12v18H58c-7 0-13-6-13-13V44Z'/%3E%3Cpath d='M58 74v18h35V74'/%3E%3Cpath d='M43 60H30c-5 0-9 4-9 9v15h22'/%3E%3Cpath d='M102 60h10c5 0 8 4 8 9v15h-18'/%3E%3Cpath d='M75 92v20'/%3E%3Cpath d='M56 112h38'/%3E%3Cpath d='M66 118l-14 12'/%3E%3Cpath d='M84 118l14 12'/%3E%3Cpath d='M92 44V30c0-6-5-10-11-10H62c-6 0-11 4-11 10v14'/%3E%3C/g%3E%3C/svg%3E");
  background-position: center;
  background-size: auto, 140px 140px;
  transform: none;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.24) 44%, rgba(0, 0, 0, 0.7)),
    linear-gradient(0deg, rgba(193, 18, 31, 0.18), rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  align-items: center;
  gap: clamp(28px, 6vw, 86px);
  width: min(1180px, calc(100% - 36px));
  min-height: 92vh;
  margin: 0 auto;
  padding: 104px 0 54px;
}

.hero-copy {
  max-width: 670px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 9.5em;
  margin-bottom: 18px;
  font-size: clamp(3.1rem, 8vw, 6.9rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 580px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.6;
}

.quick-stats {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.quick-stats span {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.9rem;
  font-weight: 700;
}

.home-menu {
  align-self: center;
}

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

.page-link-grid a {
  display: grid;
  min-height: 54px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: var(--wine);
  font-weight: 900;
  text-align: center;
}

.text-link {
  color: var(--wine);
  font-weight: 900;
}

.booking-panel {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  padding: 24px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.mockup-badge {
  position: absolute;
  top: -14px;
  right: 18px;
  border: 1px solid rgba(11, 11, 13, 0.18);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--paper);
  background: var(--wine);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

.panel-heading h2,
.section-heading h2,
.split-section h2 {
  margin-bottom: 0;
  font-size: clamp(1.65rem, 4vw, 2.7rem);
  line-height: 1.04;
  letter-spacing: 0;
}

label,
legend {
  display: block;
  margin: 14px 0 8px;
  color: var(--charcoal);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #ffffff;
}

input:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(225, 29, 46, 0.34);
  outline-offset: 2px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

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

.time-option {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.time-option[aria-pressed="true"] {
  border-color: var(--wine);
  color: #ffffff;
  background: var(--wine);
}

.summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 14px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.summary span {
  color: var(--muted);
}

.primary-button {
  width: 100%;
  min-height: 52px;
  color: #ffffff;
  background: var(--wine);
}

.form-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.form-note.success {
  color: var(--wine);
  font-weight: 800;
}

.services-band,
.test-run,
.dashboard-preview,
.page-section,
.split-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 96px) 0;
}

.single-panel {
  width: min(620px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(44px, 7vw, 76px) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(160px, 0.36fr) minmax(0, 0.64fr);
  gap: 30px;
  margin-bottom: 28px;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-list article,
.dashboard-grid article,
.barber-grid article {
  padding: 24px;
}

.service-list article {
  min-height: 260px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.service-list span,
.info-strip span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.service-list h3,
.barber-grid h3 {
  margin: 20px 0 10px;
  font-size: 1.3rem;
}

.service-list p,
.barber-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.service-list strong {
  display: inline-block;
  margin-top: 16px;
  color: var(--wine);
}

.test-run {
  border-bottom: 1px solid var(--line);
}

.test-console {
  display: grid;
  grid-template-columns: minmax(260px, 0.32fr) minmax(0, 0.68fr);
  gap: 18px;
}

.scenario-panel,
.demo-workspace {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 44px rgba(11, 11, 13, 0.07);
}

.scenario-panel {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 18px;
}

.status-card,
.activity-log {
  border-radius: 8px;
  padding: 18px;
  color: #ffffff;
  background: var(--charcoal);
}

.status-card span,
.activity-log span,
.metric-grid span,
.client-flow span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-card strong {
  display: block;
  font-size: 1.3rem;
}

.status-card p,
.activity-log p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.48;
}

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

.scenario-list span,
.pill {
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--wine);
  background: rgba(193, 18, 31, 0.09);
  font-size: 0.78rem;
  font-weight: 900;
}

.pill {
  white-space: nowrap;
}

.pill.danger {
  color: #ffffff;
  background: var(--wine);
}

.demo-workspace {
  overflow: hidden;
}

.role-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.role-tab {
  min-height: 52px;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--muted);
  background: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

.role-tab:last-child {
  border-right: 0;
}

.role-tab.active {
  color: #ffffff;
  background: var(--wine);
}

.demo-panel {
  display: none;
  padding: 22px;
}

.demo-panel.active {
  display: block;
}

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

.panel-topline h3 {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.05;
}

.metric-grid,
.feature-grid,
.client-flow {
  display: grid;
  gap: 12px;
}

.metric-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 12px;
}

.metric-grid article {
  border-radius: 8px;
  padding: 18px;
  color: #ffffff;
  background: var(--charcoal);
}

.metric-grid strong {
  display: block;
  font-size: 1.9rem;
}

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

.feature-grid article,
.schedule-list article,
.client-flow article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #ffffff;
}

.feature-grid h4 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.feature-grid p,
.client-flow p {
  color: var(--muted);
  line-height: 1.5;
}

.feature-grid button,
.schedule-list button,
.schedule-button {
  display: inline-grid;
  place-items: center;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  color: #ffffff;
  background: var(--wine);
  font-weight: 900;
  cursor: pointer;
}

.schedule-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 12px;
}

.schedule-list article {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.schedule-list span {
  color: var(--wine);
  font-weight: 900;
}

.client-flow {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 12px;
}

.client-flow span {
  color: var(--wine);
}

.client-flow strong {
  display: block;
  margin-bottom: 8px;
}

.barber-calendar {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #ffffff;
  box-shadow: 0 16px 44px rgba(11, 11, 13, 0.07);
}

.calendar-tools {
  display: grid;
  grid-template-columns: 190px 150px minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.calendar-board {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.calendar-slot {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  min-height: 58px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  cursor: pointer;
}

.calendar-slot:last-child {
  border-bottom: 0;
}

.calendar-slot:hover {
  background: rgba(193, 18, 31, 0.04);
}

.slot-time {
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  color: var(--wine);
  font-weight: 900;
}

.slot-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
}

.slot-label {
  color: var(--muted);
  font-weight: 800;
}

.slot-duration {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.calendar-slot.booked .slot-content,
.calendar-slot.break .slot-content,
.calendar-slot.walkin .slot-content,
.calendar-slot.manual .slot-content {
  color: #ffffff;
}

.calendar-slot.booked .slot-content {
  background: var(--charcoal);
}

.calendar-slot.break .slot-content {
  background: #3a3a3f;
}

.calendar-slot.walkin .slot-content {
  background: var(--wine);
}

.calendar-slot.manual .slot-content {
  background: #8f101a;
}

.calendar-slot.booked .slot-label,
.calendar-slot.booked .slot-duration,
.calendar-slot.break .slot-label,
.calendar-slot.break .slot-duration,
.calendar-slot.walkin .slot-label,
.calendar-slot.walkin .slot-duration,
.calendar-slot.manual .slot-label,
.calendar-slot.manual .slot-duration {
  color: #ffffff;
}

.owner-bookings {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  margin: 18px 0;
  background: #ffffff;
  box-shadow: 0 16px 44px rgba(11, 11, 13, 0.07);
}

.owner-overview-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  margin: 18px 0;
  background: #ffffff;
  box-shadow: 0 16px 44px rgba(11, 11, 13, 0.07);
}

.owner-overview-card h2 {
  margin-bottom: 8px;
}

.owner-overview-card p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.primary-link-button {
  display: inline-grid;
  min-height: 52px;
  place-items: center;
  border-radius: 8px;
  padding: 0 18px;
  color: #ffffff;
  background: var(--wine);
  font-weight: 900;
  white-space: nowrap;
}

.owner-booking-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.owner-booking-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #f8f8f8;
}

.barber-row-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.barber-row-heading h3,
.barber-row-heading p {
  margin: 0;
}

.barber-row-heading p {
  color: var(--muted);
  font-weight: 800;
}

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

.owner-appointment-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.owner-appointment-list span,
.owner-appointment-list small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.owner-appointment-list strong {
  display: block;
  margin: 4px 0;
}

.rent-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.64fr) minmax(280px, 0.36fr);
  gap: 18px;
}

.booth-rent-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(280px, 0.32fr);
  gap: 18px;
}

.rent-main,
.rent-side {
  display: grid;
  align-content: start;
  gap: 18px;
}

.rent-due-card,
.rent-settings-card,
.rent-progress-card,
.payment-card,
.access-card,
.history-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #ffffff;
  box-shadow: 0 16px 44px rgba(11, 11, 13, 0.07);
}

.rent-progress-track {
  width: 100%;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #f8f8f8;
}

.rent-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #16a34a, #22c55e);
}

.rent-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 900;
}

.rent-progress-meta strong {
  color: var(--ink);
}

.rent-board {
  display: grid;
  gap: 12px;
}

.rent-board > article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #f8f8f8;
}

.rent-status {
  border-radius: 8px;
  padding: 12px;
  font-weight: 900;
}

.rent-status.paid {
  color: #14532d;
  background: #dcfce7;
}

.rent-status.past-due {
  color: #ffffff;
  background: var(--wine);
}

.rent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.rent-actions button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  color: #ffffff;
  background: var(--charcoal);
  font-weight: 900;
  cursor: pointer;
}

.rent-due-card h2 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 0.9;
}

.rent-breakdown,
.history-list {
  display: grid;
  gap: 10px;
}

.rent-breakdown div,
.history-list div,
.card-preview,
.access-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f8f8f8;
}

.rent-breakdown div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.rent-breakdown span,
.card-preview span,
.access-preview span,
.history-list span,
.history-list small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.payment-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 14px 0;
}

.payment-option {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

.payment-option.active {
  border-color: var(--wine);
  color: #ffffff;
  background: var(--wine);
}

.card-preview {
  margin-bottom: 14px;
}

.card-preview p,
.access-card p,
.access-preview p {
  color: var(--muted);
  line-height: 1.5;
}

.history-list strong {
  display: block;
  margin: 4px 0;
}

.client-profile-hero {
  padding: clamp(42px, 8vw, 82px) clamp(18px, 6vw, 90px);
  color: #ffffff;
  background-color: #050506;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.48)),
    url("data:image/svg+xml,%3Csvg width='140' height='140' viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23c1121f' stroke-width='5' stroke-linecap='round' stroke-linejoin='round' opacity='0.44'%3E%3Cpath d='M45 44h45c7 0 12 5 12 12v18H58c-7 0-13-6-13-13V44Z'/%3E%3Cpath d='M58 74v18h35V74'/%3E%3Cpath d='M43 60H30c-5 0-9 4-9 9v15h22'/%3E%3Cpath d='M102 60h10c5 0 8 4 8 9v15h-18'/%3E%3Cpath d='M75 92v20'/%3E%3Cpath d='M56 112h38'/%3E%3Cpath d='M66 118l-14 12'/%3E%3Cpath d='M84 118l14 12'/%3E%3Cpath d='M92 44V30c0-6-5-10-11-10H62c-6 0-11 4-11 10v14'/%3E%3C/g%3E%3C/svg%3E");
  background-size: auto, 140px 140px;
}

.client-identity-card {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  width: min(960px, 100%);
}

.client-avatar-large {
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  border: 4px solid #ffffff;
  border-radius: 999px;
  color: #ffffff;
  background: var(--wine);
  font-size: 2rem;
  font-weight: 900;
}

.client-identity-card h1 {
  margin-bottom: 8px;
  max-width: none;
}

.client-identity-card p:not(.eyebrow) {
  max-width: 740px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.58;
}

.client-profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.64fr) minmax(300px, 0.36fr);
  gap: 18px;
}

.client-profile-main,
.client-controls {
  display: grid;
  align-content: start;
  gap: 18px;
}

.chat-card,
.portfolio-card,
.notes-card,
.control-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #ffffff;
  box-shadow: 0 16px 44px rgba(11, 11, 13, 0.07);
}

.chat-thread {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f8f8f8;
}

.chat-message {
  width: min(82%, 460px);
  border-radius: 8px;
  padding: 12px;
}

.chat-message span {
  display: block;
  margin-bottom: 5px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.chat-message p {
  margin: 0;
  line-height: 1.45;
}

.chat-message.client {
  justify-self: start;
  background: #ffffff;
}

.chat-message.barber {
  justify-self: end;
  color: #ffffff;
  background: var(--wine);
}

.chat-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 10px;
  margin-top: 12px;
}

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

.portfolio-grid div {
  display: grid;
  align-content: end;
  min-height: 170px;
  border-radius: 8px;
  padding: 14px;
  color: #ffffff;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.18)),
    repeating-linear-gradient(135deg, #1a1a1d, #1a1a1d 12px, #2a0b10 12px, #2a0b10 24px);
}

.portfolio-grid span,
.note-list span {
  display: block;
  margin-bottom: 5px;
  color: var(--wine);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portfolio-grid div span {
  color: rgba(255, 255, 255, 0.74);
}

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

.note-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f8f8f8;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  color: var(--ink);
  font-size: 1rem;
  text-transform: none;
}

.toggle-row input {
  width: 22px;
  min-height: 22px;
  accent-color: var(--wine);
}

.danger-zone {
  border-color: rgba(193, 18, 31, 0.3);
}

.danger-zone .primary-button {
  background: var(--charcoal);
}

.client-discovery {
  display: grid;
  gap: 18px;
}

.client-search-card,
.nearby-shop,
.shop-availability,
.client-side-panel .control-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #ffffff;
  box-shadow: 0 16px 44px rgba(11, 11, 13, 0.07);
}

.client-search-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px 160px;
  gap: 12px;
  align-items: end;
}

.client-dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.66fr) minmax(300px, 0.34fr);
  gap: 18px;
}

.nearby-results,
.client-side-panel {
  display: grid;
  align-content: start;
  gap: 18px;
}

.nearby-shop.featured {
  border-color: rgba(193, 18, 31, 0.4);
}

.shop-availability {
  display: grid;
  gap: 12px;
}

.shop-availability-button {
  display: grid;
  width: 100%;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  color: var(--ink);
  background: #f8f8f8;
  text-align: left;
  cursor: pointer;
}

.shop-availability-button:hover,
.shop-availability-button.active {
  border-color: rgba(193, 18, 31, 0.45);
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(193, 18, 31, 0.12);
}

.shop-availability-button span {
  color: var(--wine);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.shop-availability-button strong {
  font-size: 1.08rem;
  line-height: 1.25;
}

.shop-availability-button small {
  color: var(--muted);
  font-weight: 800;
}

.availability-panel {
  display: none;
  gap: 10px;
}

.availability-panel.active {
  display: grid;
}

.availability-panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-weight: 900;
}

.availability-panel-heading p {
  margin: 0;
}

.appointment-choice {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: #ffffff;
}

.appointment-choice:hover {
  border-color: rgba(193, 18, 31, 0.45);
}

.appointment-choice.earliest {
  background: #fff6f7;
}

.appointment-choice small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.appointment-choice b {
  display: inline-grid;
  min-height: 38px;
  place-items: center;
  border-radius: 8px;
  padding: 0 12px;
  color: #ffffff;
  background: var(--wine);
  font-size: 0.9rem;
  white-space: nowrap;
}

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

.shop-heading h3,
.shop-heading p {
  margin: 0;
}

.shop-heading span {
  color: var(--muted);
  font-weight: 800;
}

.shop-heading > strong {
  border-radius: 999px;
  padding: 9px 12px;
  color: #ffffff;
  background: var(--wine);
  white-space: nowrap;
}

.available-barbers {
  display: grid;
  gap: 10px;
}

.available-barbers > div {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f8f8f8;
}

.available-barbers small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.available-barbers a {
  display: inline-grid;
  min-height: 38px;
  place-items: center;
  border-radius: 8px;
  padding: 0 12px;
  color: #ffffff;
  background: var(--wine);
  font-weight: 900;
  white-space: nowrap;
}

.income-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(300px, 0.32fr);
  gap: 18px;
}

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

.role-column {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #ffffff;
  box-shadow: 0 16px 44px rgba(11, 11, 13, 0.07);
}

.role-column h2 {
  margin: 18px 0 8px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.role-column p {
  color: var(--muted);
  line-height: 1.5;
}

.role-link-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.role-link-list a {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f8f8f8;
}

.role-link-list strong {
  color: var(--wine);
}

.role-link-list span,
.role-column li {
  color: var(--muted);
  line-height: 1.45;
}

.role-column ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
}

.income-main,
.income-side {
  display: grid;
  align-content: start;
  gap: 18px;
}

.income-toolbar,
.chart-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #ffffff;
  box-shadow: 0 16px 44px rgba(11, 11, 13, 0.07);
}

.income-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.income-toolbar h2 {
  margin: 0;
}

.period-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.period-tab {
  min-height: 44px;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--muted);
  background: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

.period-tab:last-child {
  border-right: 0;
}

.period-tab.active {
  color: #ffffff;
  background: var(--wine);
}

.income-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.income-metrics article {
  border-radius: 8px;
  padding: 18px;
  color: #ffffff;
  background: var(--charcoal);
}

.income-metrics span,
.income-metrics small {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 800;
}

.income-metrics strong {
  display: block;
  margin: 8px 0;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 10px;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #f8f8f8;
}

.chart-bar {
  display: grid;
  align-content: end;
  gap: 8px;
  min-height: 220px;
}

.chart-fill {
  border-radius: 8px 8px 0 0;
  background: var(--wine);
}

.chart-bar span,
.chart-bar strong {
  display: block;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 900;
}

.chart-bar span {
  color: var(--muted);
}

.income-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.service-income-list,
.client-stat-list,
.insight-list {
  display: grid;
  gap: 12px;
}

.service-income-list div,
.client-stat-list div,
.insight-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f8f8f8;
}

.service-income-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
}

.service-income-list progress {
  grid-column: 1 / -1;
  width: 100%;
  height: 10px;
  accent-color: var(--wine);
}

.client-stat-list {
  grid-template-columns: repeat(2, 1fr);
}

.client-stat-list strong {
  display: block;
  font-size: 2rem;
}

.client-stat-list span,
.service-income-list span,
.insight-list p {
  color: var(--muted);
  line-height: 1.45;
}

.insight-list strong {
  display: block;
  margin-bottom: 6px;
}

.dashboard-preview {
  border-top: 1px solid var(--line);
}

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

.dashboard-grid article {
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 44px rgba(11, 11, 13, 0.07);
}

.dashboard-grid ul {
  display: grid;
  gap: 13px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.dashboard-grid li {
  border-top: 1px solid var(--line);
  padding-top: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.split-section {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: 38px;
  border-top: 1px solid var(--line);
}

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

.barber-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 34px rgba(11, 11, 13, 0.06);
}

.avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--wine);
  font-weight: 900;
}

.insights-grid article {
  background: #ffffff;
}

.info-strip {
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: var(--paper);
  background: var(--charcoal);
}

.info-strip strong {
  display: block;
  margin-top: 6px;
}

footer {
  justify-content: space-between;
  padding: 24px clamp(18px, 4vw, 56px);
  color: var(--muted);
  background: var(--paper);
}

footer a {
  color: var(--wine);
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header {
    position: absolute;
  }

  .nav-links {
    display: none;
  }

  .page-header {
    position: relative;
    flex-wrap: wrap;
  }

  .page-header .nav-links {
    display: flex;
    order: 3;
    width: 100%;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .page-header .nav-links a {
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    padding: 9px 10px;
  }

  .hero-content,
  .section-heading,
  .test-console,
  .rent-layout,
  .booth-rent-layout,
  .client-profile-layout,
  .client-dashboard-layout,
  .income-layout,
  .income-toolbar,
  .owner-overview-card,
  .role-map,
  .split-section {
    grid-template-columns: 1fr;
  }

  .income-toolbar {
    display: grid;
  }

  .hero-content {
    align-items: end;
    padding-top: 96px;
  }

  .booking-panel {
    max-width: 620px;
  }

  .service-list,
  .dashboard-grid,
  .metric-grid,
  .barber-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid,
  .calendar-tools,
  .client-search-tools,
  .payment-options,
  .portfolio-grid,
  .client-flow {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 64px;
  }

  .brand span:last-child {
    max-width: 126px;
    line-height: 1.05;
  }

  .header-action {
    padding: 10px 14px;
  }

  .hero {
    min-height: auto;
  }

  .hero-bg {
    background-position: 38% center;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.26));
  }

  .hero-content {
    min-height: auto;
    padding: 86px 0 34px;
  }

  h1 {
    font-size: 3.2rem;
  }

  .form-row,
  .service-list,
  .dashboard-grid,
  .metric-grid,
  .income-metrics,
  .income-grid,
  .owner-booking-grid,
  .page-link-grid,
  .client-identity-card,
  .note-list,
  .barber-grid,
  .info-strip,
  footer {
    grid-template-columns: 1fr;
  }

  .info-strip,
  footer {
    display: grid;
  }

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

  .booking-panel {
    padding: 18px;
  }

  .barber-profile-hero {
    place-items: start center;
    min-height: auto;
    padding-top: 44px;
    padding-bottom: 52px;
  }

  .compact-profile {
    padding-top: 34px;
  }

  .rent-breakdown div {
    display: grid;
  }

  .rent-progress-meta {
    display: grid;
  }

  .client-identity-card {
    text-align: center;
  }

  .client-avatar-large {
    margin: 0 auto;
  }

  .chat-compose {
    grid-template-columns: 1fr;
  }

  .chat-message {
    width: 100%;
  }

  .shop-heading,
  .available-barbers > div,
  .appointment-choice {
    grid-template-columns: 1fr;
  }

  .shop-heading {
    display: grid;
  }

  .period-tabs,
  .bar-chart,
  .client-stat-list {
    grid-template-columns: 1fr 1fr;
  }

  .bar-chart {
    min-height: auto;
  }

  .chart-bar {
    min-height: 160px;
  }

  .panel-topline,
  .schedule-list article {
    grid-template-columns: 1fr;
  }

  .panel-topline {
    display: grid;
  }

  .schedule-list article {
    align-items: start;
  }

  .calendar-slot {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .slot-content {
    display: grid;
  }
}
