.empty-state-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
}

.empty-state-card strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.empty-state-card p {
  margin: 0;
}

.empty-state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

:root {
  --bg: #f6f1e8;
  --bg-soft: #efe7da;
  --card: #fffaf2;
  --card-soft: #f9f3e9;
  --line: #d8cfc0;
  --text: #18392b;
  --muted: #5c6b63;
  --primary: #2e6a4f;
  --primary-strong: #24543f;
  --accent: #c9a96b;
  --accent-soft: #efe1c2;
  --success: #2f7a55;
  --danger: #b6544b;
  --radius: 28px;
  --radius-sm: 18px;
  --shadow: 0 18px 42px rgba(64, 51, 33, 0.12);
  --font-sans: "Montserrat", system-ui, sans-serif;
  --font-heading: "Montserrat", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at top left, rgba(201, 169, 107, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(46, 106, 79, 0.12), transparent 26%),
    linear-gradient(180deg, #f9f3e9 0%, #f6f1e8 45%, #efe7da 100%);
  color: var(--text);
  font-weight: 400;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

body {
  min-width: 320px;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

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

a,
button,
.btn,
.input,
select,
textarea {
  touch-action: manipulation;
}

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

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.container > *,
.grid > *,
.form-grid > *,
.form-grid-2 > *,
.booking-form-grid > *,
.settings-grid > *,
.settings-tab-bar > *,
.panel-head-row > *,
.nav-shell > *,
.booking-item > *,
.chat-head > *,
.footer-shell > * {
  min-width: 0;
}

.section {
  padding: 72px 0;
}

.section-title {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  letter-spacing: -0.03em;
  font-family: var(--font-heading);
  font-weight: 700;
}

.section-subtitle {
  margin: 0 0 28px;
  color: var(--muted);
  max-width: 520px;
  font-size: 0.98rem;
  overflow-wrap: anywhere;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 250, 242, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(216, 207, 192, 0.92);
}

.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-family: var(--font-heading);
}

.brand span:last-child {
  min-width: 0;
}

.brand-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
  background: transparent;
  box-shadow: none;
  color: transparent;
  font-size: 0;
  line-height: 0;
}

.brand-badge-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.72);
  transform-origin: center;
  display: block;
  pointer-events: none;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(46, 106, 79, 0.1);
}

.auth-actions {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.auth-admin-link {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 2px;
}

.auth-admin-link:hover {
  color: var(--primary);
}

.notification-shell {
  position: relative;
}

.notification-bell {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.78);
  color: var(--text);
  display: inline-grid;
  place-items: center;
  position: relative;
  cursor: pointer;
}

.notification-bell:hover {
  border-color: rgba(46, 106, 79, 0.45);
}

.notification-bell.notification-bell-urgent {
  border-color: rgba(201, 169, 107, 0.9);
  box-shadow: 0 0 0 1px rgba(201, 169, 107, 0.26), 0 0 24px rgba(201, 169, 107, 0.22);
  animation: notificationPulse 1.4s ease-in-out infinite;
}

.notification-bell-icon {
  font-size: 1rem;
  line-height: 1;
}

.notification-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #18392b;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
}

.notification-badge.notification-badge-urgent {
  background: var(--accent);
}

.notification-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(420px, 92vw);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 250, 242, 0.98);
  box-shadow: 0 24px 48px rgba(64, 51, 33, 0.16);
  padding: 14px;
  display: none;
  gap: 12px;
  z-index: 40;
}

.notification-popover.open {
  display: grid;
}

.notification-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.notification-popover-list {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
}

.notification-popover-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 10px;
  background: rgba(249, 243, 233, 0.94);
}

.notification-popover-item.unread {
  border-color: rgba(46, 106, 79, 0.34);
}

.notification-popover-item.notification-urgent {
  border-color: rgba(201, 169, 107, 0.8);
  background: linear-gradient(180deg, rgba(201, 169, 107, 0.18), rgba(255, 250, 242, 0.96));
}

.notification-popover-copy {
  display: grid;
  gap: 6px;
}

.notification-popover-copy p,
.notification-popover-copy span {
  margin: 0;
}

.notification-popover-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.notification-popover-footer {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.notification-popover-footer:hover {
  text-decoration: underline;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 999px;
  min-width: 68px;
  height: 44px;
  padding: 0 16px;
  font-weight: 600;
}

.hero {
  padding: 96px 0 58px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}

.hero h1 {
  margin: 0 0 14px;
  line-height: 0.98;
  font-size: clamp(2.1rem, 4.5vw, 3.5rem);
  letter-spacing: -0.05em;
  font-family: var(--font-heading);
  font-weight: 800;
}

.hero p {
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 540px;
  font-size: 1.02rem;
}

.hero-panel {
  border: 1px solid var(--line);
  background: linear-gradient(170deg, #fffaf2 0%, #f2ebdf 85%);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.hero-panel h3 {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 22px;
}

.stat-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 250, 242, 0.88);
  padding: 18px 22px;
  display: grid;
  gap: 4px;
  min-height: 92px;
  align-content: center;
}

.stat-card small {
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 600;
}

.stat-card strong {
  display: block;
  font-size: 1.12rem;
  line-height: 1.3;
  font-weight: 500;
  color: var(--text);
}

.search-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffdf8;
  color: var(--text);
  padding: 15px 18px;
  font: inherit;
}

textarea {
  border-radius: 24px;
}

.input::placeholder,
textarea::placeholder {
  color: #8a9183;
}

.input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(46, 106, 79, 0.22);
  border-color: var(--primary);
}

.btn {
  border: 0;
  border-radius: 999px;
  min-height: 50px;
  padding: 12px 22px;
  font: inherit;
  cursor: pointer;
  transition: 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 600;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
  color: #fffaf2;
  font-weight: 600;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 250, 242, 0.72);
}

.btn-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 250, 242, 0.8);
  border-radius: 12px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.82rem;
  min-height: 40px;
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(255, 250, 242, 0.98), rgba(244, 235, 223, 0.98));
  box-shadow: var(--shadow);
}

.barber-card {
  overflow: hidden;
  border-radius: 32px;
}

.barber-photo {
  width: 100%;
  height: 320px;
  object-fit: cover;
  background: #ebe2d4;
}

.barber-card-media {
  position: relative;
}

.barber-save-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 250, 242, 0.96);
  color: var(--primary);
  display: inline-grid;
  place-items: center;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(24, 57, 43, 0.12);
}

.barber-save-btn.active {
  color: #fffaf2;
  background: var(--primary);
}

.barber-image-placeholder,
.avatar-placeholder,
.profile-photo-placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top right, rgba(201, 169, 107, 0.25), transparent 38%),
    linear-gradient(160deg, rgba(249, 243, 233, 0.98), rgba(239, 231, 218, 0.96));
  color: rgba(24, 57, 43, 0.92);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.barber-image-placeholder span,
.avatar-placeholder span,
.profile-photo-placeholder span {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid rgba(46, 106, 79, 0.2);
  background: rgba(46, 106, 79, 0.1);
  font-size: 1.15rem;
}

.barber-body {
  padding: 24px 24px 26px;
  display: grid;
  gap: 14px;
}

.barber-body h3 {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: -0.04em;
  font-family: var(--font-heading);
  font-weight: 700;
}

.barber-meta {
  display: none;
}

.barber-location {
  font-size: 1rem;
  line-height: 1.45;
}

.barber-card-rating {
  display: grid;
  gap: 6px;
}

.barber-card-rating-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.05rem;
}

.barber-card-rating-star {
  color: #f2c94c;
  font-size: 1.4rem;
  line-height: 1;
}

.barber-card-rating-sub {
  color: var(--text);
  font-weight: 600;
}

.barber-card-rating-empty {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(46, 106, 79, 0.14);
  background: rgba(46, 106, 79, 0.08);
  color: var(--primary);
  font-weight: 600;
}

.barber-portfolio-strip {
  display: flex;
  gap: 12px;
  margin: 2px 0 0;
  flex-wrap: wrap;
}

.barber-portfolio-thumb {
  display: inline-flex;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.86);
  flex: 0 0 auto;
}

.barber-portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.barber-portfolio-empty {
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(46, 106, 79, 0.16);
  background: rgba(46, 106, 79, 0.06);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
  width: fit-content;
}

.barber-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 4px;
}

.muted {
  color: var(--muted);
  margin: 0;
}

.error {
  color: #fca5a5;
}

.loading {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 20px;
  color: var(--muted);
}

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

.step {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: rgba(255, 250, 242, 0.78);
}

.step-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(46, 106, 79, 0.12);
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 12px;
}

.site-footer {
  border-top: 1px solid rgba(28, 77, 58, 0.12);
  padding: 38px 0 22px;
  color: var(--muted);
  background:
    radial-gradient(circle at top left, rgba(232, 223, 198, 0.32), transparent 34%),
    linear-gradient(180deg, rgba(253, 246, 236, 0.98), rgba(247, 239, 226, 1));
}

.footer-shell {
  display: grid;
  gap: 24px;
}

.footer-top {
  display: grid;
  gap: 12px;
}

.footer-brand-block {
  display: grid;
  gap: 14px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 1.34rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  width: fit-content;
}

.footer-wordmark {
  text-transform: uppercase;
}

.footer-summary {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.58;
}

.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  padding: 4px 0 2px;
}

.footer-nav-group {
  display: grid;
  align-content: start;
  gap: 12px;
}

.footer-nav-title {
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 600;
}

.footer-nav-links {
  display: grid;
  gap: 10px;
}

.footer-nav-links a {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.4;
  width: fit-content;
}

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

.footer-contact-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.footer-contact-pill {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 16px 18px;
  border-radius: 24px;
  border: 1px solid rgba(28, 77, 58, 0.12);
  background: rgba(255, 252, 246, 0.82);
  box-shadow: 0 12px 26px rgba(28, 77, 58, 0.05);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.footer-contact-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(46, 106, 79, 0.22);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 30px rgba(28, 77, 58, 0.08);
}

.footer-contact-pill-secondary {
  background: rgba(248, 244, 236, 0.88);
}

.footer-contact-pill-label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-contact-pill-value {
  min-width: 0;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.footer-social-block {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.footer-label {
  color: var(--text);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.footer-social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 24px;
  border: 1px solid rgba(28, 77, 58, 0.08);
  background: rgba(255, 250, 242, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.footer-social-link {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(28, 77, 58, 0.14);
  background: rgba(255, 255, 255, 0.94);
  color: var(--primary);
  box-shadow: 0 10px 20px rgba(28, 77, 58, 0.06);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.footer-social-link:hover {
  transform: translateY(-1px);
  background: rgba(46, 106, 79, 0.12);
  border-color: rgba(46, 106, 79, 0.24);
  color: var(--text);
}

.footer-social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid rgba(28, 77, 58, 0.08);
}

.filter-bar {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 250, 242, 0.82);
  padding: 14px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr 0.8fr auto;
  gap: 10px;
  margin-bottom: 20px;
}

.page-header {
  padding-top: 28px;
}

.profile-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: rgba(255, 250, 242, 0.82);
}

.profile-photo {
  width: 100%;
  min-height: 360px;
  border-radius: 12px;
  object-fit: cover;
}

.premium-profile-layout {
  background:
    radial-gradient(circle at top right, rgba(201, 169, 107, 0.22), transparent 28%),
    linear-gradient(160deg, rgba(255, 250, 242, 0.98), rgba(241, 234, 224, 0.98));
}

.profile-visual-shell {
  position: relative;
}

.profile-photo-placeholder {
  min-height: 360px;
  border-radius: 12px;
}

.profile-photo-placeholder span {
  width: 92px;
  height: 92px;
  font-size: 1.45rem;
}

.profile-content h1 {
  margin: 0 0 8px;
}

.profile-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}

.profile-location-line {
  font-size: 1rem;
}

.profile-bio-lead {
  margin: 0 0 18px;
  line-height: 1.8;
  color: #3e4f47;
}

.profile-floating-rating {
  position: absolute;
  right: 18px;
  bottom: 18px;
  border: 1px solid rgba(201, 169, 107, 0.48);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 250, 242, 0.92);
  backdrop-filter: blur(10px);
  display: grid;
  gap: 4px;
  min-width: 110px;
}

.profile-floating-rating strong {
  font-size: 1.45rem;
}

.profile-floating-rating span {
  color: var(--muted);
  font-size: 0.82rem;
}

.profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.profile-stat-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 250, 242, 0.76);
  display: grid;
  gap: 6px;
}

.profile-stat-card small {
  color: var(--muted);
}

.profile-stat-card strong {
  font-size: 1.02rem;
}

.profile-section-block {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(216, 207, 192, 0.92);
}

.pill-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 18px;
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.86rem;
  color: var(--muted);
}

.pill-success {
  color: var(--success);
  border-color: rgba(47, 122, 85, 0.3);
  background: rgba(47, 122, 85, 0.08);
}

.pill-alert {
  border-color: rgba(201, 169, 107, 0.5);
  background: rgba(201, 169, 107, 0.16);
  color: #8c6a32;
}

.pill-warning {
  border-color: rgba(201, 169, 107, 0.5);
  background: rgba(201, 169, 107, 0.16);
  color: #8c6a32;
}

.pill-danger {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.1);
  color: #9f3b3b;
}

.pill-chat {
  border-color: rgba(46, 106, 79, 0.28);
  background: rgba(46, 106, 79, 0.08);
  color: var(--primary);
}

.time-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 20px;
}

.time-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.87rem;
  color: var(--muted);
}

.profile-action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.profile-content-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  margin-top: 18px;
}

.profile-side-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: rgba(255, 250, 242, 0.8);
}

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

.profile-trust-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(255, 250, 242, 0.84);
  color: #33463e;
}

.profile-portfolio-panel {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: rgba(255, 250, 242, 0.82);
}

.portfolio-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.portfolio-gallery-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 250, 242, 0.9);
}

.portfolio-gallery-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.share-link-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: rgba(255, 250, 242, 0.82);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.section-heading h4 {
  margin: 2px 0 0;
  font-size: 1rem;
  line-height: 1.35;
}

.eyebrow {
  margin: 0;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

#settingsSavedAddressCard {
  margin-top: 14px;
  gap: 10px;
  background: linear-gradient(180deg, rgba(255, 250, 242, 0.96), rgba(246, 237, 224, 0.88));
  box-shadow: 0 12px 28px rgba(24, 57, 43, 0.05);
}

.settings-address-primary {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  line-height: 1.55;
}

.settings-address-note {
  margin: 0;
  line-height: 1.55;
}

.share-link-list {
  display: grid;
  gap: 12px;
}

.share-link-row {
  display: grid;
  gap: 8px;
}

.share-link-row a {
  color: var(--primary);
  word-break: break-all;
}

.profile-share-panel {
  background: transparent;
  border: 0;
  padding: 0;
}

.share-link-copy-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.form-shell {
  max-width: 560px;
  margin: 0 auto;
}

.form-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(255, 250, 242, 0.92);
}

.form-grid {
  display: grid;
  gap: 12px;
}

.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
}

.checkbox-row input {
  margin-top: 3px;
  accent-color: var(--primary);
}

label {
  display: block;
  margin-bottom: 5px;
  color: #42564d;
  font-size: 0.92rem;
}

.notice {
  margin-top: 12px;
  border-radius: 9px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 250, 242, 0.84);
}

.notice.success {
  color: var(--success);
  border-color: rgba(47, 122, 85, 0.35);
  background: rgba(47, 122, 85, 0.1);
}

.notice.error {
  color: var(--danger);
  border-color: rgba(182, 84, 75, 0.35);
  background: rgba(182, 84, 75, 0.1);
}

.payment-actions {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.payment-status-card {
  display: grid;
  gap: 16px;
  border-radius: 18px;
  border: 1px solid rgba(201, 169, 107, 0.24);
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(201, 169, 107, 0.16), transparent 34%),
    rgba(255, 250, 242, 0.96);
  box-shadow: 0 10px 26px rgba(24, 57, 43, 0.05);
}

.payment-status-card-approved {
  border-color: rgba(46, 106, 79, 0.28);
  background:
    radial-gradient(circle at top right, rgba(46, 106, 79, 0.14), transparent 30%),
    radial-gradient(circle at bottom left, rgba(201, 169, 107, 0.12), transparent 34%),
    rgba(255, 250, 242, 0.98);
}

.payment-status-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.payment-status-copy {
  display: grid;
  gap: 6px;
}

.payment-state-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(46, 106, 79, 0.12);
  border: 1px solid rgba(46, 106, 79, 0.2);
  color: var(--primary-strong);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.payment-status-copy strong {
  font-size: 1.1rem;
  line-height: 1.2;
}

.payment-helper {
  margin: 0;
  color: var(--muted);
}

.payment-action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.payment-timeline {
  display: grid;
  gap: 10px;
}

.payment-timeline-step {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  align-items: center;
  color: var(--muted);
}

.payment-timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid rgba(46, 106, 79, 0.2);
  background: rgba(255, 250, 242, 0.9);
}

.payment-timeline-step-done {
  color: var(--primary-strong);
  font-weight: 600;
}

.payment-timeline-step-done .payment-timeline-dot {
  border-color: rgba(46, 106, 79, 0.7);
  background: rgba(46, 106, 79, 0.9);
}

.payment-timeline-step-active {
  color: #33463e;
  font-weight: 600;
}

.payment-timeline-step-active .payment-timeline-dot {
  border-color: rgba(201, 169, 107, 0.7);
  background: rgba(201, 169, 107, 0.88);
  box-shadow: 0 0 0 4px rgba(201, 169, 107, 0.12);
}

.payment-timeline-step-blocked .payment-timeline-dot {
  border-color: rgba(182, 84, 75, 0.45);
  background: rgba(182, 84, 75, 0.72);
}

.payment-summary-grid {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 250, 242, 0.7);
}

.payment-summary-shell {
  display: grid;
  gap: 12px;
}

.payment-status-ribbon {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.payment-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.payment-service-pill-row {
  margin-top: -2px;
}

.payment-trust-list {
  gap: 8px;
}

.payment-deadline {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(201, 169, 107, 0.28);
  background: rgba(201, 169, 107, 0.1);
}

.payment-deadline strong {
  font-size: 0.98rem;
  color: #5c4a20;
}

.payment-deadline span {
  color: #6b6558;
  font-size: 0.96rem;
}

.payment-deadline-expired {
  border-color: rgba(182, 84, 75, 0.28);
  background: rgba(182, 84, 75, 0.08);
}

.payment-deadline-expired strong {
  color: #8b3d35;
}

.payment-next-step {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(46, 106, 79, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.42);
}

.payment-next-step strong,
.booking-summary-brief-item strong {
  font-size: 1rem;
}

.profile-page-shell {
  display: grid;
  gap: 22px;
}

.profile-page-hero {
  display: grid;
  gap: 10px;
  max-width: 760px;
}

.profile-page-content {
  display: grid;
}

.booking-page-hero {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
  max-width: 760px;
}

.booking-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.85fr);
  gap: 22px;
}

.booking-primary-panel,
.booking-guide-panel,
.booking-payment-panel,
.booking-trust-panel {
  box-shadow: var(--shadow);
}

.booking-primary-panel {
  background:
    radial-gradient(circle at top right, rgba(201, 169, 107, 0.1), transparent 30%),
    rgba(255, 250, 242, 0.92);
}

.booking-payment-panel-featured {
  background:
    radial-gradient(circle at top right, rgba(201, 169, 107, 0.18), transparent 34%),
    linear-gradient(165deg, rgba(255, 251, 244, 0.98), rgba(244, 235, 223, 0.98));
}

.booking-sidebar-stack {
  display: grid;
  gap: 22px;
}

.booking-panel-subtitle {
  margin: 4px 0 0;
}

.booking-summary-shell {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.booking-summary-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(201, 169, 107, 0.12), transparent 32%),
    linear-gradient(165deg, rgba(255, 251, 244, 0.98), rgba(244, 235, 223, 0.98));
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.booking-summary-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.booking-summary-copy strong {
  font-size: 1.15rem;
}

.booking-summary-copy p {
  margin: 0;
}

.booking-summary-brief {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.booking-summary-brief-item {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(46, 106, 79, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.42);
}

.booking-summary-kicker {
  display: inline-flex;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.booking-summary-meta {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.booking-form-grid {
  gap: 14px;
}

.booking-service-block {
  display: grid;
  gap: 12px;
}

.booking-service-options {
  display: grid;
  gap: 10px;
}

.booking-service-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 250, 242, 0.88);
  cursor: pointer;
}

.booking-service-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.booking-service-option-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.booking-service-option-copy strong,
.booking-service-option-copy span {
  margin: 0;
}

.booking-service-summary {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(201, 169, 107, 0.45);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(201, 169, 107, 0.16), rgba(255, 250, 242, 0.86));
}

.booking-service-summary-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

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

.booking-trust-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 250, 242, 0.88);
  color: #33463e;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
  background: rgba(255, 250, 242, 0.88);
}

.panel h3 {
  margin-top: 0;
}

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

.notification-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  background: rgba(255, 250, 242, 0.84);
}

.notification-item.unread {
  border-color: rgba(46, 106, 79, 0.34);
  box-shadow: inset 0 0 0 1px rgba(46, 106, 79, 0.08);
}

.notification-item.notification-urgent {
  border-color: rgba(201, 169, 107, 0.72);
  background: linear-gradient(180deg, rgba(201, 169, 107, 0.18), rgba(255, 250, 242, 0.86));
  box-shadow: inset 0 0 0 1px rgba(201, 169, 107, 0.14), 0 0 0 1px rgba(201, 169, 107, 0.08);
}

.notification-copy {
  flex: 1 1 320px;
  min-width: 0;
  display: grid;
  gap: 8px;
}

.notification-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.notification-pill-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.notification-message,
.notification-time {
  margin: 0;
}

.admin-activity-feed {
  display: grid;
  gap: 12px;
}

.admin-activity-item {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 14px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: rgba(255, 250, 242, 0.84);
}

.admin-activity-copy {
  display: grid;
  gap: 8px;
}

.admin-activity-marker {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  margin-top: 6px;
  background: rgba(148, 163, 184, 0.75);
  box-shadow: 0 0 0 6px rgba(148, 163, 184, 0.12);
}

.admin-activity-success .admin-activity-marker {
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(47, 122, 85, 0.12);
}

.admin-activity-warning .admin-activity-marker {
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(201, 169, 107, 0.14);
}

.focus-glow {
  border-color: rgba(46, 106, 79, 0.7) !important;
  box-shadow: 0 0 0 1px rgba(46, 106, 79, 0.16), 0 0 24px rgba(46, 106, 79, 0.14);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.booking-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 15px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  background: rgba(255, 250, 242, 0.92);
  box-shadow: 0 8px 18px rgba(24, 57, 43, 0.04);
}

.booking-item-urgent {
  border-color: rgba(201, 169, 107, 0.72);
  background: linear-gradient(180deg, rgba(201, 169, 107, 0.24), rgba(255, 250, 242, 0.88));
  box-shadow: 0 0 0 1px rgba(201, 169, 107, 0.14);
}

.booking-item > div:first-child {
  flex: 1 1 320px;
  min-width: 0;
}

.booking-item-copy,
.client-row-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.booking-location-line {
  margin: 2px 0 0;
  font-weight: 600;
  line-height: 1.45;
}

.booking-location-helper {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
}

.booking-item-side {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.booking-item strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}

.request-priority-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(201, 169, 107, 0.18);
  border: 1px solid rgba(201, 169, 107, 0.45);
  color: #8c6a32;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.request-priority-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(201, 169, 107, 0.14);
}

.booking-tags {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.booking-meta-row {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.action-row {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.location-cta-btn {
  border-color: rgba(46, 106, 79, 0.24);
  background: rgba(46, 106, 79, 0.08);
  color: var(--primary);
  font-weight: 600;
}

.location-cta-btn:hover {
  background: rgba(46, 106, 79, 0.14);
}

.booking-action-stack {
  justify-content: flex-end;
}

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

.kpi {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: rgba(255, 250, 242, 0.82);
}

.kpi strong {
  display: block;
  margin-top: 6px;
  font-size: 1.22rem;
}

.request-service {
  margin: 6px 0 0;
  color: var(--text);
  font-weight: 600;
}

.client-row {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 250, 242, 0.92);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.client-row > div {
  min-width: 0;
}

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

.customer-marketplace {
  display: grid;
  gap: 22px;
}

.dashboard-hero-panel h2 {
  margin: 0 0 8px;
}

.upcoming-appointment-panel h3 {
  margin-top: 0;
}

.upcoming-appointment-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background:
    radial-gradient(circle at top right, rgba(46, 106, 79, 0.08), transparent 36%),
    linear-gradient(160deg, rgba(255, 250, 242, 0.98), rgba(242, 247, 244, 0.94));
  color: var(--text);
  box-shadow: 0 12px 26px rgba(24, 57, 43, 0.08);
  min-height: 180px;
}

.upcoming-appointment-card h4 {
  margin: 0 0 6px;
}

.upcoming-appointment-card .muted {
  color: rgba(56, 69, 61, 0.82);
}

.upcoming-meta {
  display: grid;
  gap: 6px;
  margin: 10px 0 14px;
}

.upcoming-actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.panel-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

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

.quick-action-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: rgba(255, 250, 242, 0.84);
  display: grid;
  gap: 4px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.quick-action-card:hover {
  border-color: rgba(46, 106, 79, 0.45);
  transform: translateY(-1px);
}

.history-row {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.history-row h4 {
  margin: 0 0 4px;
}

.status-badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.8rem;
  text-transform: capitalize;
}

.status-pending {
  color: #8c6a32;
  border-color: rgba(201, 169, 107, 0.5);
}

.status-approved,
.status-accepted {
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.45);
}

.status-completed {
  color: #86efac;
  border-color: rgba(16, 185, 129, 0.45);
}

.status-paid {
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.45);
}

.status-expired {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.45);
}

.status-refunded {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.45);
}

.status-disputed {
  color: #8c6a32;
  border-color: rgba(201, 169, 107, 0.5);
}

.status-no_show {
  color: #c4b5fd;
  border-color: rgba(139, 92, 246, 0.45);
}

.status-cancelled,
.status-rejected {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.45);
}

.hidden {
  display: none !important;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: #18392b;
  border: 1px solid var(--line);
  color: #fffaf2;
  border-radius: 10px;
  padding: 10px 14px;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 50;
}

.toast.show,
.toast.error {
  transform: translateY(0);
  opacity: 1;
}

.toast.error {
  border-color: rgba(239, 68, 68, 0.4);
  color: #fff1ec;
  background: #8d3f39;
}

@media (max-width: 980px) {
  .hero-grid,
  .profile-layout,
  .profile-content-grid,
  .dashboard-grid,
  .booking-page-grid,
  .customer-main-grid,
  .customer-secondary-grid,
  .customer-overview-grid {
    grid-template-columns: 1fr;
  }

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

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

  .filter-bar {
    grid-template-columns: 1fr 1fr;
  }

  .profile-stat-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .container,
  .dashboard-container {
    width: min(100%, calc(100vw - 10px));
  }

  .nav-shell {
    min-height: 64px;
    gap: 10px;
  }

  .brand {
    font-size: 1.15rem;
  }

  .brand-badge {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-main {
    position: absolute;
    top: 72px;
    left: 6px;
    right: 6px;
    background: #0f1318;
    border-bottom: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px 14px 16px;
    flex-direction: column;
    align-items: flex-start;
    display: none;
    box-shadow: 0 18px 34px rgba(10, 14, 20, 0.2);
  }

  .nav-main.is-open {
    display: flex;
  }

  .nav-links,
  .auth-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .grid-3,
  .grid-4,
  .quick-actions-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .profile-floating-rating {
    position: static;
    margin-top: 12px;
  }

  .section {
    padding: 28px 0 34px;
  }

  .section-title {
    font-size: clamp(1.65rem, 6.8vw, 2rem);
    line-height: 1.08;
  }

  .section-subtitle {
    margin-bottom: 20px;
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .booking-summary-card {
    padding: 16px;
    border-radius: 16px;
  }

  .booking-page-hero,
  .profile-page-hero {
    max-width: none;
  }

  .booking-page-grid,
  .booking-sidebar-stack {
    gap: 18px;
  }

  .booking-primary-panel .panel-head-row,
  .booking-guide-panel .panel-head-row,
  .booking-payment-panel .panel-head-row {
    align-items: flex-start;
  }

  .booking-item,
  .client-row,
  .history-row {
    border-radius: 14px;
  }

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



.dashboard-container {
  width: min(1360px, calc(100vw - 24px));
}

.dashboard-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
}

.dashboard-subnav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.9);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(24, 57, 43, 0.05);
}

.dashboard-subnav-link:hover {
  border-color: rgba(45, 122, 87, 0.32);
  color: var(--brand);
}

.dashboard-subnav-link.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 14px 24px rgba(24, 57, 43, 0.16);
}

.dashboard-records-stack {
  display: grid;
  gap: 22px;
}

.customer-overview-panel {
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(201, 169, 107, 0.16), transparent 34%),
    linear-gradient(165deg, rgba(255, 251, 244, 0.98), rgba(244, 235, 223, 0.98));
  box-shadow: var(--shadow);
}

.customer-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
  gap: 22px;
  align-items: start;
  margin-bottom: 20px;
}

.customer-overview-side {
  display: grid;
  gap: 14px;
}

.customer-overview-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.06;
}

.customer-overview-copy p {
  margin: 0 0 18px;
  max-width: 720px;
}

.customer-search-row {
  max-width: 760px;
  margin-bottom: 16px;
}

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

.customer-highlight-card,
.customer-focus-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 250, 242, 0.9);
  box-shadow: 0 10px 28px rgba(24, 57, 43, 0.06);
}

.customer-highlight-card {
  padding: 16px;
  display: grid;
  gap: 8px;
}

.customer-highlight-card small,
.customer-focus-label {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.customer-highlight-card strong {
  font-size: 1.08rem;
  line-height: 1.2;
}

.customer-highlight-card span {
  line-height: 1.5;
}

.customer-upcoming-shell {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  background: rgba(255, 250, 242, 0.92);
  box-shadow: 0 10px 28px rgba(24, 57, 43, 0.06);
}

.customer-upcoming-shell .panel-head-row {
  margin-bottom: 14px;
}

.customer-upcoming-card {
  min-height: 220px;
  box-shadow: 0 14px 26px rgba(10, 14, 20, 0.12);
}

.customer-focus-card {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.customer-focus-card .panel-head-row {
  margin-bottom: 0;
}

.customer-focus-list {
  display: grid;
  gap: 12px;
}

.customer-focus-item {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.38);
}

.customer-focus-item strong {
  font-size: 1rem;
  line-height: 1.35;
}

.customer-panel-subtitle {
  margin: 4px 0 0;
}

.panel-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.customer-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.customer-stat-card {
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 250, 242, 0.9);
  box-shadow: 0 10px 28px rgba(24, 57, 43, 0.06);
  display: grid;
  gap: 8px;
  min-height: 132px;
}

.customer-stat-card strong {
  font-size: clamp(1.45rem, 2vw, 1.95rem);
  line-height: 1;
}

.customer-stat-card-primary {
  background: linear-gradient(145deg, rgba(46, 106, 79, 0.96), rgba(24, 57, 43, 0.98));
  color: #fffaf2;
  border-color: rgba(24, 57, 43, 0.42);
  grid-column: span 2;
}

.customer-stat-card-primary small,
.customer-stat-card-primary span {
  color: rgba(255, 250, 242, 0.78);
}

.customer-main-grid,
.customer-secondary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.92fr);
  gap: 22px;
}

.customer-feature-panel {
  box-shadow: var(--shadow);
}

.customer-side-stack {
  display: grid;
  gap: 22px;
}

.style-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.style-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.92);
  color: var(--text);
  padding: 8px 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.style-chip:hover {
  border-color: rgba(46, 106, 79, 0.45);
  transform: translateY(-1px);
}

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

.stat-summary-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 250, 242, 0.86);
  padding: 14px;
}

.stat-summary-card small {
  color: var(--muted);
}

.stat-summary-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.4rem;
}

.nearby-grid {
  display: grid;
  gap: 10px;
}

.nearby-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.nearby-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.nearby-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}

.avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.avatar-placeholder span {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  font-size: 0.82rem;
}

.nearby-meta {
  min-width: 0;
}

.nearby-meta h4 {
  margin: 0 0 4px;
  font-size: 0.95rem;
}

.book-again-wrap {
  display: grid;
  gap: 10px;
}

.book-again-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 250, 242, 0.84);
}

.book-again-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.book-again-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}

.activity-row {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.activity-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.activity-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}

@media (max-width: 1100px) {
  .customer-overview-grid,
  .customer-main-grid,
  .customer-secondary-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .customer-overview-panel {
    padding: 18px;
  }

  .customer-overview-grid {
    gap: 16px;
    margin-bottom: 16px;
  }

  .customer-overview-copy h2 {
    font-size: clamp(1.8rem, 8vw, 2.35rem);
    line-height: 1.08;
  }

  .customer-overview-copy p {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .customer-overview-highlights {
    grid-template-columns: 1fr;
  }

  .customer-focus-card {
    padding: 16px;
  }

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

  .customer-stat-card-primary {
    grid-column: span 2;
  }
}

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

  .customer-stat-card-primary {
    grid-column: auto;
  }
}

.setup-shell {
  max-width: 1120px;
}

.setup-card {
  background: linear-gradient(165deg, rgba(255, 250, 242, 0.98), rgba(241, 234, 224, 0.96));
}

.setup-form-grid {
  gap: 14px;
}

.setup-block {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  display: grid;
  gap: 10px;
  background: rgba(255, 250, 242, 0.84);
}

.setup-block h3 {
  margin: 0;
}

@media (max-width: 1100px) {
  .stats-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .barber-overview-grid,
  .barber-main-grid,
  .barber-ops-grid,
  .barber-bottom-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .stats-summary-grid {
    grid-template-columns: 1fr;
  }

  .barber-overview-panel {
    padding: 18px;
  }

  .barber-stat-grid {
    grid-template-columns: 1fr;
  }

  .barber-status-card,
  .barber-stat-card,
  .client-row,
  .booking-item {
    border-radius: 14px;
  }
}

.barber-hub {
  display: grid;
  gap: 22px;
}

.admin-hub {
  display: grid;
  gap: 18px;
}

.admin-page-shell {
  padding-top: 28px;
}

.admin-hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 20px;
}

.admin-hero-copy,
.admin-command-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(201, 169, 107, 0.2), transparent 34%),
    linear-gradient(160deg, rgba(255, 251, 244, 0.98), rgba(244, 235, 223, 0.98));
  box-shadow: var(--shadow);
}

.admin-hero-copy {
  padding: 28px;
}

.admin-hero-copy .section-title {
  margin-bottom: 12px;
  max-width: 720px;
}

.admin-hero-subtitle {
  margin-bottom: 0;
}

.admin-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.admin-hero-side {
  display: grid;
}

.admin-command-card {
  padding: 22px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.admin-command-card h3 {
  margin: 0;
}

.admin-command-links {
  display: grid;
  gap: 10px;
}

.admin-command-links a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(46, 106, 79, 0.14);
  border-radius: 14px;
  padding: 11px 14px;
  background: rgba(255, 250, 242, 0.82);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.admin-command-links a:hover {
  border-color: rgba(46, 106, 79, 0.32);
  transform: translateY(-1px);
}

.admin-overview-metrics {
  gap: 14px;
}

.admin-subpage-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-subpage-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(46, 106, 79, 0.16);
  background: rgba(255, 250, 242, 0.88);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.admin-subpage-link:hover {
  border-color: rgba(46, 106, 79, 0.34);
  color: var(--primary);
}

.admin-subpage-link.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 10px 22px rgba(46, 106, 79, 0.2);
}

.admin-subpage-stack,
.admin-subpage-page {
  display: grid;
  gap: 18px;
}

.admin-overview-grid {
  margin-top: 0;
}

.admin-overview-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.admin-overview-shortcut {
  display: grid;
  gap: 8px;
  text-decoration: none;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(46, 106, 79, 0.14);
  background: rgba(255, 250, 242, 0.88);
  color: var(--text);
  box-shadow: 0 12px 24px rgba(39, 50, 39, 0.06);
}

.admin-overview-shortcut strong {
  font-size: 1rem;
}

.admin-overview-shortcut span {
  color: var(--muted);
  line-height: 1.5;
}

.admin-overview-shortcut:hover {
  border-color: rgba(46, 106, 79, 0.28);
  transform: translateY(-1px);
}

.admin-metric-card {
  display: grid;
  gap: 6px;
  min-height: 142px;
}

.admin-metric-card strong {
  font-size: clamp(1.6rem, 2vw, 2rem);
}

.admin-metric-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.admin-workspace-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.84fr) minmax(0, 1.6fr);
  gap: 18px;
  align-items: start;
}

.admin-side-rail,
.admin-main-stack,
.admin-section-block {
  display: grid;
  gap: 18px;
}

.admin-side-rail {
  position: sticky;
  top: 96px;
}

.admin-side-panel {
  background:
    linear-gradient(180deg, rgba(255, 251, 244, 0.98), rgba(248, 241, 231, 0.95));
}

.admin-section-block {
  padding: 22px;
  border: 1px solid rgba(46, 106, 79, 0.12);
  border-radius: 26px;
  background:
    radial-gradient(circle at top left, rgba(46, 106, 79, 0.05), transparent 26%),
    rgba(255, 251, 244, 0.88);
  box-shadow: 0 20px 48px rgba(39, 50, 39, 0.08);
}

.admin-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.admin-section-head h2 {
  margin: 0 0 6px;
  font-size: clamp(1.3rem, 2vw, 1.85rem);
}

.admin-section-head p {
  margin: 0;
}

.admin-section-kicker {
  margin: 0 0 8px;
  color: var(--primary-strong);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-feature-grid {
  align-items: start;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.status-panel .notice {
  margin-bottom: 0;
}

.dashboard-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(46, 106, 79, 0.12);
  border: 1px solid rgba(46, 106, 79, 0.18);
  color: var(--primary-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.barber-overview-panel {
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(201, 169, 107, 0.18), transparent 32%),
    linear-gradient(165deg, rgba(255, 251, 244, 0.98), rgba(244, 235, 223, 0.98));
  box-shadow: var(--shadow);
}

.barber-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 20px;
}

.barber-overview-side {
  display: grid;
  gap: 14px;
}

.barber-overview-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1.05;
}

.barber-overview-copy p {
  margin: 0;
  max-width: 700px;
}

.barber-overview-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.barber-overview-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.barber-highlight-card,
.barber-focus-card,
.barber-support-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 250, 242, 0.9);
  box-shadow: 0 10px 28px rgba(24, 57, 43, 0.06);
}

.barber-highlight-card {
  padding: 16px;
  display: grid;
  gap: 8px;
}

.barber-highlight-card small,
.barber-focus-label {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.barber-highlight-card strong {
  font-size: 1.1rem;
  line-height: 1.15;
}

.barber-highlight-card span {
  line-height: 1.5;
}

.barber-approval-banner {
  margin-bottom: 20px;
  border: 1px solid rgba(201, 169, 107, 0.52);
  border-radius: 18px;
  padding: 16px 18px;
  background: linear-gradient(160deg, rgba(201, 169, 107, 0.22), rgba(255, 250, 242, 0.96));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  box-shadow: 0 10px 28px rgba(201, 169, 107, 0.12);
}

.barber-approval-banner-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.barber-approval-banner-copy strong {
  font-size: 1rem;
  color: #785a24;
}

.barber-approval-banner-copy p {
  margin: 0;
  color: #5d4a28;
  max-width: 760px;
}

.barber-approval-banner.is-rejected,
.barber-approval-banner.is-suspended {
  border-color: rgba(182, 84, 75, 0.42);
  background: linear-gradient(160deg, rgba(182, 84, 75, 0.14), rgba(255, 250, 242, 0.96));
  box-shadow: 0 10px 28px rgba(182, 84, 75, 0.09);
}

.barber-approval-banner.is-rejected .barber-approval-banner-copy strong,
.barber-approval-banner.is-suspended .barber-approval-banner-copy strong {
  color: #8b433d;
}

.barber-approval-banner.is-rejected .barber-approval-banner-copy p,
.barber-approval-banner.is-suspended .barber-approval-banner-copy p {
  color: #6a4744;
}

.barber-status-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  background: rgba(255, 250, 242, 0.9);
  display: grid;
  gap: 14px;
  box-shadow: 0 10px 28px rgba(24, 57, 43, 0.06);
}

.barber-status-card .panel-head-row {
  margin-bottom: 0;
}

.barber-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.barber-stat-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 250, 242, 0.9);
  display: grid;
  gap: 8px;
  min-height: 140px;
  box-shadow: 0 10px 28px rgba(24, 57, 43, 0.06);
}

.barber-stat-card small,
.barber-stat-card span {
  color: var(--muted);
}

.barber-stat-card strong {
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1;
}

.barber-stat-card-primary {
  background: linear-gradient(145deg, rgba(46, 106, 79, 0.96), rgba(24, 57, 43, 0.98));
  border-color: rgba(24, 57, 43, 0.4);
  color: #fffaf2;
  grid-column: span 2;
}

.barber-stat-card-primary small,
.barber-stat-card-primary span {
  color: rgba(255, 250, 242, 0.78);
}

.barber-main-grid,
.barber-ops-grid,
.barber-bottom-grid,
.barber-support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
  gap: 22px;
}

.barber-feature-panel,
.barber-side-panel,
.barber-bookings-panel {
  box-shadow: var(--shadow);
}

.barber-feature-panel .booking-item,
.barber-side-panel .booking-item,
.barber-bookings-panel .booking-item,
.barber-bottom-grid .client-row {
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 12px 26px rgba(24, 57, 43, 0.05);
}

.barber-feature-panel .booking-item {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 250, 242, 0.92)),
    rgba(255, 250, 242, 0.92);
}

.barber-feature-panel .booking-item .booking-item-side,
.barber-side-panel .booking-item .booking-item-side,
.barber-bookings-panel .booking-item .booking-item-side {
  min-width: min(240px, 100%);
}

.barber-bookings-panel .booking-item .booking-tags {
  justify-content: flex-end;
}

.barber-panel-subtitle {
  margin: 4px 0 0;
}

.barber-overview-copy,
.barber-status-card,
.barber-focus-card,
.barber-stat-card,
.barber-feature-panel,
.barber-side-panel,
.barber-support-card {
  min-width: 0;
}

.barber-focus-card {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.barber-focus-card .panel-head-row,
.barber-support-card .panel-head-row {
  margin-bottom: 0;
}

.barber-focus-list {
  display: grid;
  gap: 12px;
}

.barber-focus-item {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.38);
}

.barber-focus-item strong {
  font-size: 1rem;
  line-height: 1.35;
}

.booking-list-spacious {
  gap: 14px;
}

.booking-list-compact {
  gap: 12px;
}

.barber-notification-preferences {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.portfolio-manager {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: rgba(255, 250, 242, 0.84);
}

@media (max-width: 1100px) {
  .barber-overview-grid,
  .barber-main-grid,
  .barber-support-grid,
  .barber-bottom-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 760px) {
  .barber-overview-panel {
    padding: 18px;
  }

  .barber-overview-grid {
    gap: 14px;
    margin-bottom: 16px;
  }

  .barber-overview-copy h2 {
    font-size: clamp(1.8rem, 8vw, 2.35rem);
    line-height: 1.08;
  }

  .barber-overview-copy p {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .barber-overview-badges {
    gap: 8px;
    margin-top: 14px;
  }

  .barber-overview-highlights {
    grid-template-columns: 1fr;
    margin-top: 16px;
  }

  .barber-status-card {
    padding: 16px;
  }

  .barber-focus-card,
  .barber-support-card {
    padding: 16px;
  }

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

  .barber-stat-card-primary {
    grid-column: span 2;
  }

  .barber-main-grid,
  .barber-support-grid,
  .barber-bottom-grid,
  .barber-hub {
    gap: 18px;
  }

  .barber-feature-panel,
  .barber-side-panel,
  .barber-bookings-panel {
    padding: 16px;
  }

  .barber-feature-panel .panel-head-row,
  .barber-side-panel .panel-head-row,
  .barber-bookings-panel .panel-head-row {
    align-items: flex-start;
  }

  .barber-feature-panel .booking-item,
  .barber-side-panel .booking-item,
  .barber-bookings-panel .booking-item,
  .barber-bottom-grid .client-row {
    padding: 14px;
    border-radius: 16px;
  }

  .barber-feature-panel .booking-item .booking-item-side,
  .barber-side-panel .booking-item .booking-item-side,
  .barber-bookings-panel .booking-item .booking-item-side {
    justify-items: start;
    min-width: 0;
    width: 100%;
  }

  .booking-action-stack,
  .barber-bookings-panel .booking-item .booking-tags {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .barber-stat-grid {
    grid-template-columns: 1fr;
  }

  .barber-stat-card-primary {
    grid-column: auto;
  }
}

.portfolio-add-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

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

.portfolio-chip-card {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255, 250, 242, 0.84);
}

.profile-image-preview-card {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 250, 242, 0.84);
  display: grid;
  gap: 10px;
}

.profile-image-preview-card img {
  width: 100%;
  max-width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.portfolio-chip-image {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #111722;
}

.portfolio-chip-image--invalid {
  display: grid;
  place-items: center;
  background: rgba(239, 68, 68, 0.08);
  color: #fecaca;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  padding: 10px;
}

.portfolio-chip-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.portfolio-chip-card a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  word-break: break-all;
}

.portfolio-chip-card a:hover {
  text-decoration: underline;
}

.portfolio-chip-copy p {
  margin: 0;
  word-break: break-word;
}

.portfolio-chip-actions {
  display: grid;
  gap: 8px;
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 500;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
}

.service-editor-list {
  display: grid;
  gap: 12px;
}

.service-editor-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: rgba(255, 250, 242, 0.84);
}

.service-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.service-editor-pills {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.service-editor-form {
  display: grid;
  gap: 12px;
}

.service-editor-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.barber-review-meta {
  margin: 0;
}

.checklist-grid {
  display: grid;
  gap: 10px;
}

.checklist-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 4px;
}

.checklist-item.done {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.08);
}

.checklist-item.done strong::after {
  content: "  Done";
  color: #6ee7b7;
  font-size: 0.84rem;
}

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

.settings-page-shell {
  width: min(1200px, calc(100vw - 24px));
}

.settings-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.settings-tab-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.92);
  color: var(--text);
  padding: 10px 16px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.settings-tab-btn:hover {
  border-color: rgba(46, 106, 79, 0.35);
  transform: translateY(-1px);
}

.settings-tab-btn.active {
  background: rgba(46, 106, 79, 0.12);
  border-color: rgba(46, 106, 79, 0.45);
  color: var(--brand);
}

.settings-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  margin-bottom: 22px;
  align-items: stretch;
}

.settings-hero-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  background: linear-gradient(145deg, rgba(255, 250, 242, 0.96), rgba(241, 234, 224, 0.96));
  display: grid;
  gap: 10px;
  align-content: start;
}

.settings-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: rgba(255, 250, 242, 0.9);
  display: grid;
  gap: 14px;
}

.settings-card-span-2 {
  grid-column: 1 / -1;
}

.settings-card h4 {
  margin: 0;
}

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

.settings-profile-form {
  gap: 16px;
}

.settings-upload-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 14px;
}

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

.upload-choice-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 250, 242, 0.84);
  display: grid;
  gap: 8px;
}

.upload-choice-card label {
  margin: 0;
  font-weight: 600;
  color: var(--text);
}

.settings-action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.settings-action-row .btn {
  min-width: 180px;
}

.review-card-list {
  display: grid;
  gap: 14px;
}

.review-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: rgba(255, 250, 242, 0.86);
  display: grid;
  gap: 10px;
}

.review-card-muted {
  opacity: 0.72;
}

.review-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.review-card-head p,
.review-card p,
.review-admin-note {
  margin: 0;
}

.review-rating-block {
  display: grid;
  gap: 4px;
  justify-items: end;
}

.review-stars {
  color: var(--accent);
  letter-spacing: 0.08em;
}

.barber-rating-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.barber-rating-line .review-stars {
  font-size: 0.95rem;
}

.profile-cta-panel {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid rgba(201, 169, 107, 0.45);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(201, 169, 107, 0.22), rgba(255, 250, 242, 0.82));
}

.profile-cta-panel p,
.profile-cta-panel strong {
  margin: 0;
}

.profile-review-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  background: rgba(255, 250, 242, 0.88);
}

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

.profile-service-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 250, 242, 0.82);
}

.profile-service-card p,
.profile-service-card strong {
  margin: 0;
}

.barber-service-pill-row {
  margin: 10px 0 4px;
}

.admin-filter-grid {
  grid-template-columns: 1fr;
  align-items: end;
}

.admin-filter-actions {
  display: flex;
  align-items: end;
  justify-content: flex-start;
  height: 100%;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 57, 43, 0.2);
  backdrop-filter: blur(8px);
  z-index: 90;
}

.modal-shell {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 91;
}

.modal-card {
  width: min(560px, 100%);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  background: #fffaf2;
  display: grid;
  gap: 16px;
  box-shadow: 0 28px 60px rgba(64, 51, 33, 0.18);
}

.review-rating-picker {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.review-rating-picker .btn.active {
  background: linear-gradient(135deg, var(--accent), #d3b888);
  color: #18392b;
  border-color: transparent;
}

.settings-link-list {
  display: grid;
  gap: 12px;
}

.settings-shortcuts {
  display: grid;
  gap: 10px;
  padding-top: 8px;
}

.settings-chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.settings-inline-stat {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 250, 242, 0.84);
}

.status-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin: 8px 0 2px;
}

.status-toggle input {
  position: absolute;
  opacity: 0;
}

.status-switch {
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: #253341;
  border: 1px solid var(--line);
  position: relative;
  transition: background 0.2s ease;
}

.status-switch::after {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e2e8f0;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform 0.2s ease;
}

.status-toggle input:checked + .status-switch {
  background: rgba(16, 185, 129, 0.32);
}

.status-toggle input:checked + .status-switch::after {
  transform: translateX(22px);
  background: #bbf7d0;
}

.day-checkboxes {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.day-checkboxes legend {
  color: #42564d;
  padding: 0 6px;
  font-size: 0.9rem;
}

.day-checkboxes label {
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text);
}

.day-checkboxes input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

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

.calendar-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.calendar-switch {
  display: inline-flex;
  gap: 8px;
}

.calendar-switch .btn.active {
  border-color: rgba(46, 106, 79, 0.45);
  background: rgba(46, 106, 79, 0.12);
  color: var(--primary);
}

.calendar-date {
  width: 170px;
  padding: 10px 12px;
}

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

.calendar-grid.week {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-grid.day {
  grid-template-columns: 1fr;
}

.calendar-cell {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 250, 242, 0.82);
  min-height: 120px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.calendar-day-title {
  font-size: 0.9rem;
  color: var(--muted);
}

.calendar-event {
  border: 1px solid rgba(46, 106, 79, 0.3);
  background: rgba(46, 106, 79, 0.12);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  text-align: left;
}

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

.calendar-event span {
  display: block;
  color: #476257;
  font-size: 0.85rem;
}

.calendar-empty {
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 14px;
  color: var(--muted);
}

.appointment-details {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: rgba(255, 250, 242, 0.84);
}

.client-row {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.client-row strong {
  display: block;
}

.admin-review-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  align-items: flex-start;
  background: rgba(255, 250, 242, 0.84);
}

.admin-barber-workboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-barber-workcard {
  border: 1px solid rgba(46, 106, 79, 0.14);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 250, 242, 0.9);
  box-shadow: 0 12px 24px rgba(39, 50, 39, 0.05);
  display: grid;
  gap: 6px;
}

.admin-barber-workcard small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.72rem;
  font-weight: 700;
}

.admin-barber-workcard strong {
  font-size: 1.8rem;
  line-height: 1;
}

.admin-barber-workcard p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.92rem;
}

.admin-barber-workcard-accent {
  background: linear-gradient(145deg, rgba(37, 75, 60, 0.96), rgba(52, 109, 84, 0.96));
  color: #fff;
  border-color: transparent;
}

.admin-barber-workcard-accent small,
.admin-barber-workcard-accent p {
  color: rgba(255, 255, 255, 0.82);
}

.admin-barber-card {
  border-radius: 22px;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(201, 169, 107, 0.12), transparent 28%),
    rgba(255, 251, 244, 0.95);
  box-shadow: 0 18px 32px rgba(39, 50, 39, 0.08);
}

.admin-barber-card-neutral {
  border-color: rgba(196, 157, 88, 0.32);
}

.admin-barber-card-success {
  border-color: rgba(46, 106, 79, 0.24);
}

.admin-barber-card-warning {
  border-color: rgba(183, 99, 52, 0.28);
}

.admin-barber-card-main {
  flex: 1 1 620px;
  min-width: 0;
  display: grid;
  gap: 14px;
}

.admin-barber-card-head {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.admin-barber-card-media {
  display: grid;
}

.admin-barber-thumb,
.admin-barber-thumb-placeholder {
  width: 92px;
  height: 92px;
  border-radius: 20px;
  object-fit: cover;
  border: 1px solid rgba(46, 106, 79, 0.16);
  background: rgba(244, 235, 223, 0.84);
}

.admin-barber-thumb-placeholder {
  display: grid;
  place-items: center;
  color: var(--primary-strong);
  font-weight: 800;
  font-size: 1.45rem;
}

.admin-barber-card-copy,
.admin-barber-card-titles,
.admin-barber-card-meta {
  display: grid;
  gap: 10px;
}

.admin-barber-card-titles strong {
  font-size: 1.12rem;
}

.admin-barber-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.admin-barber-signal-card {
  border: 1px solid rgba(46, 106, 79, 0.12);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 250, 242, 0.9);
  display: grid;
  gap: 5px;
}

.admin-barber-signal-card small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.7rem;
  font-weight: 700;
}

.admin-barber-signal-card strong {
  font-size: 1rem;
}

.admin-barber-signal-card p,
.admin-barber-summary-copy,
.admin-barber-summary-note {
  margin: 0;
}

.admin-barber-signal-card p {
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.9rem;
}

.admin-barber-summary-note {
  color: var(--muted);
}

.admin-review-main {
  flex: 1 1 520px;
  min-width: 0;
}

.admin-review-meta {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.admin-review-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px 14px;
  margin: 12px 0;
}

.admin-review-details p,
.admin-review-note {
  margin: 0;
  color: var(--muted);
}

.admin-review-summary {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.admin-review-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.admin-review-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.admin-review-links a:hover {
  text-decoration: underline;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 57, 43, 0.18);
  backdrop-filter: blur(4px);
  z-index: 70;
}

.side-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(560px, 96vw);
  height: 100vh;
  background: #fffaf2;
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 60px rgba(64, 51, 33, 0.16);
  padding: 24px;
  z-index: 75;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 20px;
}

.drawer-open {
  overflow: hidden;
}

.side-drawer-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.side-drawer-head h3,
.drawer-profile-hero h4 {
  margin: 0;
}

.side-drawer-body,
.drawer-profile-grid,
.drawer-profile-main,
.drawer-profile-side,
.drawer-link-list {
  display: grid;
  gap: 16px;
}

.drawer-profile-hero {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.drawer-detail-block {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 8px;
}

.drawer-detail-block p {
  margin: 0;
}

.drawer-link-list a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.drawer-link-list a:hover {
  text-decoration: underline;
}

.compliance-summary {
  display: grid;
  gap: 8px;
}

.compliance-summary p {
  margin: 0;
  color: var(--muted);
}

.request-service {
  color: var(--muted);
  font-size: 0.88rem;
}

@keyframes notificationPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 1px rgba(201, 169, 107, 0.24), 0 0 20px rgba(201, 169, 107, 0.18);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 0 1px rgba(201, 169, 107, 0.35), 0 0 28px rgba(201, 169, 107, 0.26);
  }
}

@media (max-width: 1100px) {
  .admin-barber-workboard,
  .admin-barber-signal-grid,
  .admin-overview-shortcuts,
  .admin-hero-shell,
  .admin-workspace-grid,
  .barber-top-grid,
  .barber-mid-grid,
  .admin-grid,
  .admin-filter-grid,
  .settings-grid,
  .settings-hero,
  .form-grid-2,
  .settings-upload-grid,
  .image-upload-choice-grid,
  .day-checkboxes,
  .time-row,
  .calendar-grid.week {
    grid-template-columns: 1fr;
  }

  .calendar-date {
    width: 100%;
  }

  .admin-side-rail {
    position: static;
  }

  .portfolio-chip-card,
  .share-link-copy-row,
  .portfolio-add-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .admin-barber-card-head {
    grid-template-columns: 1fr;
  }

  .admin-barber-thumb,
  .admin-barber-thumb-placeholder {
    width: 100%;
    max-width: 110px;
    height: 110px;
  }

  .admin-hero-copy,
  .admin-command-card,
  .admin-section-block {
    padding: 18px;
    border-radius: 20px;
  }

  .admin-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-hero-actions .btn {
    width: 100%;
  }

  .dashboard-container,
  .settings-page-shell {
    width: min(100%, calc(100vw - 16px));
  }

  .panel,
  .settings-card,
  .chat-page-card {
    padding: 18px;
    border-radius: 18px;
  }

  .panel-head-row,
  .chat-page-head,
  .search-row,
  .calendar-toolbar,
  .history-row,
  .review-card-head,
  .profile-cta-panel {
    grid-template-columns: 1fr;
    display: grid;
    align-items: stretch;
  }

  .booking-tags,
  .booking-tags-expanded,
  .settings-action-row {
    width: 100%;
  }

  .location-cta-btn {
    width: 100%;
    justify-content: center;
  }

  .settings-action-row .btn,
  .search-row .btn,
  .action-row .btn {
    width: 100%;
  }

  .review-rating-picker {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .booking-service-option,
  .profile-service-card,
  .booking-service-summary-head {
    grid-template-columns: 1fr;
    display: grid;
  }
}

@media (max-width: 620px) {
  .section {
    padding: 18px 0 26px;
  }

  .site-header {
    backdrop-filter: blur(8px);
  }

  .nav-shell {
    min-height: 64px;
    gap: 12px;
  }

  .section-title {
    font-size: 1.9rem;
    line-height: 1.08;
  }

  .section-subtitle {
    font-size: 0.96rem;
  }

  .panel,
  .settings-card,
  .chat-page-card,
  .form-card {
    padding: 16px;
  }

  .booking-item,
  .notification-item,
  .admin-review-card,
  .client-row,
  .calendar-event {
    padding-left: 12px;
    padding-right: 12px;
  }

  .profile-image-preview-card img {
    max-width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .portfolio-chip-card {
    padding: 12px;
  }

  .portfolio-chip-actions,
  .review-rating-picker {
    grid-template-columns: 1fr;
  }

  .settings-hero-card {
    padding: 16px;
  }

  .modal-card,
  .profile-review-panel {
    padding: 18px;
  }

  .booking-page-hero {
    gap: 8px;
    margin-bottom: 16px;
  }

  .booking-page-grid,
  .booking-sidebar-stack {
    gap: 14px;
  }

  .booking-primary-panel,
  .booking-guide-panel,
  .booking-payment-panel,
  .booking-trust-panel,
  .payment-status-card {
    border-radius: 16px;
  }

  .booking-panel-subtitle,
  .payment-helper {
    font-size: 0.94rem;
  }

  .payment-status-card {
    gap: 14px;
    padding: 14px;
  }

  .payment-status-head {
    flex-direction: column;
    align-items: stretch;
  }

  .payment-status-copy strong {
    font-size: 1.02rem;
  }

  .payment-timeline {
    gap: 8px;
  }

  .payment-timeline-step {
    grid-template-columns: 14px 1fr;
    gap: 8px;
    align-items: flex-start;
  }

  .payment-summary-grid {
    padding: 12px 14px;
    gap: 8px;
  }

  .payment-summary-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
    justify-content: space-between;
  }

  .payment-service-pill-row {
    gap: 8px;
  }

  .payment-service-pill-row .pill {
    width: fit-content;
    max-width: 100%;
  }

  .payment-service-pill-row .btn {
    width: 100%;
    justify-content: center;
  }

  .payment-trust-list,
  .booking-trust-list {
    gap: 8px;
  }

  .booking-trust-item {
    padding: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .payment-next-step,
  .booking-summary-brief-item {
    padding: 12px;
  }

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

  .barber-card-actions,
  .barber-portfolio-strip {
    grid-template-columns: 1fr;
  }

  .payment-action-row .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .barber-stat-grid,
  .customer-stat-grid,
  .payment-summary-row,
  .payment-action-row {
    grid-template-columns: 1fr;
  }

  .booking-summary-brief {
    grid-template-columns: 1fr;
  }
}

.input-with-action {
  position: relative;
}

.input-with-action .input {
  padding-right: 84px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  min-width: 72px;
  height: 36px;
  border: 1px solid rgba(46, 106, 79, 0.18);
  background: rgba(255, 250, 242, 0.92);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0 12px 0 38px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.password-toggle:hover {
  transform: translateY(-50%) scale(1.04);
  border-color: rgba(46, 106, 79, 0.42);
  box-shadow: 0 10px 22px rgba(46, 106, 79, 0.12);
}

.password-toggle::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  border: 2px solid currentColor;
  border-radius: 75% 25% 75% 25% / 55% 45% 55% 45%;
  background: radial-gradient(circle at 50% 50%, currentColor 0 2.5px, transparent 3px);
  animation: trimly-eye-blink 3.6s ease-in-out infinite;
}

.password-toggle::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transform: translateY(-50%) rotate(-32deg);
  opacity: 1;
  transition: opacity 0.2s ease;
}

.password-toggle[data-visible="true"]::after {
  opacity: 0;
}

@keyframes trimly-eye-blink {
  0%, 44%, 48%, 100% {
    transform: scaleY(1);
  }
  46% {
    transform: scaleY(0.12);
  }
}

.chat-page-shell {
  max-width: 1080px;
}

.chat-page-hero {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
  max-width: 760px;
}

.chat-page-card {
  background:
    radial-gradient(circle at top right, rgba(201, 169, 107, 0.16), transparent 32%),
    linear-gradient(165deg, rgba(255, 251, 244, 0.98), rgba(244, 235, 223, 0.98));
  border: 1px solid rgba(217, 206, 187, 0.92);
  border-radius: 26px;
  padding: 28px 28px 24px;
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 24px 60px rgba(64, 51, 33, 0.16);
}

.chat-page-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.chat-card-title {
  margin: 10px 0 6px;
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.chat-head-actions {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.chat-quick-hint {
  max-width: 560px;
}

.chat-context-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.chat-context-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 250, 242, 0.84);
}

.chat-context-card strong,
.chat-context-card small {
  margin: 0;
}

.chat-thread {
  flex: 1;
  min-height: 420px;
  max-height: 62vh;
  overflow-y: auto;
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.96), rgba(247, 241, 231, 0.98));
  border: 1px solid rgba(217, 206, 187, 0.82);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-empty-state {
  margin: auto;
  text-align: center;
  max-width: 420px;
}

.chat-empty-state strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.chat-bubble {
  align-self: flex-start;
  max-width: min(78%, 540px);
  background: rgba(255, 250, 242, 0.92);
  color: #244236;
  padding: 14px 16px;
  border-radius: 18px 18px 18px 8px;
  border: 1px solid rgba(216, 207, 192, 0.92);
  box-shadow: 0 12px 24px rgba(64, 51, 33, 0.08);
}

.chat-bubble.mine {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fffaf2;
  border-color: rgba(24, 57, 43, 0.28);
  border-radius: 18px 18px 8px 18px;
}

.chat-bubble-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.78rem;
}

.chat-bubble-meta span {
  opacity: 0.8;
}

.chat-bubble p {
  margin: 0;
  line-height: 1.6;
}

.chat-composer {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 250, 242, 0.92);
  border: 1px solid rgba(217, 206, 187, 0.92);
}

.chat-composer-copy {
  display: grid;
  gap: 4px;
}

.chat-composer-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.chat-composer-input {
  flex: 1;
}

.chat-send-btn {
  min-width: 110px;
}

.demo-auth-pill {
  align-self: center;
}

.demo-shell {
  display: grid;
  gap: 24px;
}

.demo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 18px;
  align-items: stretch;
}

.demo-status-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid rgba(217, 206, 187, 0.92);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(201, 169, 107, 0.12), transparent 35%),
    linear-gradient(165deg, rgba(255, 251, 244, 0.98), rgba(244, 235, 223, 0.96));
  box-shadow: 0 20px 50px rgba(64, 51, 33, 0.1);
}

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

.demo-launch-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(217, 206, 187, 0.92);
  background:
    radial-gradient(circle at top right, rgba(121, 194, 154, 0.14), transparent 35%),
    linear-gradient(180deg, rgba(255, 251, 244, 0.98), rgba(244, 235, 223, 0.98));
  box-shadow: 0 22px 56px rgba(64, 51, 33, 0.12);
}

.demo-launch-card h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.demo-launch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.demo-note-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .chat-page-card {
    padding: 18px;
    min-height: 78vh;
  }

  .chat-page-head {
    flex-direction: column;
  }

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

  .chat-thread {
    min-height: 360px;
    max-height: 58vh;
  }

  .chat-bubble {
    max-width: 90%;
  }

  .chat-bubble-meta {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .chat-composer-controls {
    flex-direction: column;
  }

  .chat-thread {
    padding: 14px;
  }

  .chat-composer {
    padding: 14px;
  }

  .chat-composer-input {
    width: 100%;
  }

  .chat-send-btn {
    width: 100%;
  }

  .demo-hero,
  .demo-launch-grid,
  .demo-notes-grid {
    grid-template-columns: 1fr;
  }

  .demo-launch-actions {
    flex-direction: column;
  }
}
.payment-status-shell {
  max-width: 760px;
}

.payment-status-card-page {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.payment-status-card-page .payment-action-row {
  justify-content: center;
}

.footer-links-inline {
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links-inline a {
  color: var(--muted);
}

.footer-links-inline a:hover {
  color: var(--text);
}


.contact-shell {
  display: grid;
  gap: 18px;
}

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

.contact-grid-secondary {
  align-items: start;
}

.contact-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.82);
  box-shadow: 0 16px 34px rgba(28, 77, 58, 0.05);
}

.contact-card h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.2rem;
}

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

.contact-card-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(46, 106, 79, 0.12);
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-channel-list,
.contact-links-list {
  display: grid;
  gap: 10px;
}

.contact-channel-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  width: fit-content;
  max-width: 100%;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(28, 77, 58, 0.14);
  background: rgba(255, 255, 255, 0.82);
  color: var(--primary);
  font-weight: 600;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-response-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(28, 77, 58, 0.1);
  background: linear-gradient(135deg, rgba(245, 250, 247, 0.95), rgba(255, 250, 242, 0.92));
  box-shadow: 0 18px 36px rgba(28, 77, 58, 0.06);
}

.contact-response-copy {
  display: grid;
  gap: 10px;
}

.contact-response-copy h2 {
  margin: 0;
  color: var(--text);
}

.contact-response-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.contact-response-points {
  display: grid;
  gap: 12px;
}

.contact-response-point {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(28, 77, 58, 0.1);
  background: rgba(255, 255, 255, 0.82);
}

.contact-response-point strong {
  color: var(--text);
}

.contact-response-point span {
  color: var(--muted);
  line-height: 1.55;
}

.contact-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.contact-links-list a {
  color: var(--primary);
  font-weight: 600;
}

.policy-shell {
  width: min(980px, 92vw);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.policy-hero {
  display: grid;
  gap: 12px;
}

.policy-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  padding: 24px;
  box-shadow: var(--shadow);
}

.policy-card h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.policy-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.policy-list {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.policy-list li + li {
  margin-top: 8px;
}

@media (max-width: 760px) {

  .contact-grid,
  .contact-response-band {
    grid-template-columns: 1fr;
  }

  .contact-card,
  .contact-response-band {
    padding: 18px;
    border-radius: 18px;
  }

  .contact-channel-pill {
    width: 100%;
    justify-content: center;
    padding: 10px 14px;
    min-height: 48px;
    line-height: 1.35;
  }

  .hero {
    padding: 42px 0 28px;
  }

  .hero-grid,
  .settings-hero,
  .profile-layout,
  .profile-content-grid,
  .settings-upload-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero p,
  .customer-overview-copy p,
  .barber-overview-copy p,
  .profile-bio-lead,
  .section-subtitle {
    max-width: none;
  }

  .hero-panel,
  .profile-layout,
  .profile-portfolio-panel,
  .settings-hero-card,
  .policy-card {
    border-radius: 18px;
    padding: 18px;
  }

  .hero-stats,
  .profile-stat-grid,
  .form-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-row,
  .settings-action-row,
  .profile-action-row,
  .notification-popover-actions,
  .action-row {
    align-items: stretch;
  }

  .search-row > *,
  .settings-action-row > *,
  .profile-action-row > * {
    flex: 1 1 180px;
  }

  .filter-bar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .settings-tab-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 16px;
    scrollbar-width: none;
  }

  .settings-tab-bar::-webkit-scrollbar {
    display: none;
  }

  .settings-tab-btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .chat-page-shell {
    gap: 18px;
  }

  .chat-page-head {
    display: grid;
    gap: 14px;
  }

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

  .chat-head-actions .btn {
    width: 100%;
  }

  .notification-popover {
    right: -2px;
    width: min(420px, calc(100vw - 12px));
  }

  .footer-row {
    display: grid;
    gap: 10px;
  }
}

@media (max-width: 620px) {
  .container,
  .dashboard-container,
  .settings-page-shell,
  .policy-shell {
    width: min(100%, calc(100vw - 8px));
  }

  .hero {
    padding: 30px 0 20px;
  }

  .hero h1 {
    font-size: clamp(1.95rem, 8.5vw, 2.5rem);
    line-height: 1.05;
  }

  .hero-stats,
  .profile-stat-grid,
  .kpi-grid,
  .chat-head-actions {
    grid-template-columns: 1fr;
  }

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

  .portfolio-gallery-card img {
    height: 180px;
  }

  .notification-popover {
    left: 0;
    right: 0;
    width: auto;
  }

  .notification-popover-head,
  .notification-heading-row,
  .panel-head-row,
  .review-card-head,
  .calendar-toolbar {
    display: grid;
    gap: 10px;
    justify-content: stretch;
    align-items: start;
  }

  .notification-popover-actions > *,
  .action-row > * {
    flex: 1 1 140px;
  }

  .policy-card {
    padding: 18px;
  }
}

@media (max-width: 480px) {
  .brand {
    font-size: 1.08rem;
  }

  .brand-badge {
    width: 28px;
    height: 28px;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .hero-panel,
  .profile-layout,
  .profile-portfolio-panel,
  .settings-hero-card,
  .policy-card,
  .panel,
  .settings-card,
  .chat-page-card,
  .form-card {
    padding: 14px;
    border-radius: 16px;
  }

  .search-row > *,
  .settings-action-row > *,
  .profile-action-row > *,
  .notification-popover-actions > *,
  .action-row > * {
    flex-basis: 100%;
  }

  .portfolio-gallery-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-gallery-card img {
    height: 220px;
  }

  .footer-links-inline {
    display: grid;
    gap: 8px;
  }
}

/* Mobile cleanup override: July 2026 */
@media (max-width: 760px) {
  .container,
  .dashboard-container,
  .settings-page-shell,
  .policy-shell {
    width: min(100%, calc(100vw - 20px));
  }

  .site-header {
    backdrop-filter: blur(14px);
  }

  .nav-shell {
    position: relative;
    min-height: 60px;
    gap: 10px;
    padding-block: 8px;
    align-items: center;
  }

  .brand {
    gap: 10px;
    min-width: 0;
    font-size: 1.06rem;
    line-height: 1;
  }

  .brand-badge {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    flex: 0 0 auto;
  }

  .nav-toggle {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 11px;
    flex: 0 0 auto;
    font-size: 0.92rem;
    line-height: 1;
  }

  .nav-main {
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    border-radius: 18px;
    padding: 14px;
    gap: 14px;
  }

  .nav-links,
  .auth-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 10px;
  }

  .nav-links a,
  .auth-actions .btn,
  .auth-admin-link {
    width: 100%;
    justify-content: flex-start;
  }

  .btn {
    min-height: 46px;
    padding: 12px 16px;
  }

  .btn-sm {
    min-height: 42px;
    padding: 9px 12px;
  }

  .section {
    padding: 20px 0 28px;
  }

  .section-title {
    font-size: clamp(1.8rem, 8.8vw, 2.35rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
  }

  .section-subtitle {
    margin-bottom: 18px;
    font-size: 0.96rem;
    line-height: 1.55;
  }

  .panel,
  .settings-card,
  .chat-page-card,
  .form-card,
  .hero-panel,
  .policy-card,
  .settings-hero-card,
  .customer-focus-card,
  .barber-focus-card,
  .barber-status-card,
  .customer-upcoming-shell,
  .upcoming-appointment-card {
    padding: 16px;
    border-radius: 18px;
  }

  .dashboard-subnav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 16px;
  }

  .dashboard-subnav-link {
    width: 100%;
    justify-content: flex-start;
  }

  .booking-page-grid,
  .booking-sidebar-stack,
  .customer-main-grid,
  .customer-secondary-grid,
  .customer-overview-grid,
  .barber-main-grid,
  .barber-support-grid,
  .barber-bottom-grid,
  .settings-grid,
  .stats-summary-grid,
  .hero-stats,
  .profile-stat-grid,
  .kpi-grid,
  .quick-actions-grid,
  .filter-bar,
  .customer-overview-highlights,
  .barber-overview-highlights,
  .barber-stat-grid,
  .customer-stat-grid,
  .booking-summary-brief,
  .form-grid-2,
  .portfolio-add-row,
  .share-link-copy-row,
  .portfolio-chip-actions,
  .review-rating-picker,
  .booking-service-option,
  .profile-service-card,
  .booking-service-summary-head,
  .chat-head-actions {
    grid-template-columns: 1fr;
  }

  .booking-page-grid,
  .booking-sidebar-stack,
  .customer-marketplace,
  .barber-hub,
  .barber-main-grid,
  .barber-support-grid,
  .barber-bottom-grid,
  .customer-main-grid,
  .customer-secondary-grid,
  .customer-overview-grid,
  .barber-overview-grid,
  .settings-grid {
    gap: 16px;
  }

  body[data-page="dashboard"] .section {
    padding-top: 16px;
  }

  body[data-page="dashboard"] .dashboard-container > .section-title {
    font-size: clamp(1.5rem, 7vw, 1.95rem);
    line-height: 1.12;
    margin-bottom: 8px;
  }

  body[data-page="dashboard"] .section-subtitle {
    display: grid;
    gap: 6px;
    margin-bottom: 16px;
  }

  body[data-page="dashboard"] .section-subtitle .pill {
    justify-self: start;
  }

  .barber-overview-copy h2,
  .customer-overview-copy h2 {
    font-size: clamp(1.45rem, 6.6vw, 1.9rem);
    line-height: 1.12;
  }

  .barber-overview-badges {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .customer-overview-highlights,
  .barber-overview-highlights,
  .customer-focus-list,
  .barber-focus-list {
    gap: 10px;
  }

  .customer-highlight-card,
  .barber-highlight-card,
  .customer-focus-card,
  .barber-focus-card,
  .barber-support-card,
  .customer-upcoming-shell {
    padding: 14px;
  }

  .booking-item strong {
    font-size: 0.98rem;
    line-height: 1.25;
  }

  .upcoming-actions,
  .booking-action-stack,
  .booking-item-side .action-row {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 8px;
  }

  .upcoming-actions .btn,
  .booking-item-side .btn {
    width: 100%;
    justify-content: center;
  }

  .barber-stat-card-primary,
  .customer-stat-card-primary {
    grid-column: auto;
  }

  .panel-head-row,
  .payment-status-head,
  .notification-heading-row,
  .notification-popover-head,
  .calendar-toolbar,
  .review-card-head,
  .search-row,
  .history-row,
  .profile-cta-panel {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 10px;
  }

  .booking-item,
  .notification-item,
  .admin-review-card,
  .client-row,
  .calendar-event,
  .history-row {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
  }

  .booking-item > div:first-child {
    flex: 1 1 auto;
  }

  .booking-item-copy,
  .client-row-copy {
    gap: 6px;
  }

  .booking-item-side {
    justify-items: start;
    width: 100%;
    min-width: 0;
    gap: 8px;
  }

  .booking-tags,
  .booking-tags-expanded,
  .booking-action-stack,
  .settings-action-row,
  .action-row,
  .search-row,
  .notification-popover-actions {
    width: 100%;
  }

  .notification-popover-actions > *,
  .settings-action-row > *,
  .search-row > *,
  .action-row > * {
    flex: 1 1 100%;
    width: 100%;
  }

  .payment-status-card,
  .booking-primary-panel,
  .booking-guide-panel,
  .booking-payment-panel,
  .booking-trust-panel {
    padding: 16px;
    border-radius: 18px;
  }

  body[data-page="payment-status"] .section {
    padding-top: 18px;
    padding-bottom: 24px;
  }

  body[data-page="payment-status"] .payment-status-shell {
    gap: 16px;
  }

  body[data-page="payment-status"] .payment-status-card-page {
    gap: 16px;
  }

  body[data-page="payment-status"] .section-title {
    margin-bottom: 4px;
  }

  body[data-page="payment-status"] .section-subtitle {
    margin-bottom: 0;
  }

  body[data-page="payment-status"] .payment-action-row {
    gap: 12px;
    margin-top: 4px;
  }

  body[data-page="payment-status"] .payment-action-row .btn {
    min-height: 46px;
  }

  body[data-page="booking"] .booking-primary-panel,
  body[data-page="booking"] .booking-guide-panel,
  body[data-page="booking"] .booking-payment-panel,
  body[data-page="booking"] .booking-trust-panel,
  body[data-page="booking"] .booking-summary-card,
  body[data-page="payment-status"] .payment-status-card,
  body[data-page="messages"] .chat-page-card,
  body[data-page="messages"] .chat-context-card,
  body[data-page="messages"] .chat-composer {
    border-radius: 18px;
    box-shadow: 0 14px 28px rgba(24, 57, 43, 0.08);
  }

  body[data-page="booking"] .section {
    padding-top: 16px;
    padding-bottom: 24px;
  }

  body[data-page="booking"] .booking-page-grid,
  body[data-page="booking"] .booking-sidebar-stack {
    gap: 16px;
  }

  body[data-page="booking"] .booking-summary-shell {
    gap: 12px;
    margin-bottom: 18px;
  }

  body[data-page="booking"] .booking-summary-card {
    padding: 16px;
    gap: 12px;
  }

  body[data-page="booking"] .booking-form-grid {
    gap: 18px;
  }

  body[data-page="booking"] .booking-service-block,
  body[data-page="booking"] .booking-trust-list,
  body[data-page="booking"] .booking-list {
    gap: 12px;
  }

  body[data-page="booking"] .booking-service-option {
    gap: 10px;
    padding: 15px 14px;
  }

  body[data-page="booking"] .booking-service-summary,
  body[data-page="booking"] .booking-trust-item {
    padding: 14px;
  }

  body[data-page="booking"] .panel-head-row {
    gap: 12px;
  }

  .payment-summary-grid,
  .booking-summary-card,
  .booking-summary-shell {
    padding: 14px;
  }

  .payment-summary-row,
  .payment-action-row {
    grid-template-columns: 1fr;
  }

  .payment-action-row {
    display: grid;
    gap: 10px;
  }

  .payment-action-row .btn,
  .booking-form-grid .btn,
  .booking-payment-panel .btn,
  .location-cta-btn {
    width: 100%;
    justify-content: center;
  }

  .site-footer {
    padding: 24px 0 18px;
  }

  .footer-shell {
    gap: 18px;
  }

  .footer-brand {
    font-size: 1.08rem;
  }

  .footer-summary {
    font-size: 0.95rem;
  }

  .footer-nav-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-nav-links {
    gap: 9px;
  }

  .footer-contact-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .footer-contact-pill {
    padding: 14px 16px;
    border-radius: 22px;
  }

  .footer-contact-pill-value {
    font-size: 0.94rem;
  }

  .footer-label {
    font-size: 1.28rem;
  }

  .footer-social-links {
    gap: 10px;
    padding: 10px 12px;
  }

  .footer-social-link {
    width: 42px;
    height: 42px;
  }

  .booking-service-block,
  .setup-block,
  .booking-trust-item,
  .payment-next-step,
  .booking-summary-brief-item {
    padding: 14px;
  }

  .footer-row,
  .footer-links-inline {
    display: grid;
    gap: 8px;
    justify-content: flex-start;
    text-align: left;
  }

  body[data-page="messages"] .section {
    padding-top: 18px;
    padding-bottom: 24px;
  }

  body[data-page="messages"] .chat-page-shell {
    gap: 16px;
  }

  body[data-page="messages"] .chat-page-hero {
    margin-bottom: 0;
    gap: 8px;
  }

  body[data-page="messages"] .chat-page-card {
    gap: 16px;
    min-height: auto;
  }

  body[data-page="messages"] .chat-page-head {
    gap: 12px;
  }

  body[data-page="messages"] .chat-context-strip {
    gap: 10px;
  }

  body[data-page="messages"] .chat-context-card {
    padding: 13px 14px;
  }

  body[data-page="messages"] .chat-thread {
    min-height: 320px;
    max-height: none;
    gap: 12px;
    padding: 14px;
  }

  body[data-page="messages"] .chat-bubble {
    max-width: 92%;
    padding: 12px 13px;
  }

  body[data-page="messages"] .chat-composer {
    gap: 10px;
    padding: 14px;
  }

  body[data-page="messages"] .chat-composer-controls {
    gap: 10px;
  }

  body[data-page="messages"] .chat-composer-input,
  body[data-page="messages"] .chat-send-btn {
    min-height: 46px;
  }
}

@media (max-width: 480px) {
  .container,
  .dashboard-container,
  .settings-page-shell,
  .policy-shell {
    width: min(100%, calc(100vw - 14px));
  }

  .brand {
    font-size: 1rem;
    gap: 8px;
  }

  .brand span:last-child {
    max-width: calc(100vw - 126px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-badge {
    width: 28px;
    height: 28px;
  }

  .nav-toggle {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    font-size: 0.88rem;
  }

  .site-footer {
    padding: 22px 0 18px;
  }

  .footer-shell {
    gap: 16px;
  }

  .footer-brand {
    gap: 10px;
    font-size: 0.98rem;
    letter-spacing: 0.05em;
  }

  .footer-summary {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .footer-nav-title {
    font-size: 0.96rem;
  }

  .footer-nav-links a {
    font-size: 0.94rem;
  }

  .footer-contact-pill {
    padding: 13px 14px;
  }

  .footer-contact-pill-label {
    font-size: 0.71rem;
  }

  .footer-contact-pill-value {
    font-size: 0.88rem;
  }

  .footer-label {
    font-size: 1.12rem;
  }

  .footer-social-links {
    gap: 8px;
    padding: 10px;
  }

  .footer-social-link {
    width: 40px;
    height: 40px;
  }

  .btn {
    min-height: 44px;
    padding: 11px 14px;
  }

  .btn-sm {
    min-height: 40px;
    padding: 8px 11px;
  }

  .footer-support-panel {
    padding: 14px;
  }

  .footer-support-title {
    font-size: 0.96rem;
  }

  .footer-support-note,
  .footer-support-link,
  .contact-card p,
  .contact-response-copy p,
  .contact-response-point span {
    font-size: 0.92rem;
  }

  .contact-card,
  .contact-response-band {
    padding: 16px;
  }

  .panel-head-row,
  .settings-action-row,
  .booking-tags,
  .booking-tags-expanded,
  .search-row,
  .action-row {
    gap: 10px;
  }

  .footer-contact-pill-value,
  .contact-card a,
  .contact-response-copy a,
  .notice {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .contact-channel-pill {
    font-size: 0.94rem;
  }

  .panel,
  .settings-card,
  .chat-page-card,
  .form-card,
  .hero-panel,
  .policy-card,
  .settings-hero-card,
  .customer-focus-card,
  .barber-focus-card,
  .barber-status-card,
  .customer-upcoming-shell,
  .upcoming-appointment-card,
  .payment-status-card,
  .booking-primary-panel,
  .booking-guide-panel,
  .booking-payment-panel,
  .booking-trust-panel {
    padding: 14px;
    border-radius: 16px;
  }

  body[data-page="payment-status"] .section {
    padding-top: 16px;
    padding-bottom: 20px;
  }

  body[data-page="payment-status"] .payment-status-card-page {
    gap: 14px;
  }

  body[data-page="payment-status"] .payment-action-row {
    gap: 10px;
  }

  body[data-page="booking"] .booking-page-grid,
  body[data-page="booking"] .booking-sidebar-stack {
    gap: 14px;
  }

  body[data-page="booking"] .booking-summary-shell {
    margin-bottom: 16px;
  }

  body[data-page="booking"] .booking-summary-card,
  body[data-page="booking"] .booking-service-summary,
  body[data-page="booking"] .booking-trust-item {
    padding: 13px;
  }

  body[data-page="booking"] .booking-service-option {
    padding: 14px 13px;
  }

  body[data-page="messages"] .section {
    padding-top: 16px;
    padding-bottom: 20px;
  }

  body[data-page="messages"] .chat-page-shell,
  body[data-page="messages"] .chat-page-card {
    gap: 14px;
  }

  body[data-page="messages"] .chat-thread,
  body[data-page="messages"] .chat-composer,
  body[data-page="messages"] .chat-context-card {
    padding: 13px;
  }

  body[data-page="messages"] .chat-bubble {
    max-width: 94%;
    padding: 11px 12px;
  }

  body[data-page="booking"] .booking-primary-panel,
  body[data-page="booking"] .booking-guide-panel,
  body[data-page="booking"] .booking-payment-panel,
  body[data-page="booking"] .booking-trust-panel,
  body[data-page="booking"] .booking-summary-card,
  body[data-page="payment-status"] .payment-status-card,
  body[data-page="messages"] .chat-page-card,
  body[data-page="messages"] .chat-context-card,
  body[data-page="messages"] .chat-composer {
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(24, 57, 43, 0.08);
  }

  .section-title {
    font-size: clamp(1.65rem, 9vw, 2.05rem);
  }

  body[data-page="dashboard"] .dashboard-container > .section-title {
    font-size: clamp(1.42rem, 8vw, 1.8rem);
    line-height: 1.16;
  }

  .dashboard-subnav-link {
    min-height: 40px;
    padding: 0 14px;
  }

  .customer-highlight-card strong,
  .barber-highlight-card strong {
    font-size: 1rem;
  }

  .booking-item,
  .notification-item,
  .admin-review-card,
  .client-row,
  .calendar-event,
  .history-row {
    padding: 12px;
  }

  .portfolio-gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .container,
  .dashboard-container,
  .settings-page-shell,
  .policy-shell {
    width: min(100%, calc(100vw - 10px));
  }

  .section-title {
    font-size: 1.68rem;
  }

  .section-subtitle {
    font-size: 0.92rem;
  }

  .btn,
  .input,
  select,
  textarea {
    font-size: 0.95rem;
  }

  .brand span:last-child {
    max-width: calc(100vw - 112px);
  }
}
/* End mobile cleanup override */

/* Shared visual polish override: July 2026 */
.site-header {
  background: rgba(255, 250, 242, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(64, 51, 33, 0.05);
}

.nav-shell {
  min-height: 78px;
  gap: 20px;
  position: relative;
}

.brand {
  gap: 12px;
  font-size: 1.2rem;
  font-weight: 700;
}

.nav-main {
  gap: 16px;
}

.nav-links {
  gap: 10px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.82);
  border: 1px solid rgba(28, 77, 58, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.nav-links a {
  min-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.auth-actions {
  gap: 12px;
}

.auth-actions .btn,
.auth-actions .auth-admin-link {
  min-height: 44px;
}

.auth-actions .btn {
  padding-inline: 18px;
}

.panel,
.customer-highlight-card,
.customer-focus-card,
.barber-highlight-card,
.barber-focus-card,
.barber-status-card,
.barber-stat-card,
.stat-summary-card,
.quick-action-card,
.booking-item,
.upcoming-appointment-card,
.payment-status-card,
.chat-page-card,
.chat-context-card,
.chat-composer,
.booking-service-option,
.booking-service-summary,
.booking-summary-card,
.booking-trust-item {
  border-color: rgba(28, 77, 58, 0.1);
  box-shadow: 0 18px 34px rgba(24, 57, 43, 0.07);
}

.panel {
  padding: 22px;
  border-radius: 26px;
  background: rgba(255, 250, 242, 0.92);
}

.panel-head-row {
  gap: 14px;
  margin-bottom: 14px;
}

.panel h3,
.chat-card-title {
  font-family: var(--font-heading);
  letter-spacing: -0.03em;
}

.dashboard-subnav {
  gap: 12px;
  margin-bottom: 24px;
}

.dashboard-subnav-link {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 251, 246, 0.95);
}

.customer-overview-panel,
.barber-overview-panel {
  padding: 28px;
}

.customer-overview-grid,
.barber-overview-grid {
  gap: 28px;
  margin-bottom: 24px;
}

.customer-overview-copy h2,
.barber-overview-copy h2 {
  margin: 0 0 12px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.customer-overview-copy p,
.barber-overview-copy p {
  max-width: 620px;
}

.customer-overview-highlights,
.barber-overview-highlights,
.customer-stat-grid,
.barber-stat-grid,
.quick-actions-grid {
  gap: 14px;
}

.customer-highlight-card,
.barber-highlight-card,
.customer-focus-card,
.barber-focus-card,
.barber-status-card,
.barber-stat-card,
.stat-summary-card,
.quick-action-card {
  border-radius: 24px;
}

.customer-highlight-card,
.barber-highlight-card,
.quick-action-card,
.stat-summary-card,
.barber-stat-card {
  padding: 18px;
}

.customer-upcoming-shell,
.upcoming-appointment-card,
.barber-focus-card,
.barber-status-card {
  border-radius: 24px;
}

.customer-focus-list,
.barber-focus-list {
  gap: 14px;
}

.booking-page-hero,
.chat-page-hero {
  gap: 10px;
  margin-bottom: 22px;
}

.booking-page-grid,
.booking-sidebar-stack {
  gap: 22px;
}

.booking-primary-panel,
.booking-guide-panel,
.booking-payment-panel,
.booking-trust-panel {
  padding: 24px;
  border-radius: 28px;
}

.booking-summary-card,
.booking-service-summary {
  padding: 16px 18px;
  border-radius: 22px;
}

.booking-service-option {
  padding: 17px 16px;
  border-radius: 22px;
  background: rgba(255, 252, 246, 0.94);
}

.booking-item {
  padding: 18px;
  border-radius: 22px;
}

.payment-status-card-page {
  gap: 20px;
}

.payment-status-card {
  gap: 18px;
  padding: 20px;
  border-radius: 28px;
  background: rgba(255, 250, 242, 0.96);
}

.payment-status-head {
  gap: 14px;
}

.payment-summary-grid,
.payment-next-step {
  border-radius: 22px;
}

.payment-action-row {
  gap: 12px;
}

.chat-page-card {
  padding: 24px;
  border-radius: 28px;
  gap: 18px;
}

.chat-thread {
  min-height: 420px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(245, 238, 227, 0.96));
}

.chat-bubble {
  border-radius: 24px;
  padding: 13px 15px;
}

.chat-composer {
  padding: 18px;
  border-radius: 24px;
}

.chat-composer-controls {
  gap: 12px;
}

.chat-composer-input,
.chat-send-btn {
  min-height: 50px;
}

.footer-summary {
  max-width: 620px;
  font-size: 0.98rem;
}

.footer-nav-links {
  gap: 8px;
}

@media (max-width: 760px) {
  body.menu-open {
    overflow: hidden;
  }

  .container,
  .dashboard-container {
    width: min(100%, calc(100vw - 24px));
  }

  .site-header {
    background: rgba(255, 250, 242, 0.96);
  }

  .nav-shell {
    min-height: 70px;
    gap: 12px;
  }

  .brand {
    font-size: 1.08rem;
  }

  .brand-badge {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(28, 77, 58, 0.12);
    background: rgba(255, 251, 246, 0.96);
    color: var(--text);
    font-weight: 600;
    box-shadow: 0 10px 22px rgba(24, 57, 43, 0.06);
  }

  .nav-main {
    position: fixed;
    top: 80px;
    left: 12px;
    right: 12px;
    display: none;
    gap: 14px;
    max-height: calc(100dvh - 96px);
    overflow-y: auto;
    padding: 16px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(14, 18, 22, 0.98), rgba(18, 22, 27, 0.98));
    box-shadow: 0 26px 50px rgba(8, 10, 12, 0.34);
    align-items: stretch;
  }

  .nav-main.is-open {
    display: grid;
  }

  .nav-links {
    display: grid;
    width: 100%;
    gap: 8px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .nav-links a {
    width: 100%;
    min-height: 46px;
    justify-content: flex-start;
    padding: 0 16px;
    color: rgba(230, 237, 233, 0.76);
    background: transparent;
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: #eef5f1;
    background: rgba(27, 55, 44, 0.72);
  }

  .auth-actions {
    display: grid;
    width: 100%;
    gap: 12px;
    justify-content: stretch;
  }

  .auth-actions .btn,
  .auth-actions .auth-admin-link,
  .nav-main .btn-icon,
  .nav-main .notification-bell {
    width: 100%;
    min-height: 48px;
    justify-content: flex-start;
    border-radius: 999px;
    padding: 0 18px;
    text-align: left;
  }

  .nav-main .btn-ghost,
  .nav-main .btn-icon,
  .nav-main .notification-bell {
    background: #e6e0db;
    color: #173a2c;
    border: 0;
    box-shadow: none;
  }

  .nav-main .btn-primary {
    background: #2e6a4f;
    color: #fffaf2;
    box-shadow: none;
  }

  .nav-main .notification-shell {
    width: 100%;
  }

  .nav-main .notification-bell {
    position: relative;
    display: inline-flex;
    gap: 10px;
  }

  .nav-main .notification-bell::after {
    content: "Notifications";
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1;
  }

  .nav-main .btn-icon::after {
    content: "Settings";
    margin-left: 10px;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1;
  }

  .auth-admin-link {
    min-height: auto;
    padding: 4px 4px 0;
    color: rgba(230, 237, 233, 0.72);
    font-size: 0.96rem;
  }

  .dashboard-subnav {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .dashboard-subnav-link {
    white-space: nowrap;
  }

  .customer-overview-panel,
  .barber-overview-panel,
  .panel,
  .booking-primary-panel,
  .booking-guide-panel,
  .booking-payment-panel,
  .booking-trust-panel,
  .chat-page-card,
  .payment-status-card {
    padding: 18px;
    border-radius: 24px;
  }

  .customer-overview-grid,
  .barber-overview-grid,
  .booking-page-grid,
  .booking-sidebar-stack {
    gap: 18px;
  }

  .customer-overview-copy h2,
  .barber-overview-copy h2 {
    font-size: clamp(1.78rem, 8vw, 2.3rem);
    line-height: 1.02;
  }

  .customer-overview-copy p,
  .barber-overview-copy p,
  .booking-panel-subtitle,
  .payment-helper,
  .chat-quick-hint {
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .customer-overview-highlights,
  .barber-overview-highlights,
  .customer-stat-grid,
  .barber-stat-grid,
  .quick-actions-grid {
    gap: 12px;
  }

  .customer-highlight-card,
  .barber-highlight-card,
  .customer-focus-card,
  .barber-focus-card,
  .barber-status-card,
  .barber-stat-card,
  .stat-summary-card,
  .quick-action-card,
  .upcoming-appointment-card,
  .booking-item,
  .booking-summary-card,
  .booking-service-summary,
  .booking-service-option,
  .booking-trust-item,
  .chat-thread,
  .chat-composer {
    border-radius: 22px;
  }

  .chat-thread {
    min-height: 340px;
    padding: 16px;
  }

  .chat-composer {
    padding: 16px;
  }

  .footer-summary {
    font-size: 0.92rem;
    line-height: 1.5;
  }
}

@media (max-width: 520px) {
  .customer-overview-highlights,
  .barber-overview-highlights,
  .customer-stat-grid,
  .barber-stat-grid,
  .quick-actions-grid,
  .payment-action-row {
    grid-template-columns: 1fr;
  }

  .chat-head-actions,
  .payment-action-row,
  .booking-action-stack {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .chat-head-actions .btn,
  .payment-action-row .btn,
  .booking-action-stack .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Shared sidebar shell: July 2026 */
body.sidebar-ready {
  --sidebar-width: 300px;
  --sidebar-collapsed-width: 88px;
  --sidebar-offset: var(--sidebar-width);
}

body.sidebar-ready main,
body.sidebar-ready .site-footer {
  margin-left: var(--sidebar-offset);
  transition: margin-left 220ms ease;
}

body.sidebar-ready.sidebar-collapsed {
  --sidebar-offset: var(--sidebar-collapsed-width);
}

body.sidebar-ready .site-header {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-offset);
  height: 100dvh;
  padding: 18px 14px;
  background: linear-gradient(180deg, rgba(13, 23, 19, 0.98), rgba(18, 31, 25, 0.98));
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 0;
  box-shadow: 24px 0 60px rgba(6, 10, 8, 0.18);
  backdrop-filter: blur(18px);
  z-index: 60;
  transition: width 220ms ease;
}

body.sidebar-ready .nav-shell {
  width: 100%;
  max-width: none;
  min-height: 100%;
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: stretch;
  gap: 18px;
}

body.sidebar-ready .brand {
  min-width: 0;
  color: #f4efe6;
  font-weight: 600;
}

body.sidebar-ready .brand span:last-child {
  white-space: nowrap;
}

body.sidebar-ready .nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 46px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #f6f1e8;
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

body.sidebar-ready .nav-toggle-label {
  display: inline-block;
  max-width: 7ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1;
}

body.sidebar-ready .nav-toggle:hover,
body.sidebar-ready .nav-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  outline: none;
}

body.sidebar-ready .nav-toggle-icon,
body.sidebar-ready .sidebar-link-icon,
body.sidebar-ready .sidebar-link-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

body.sidebar-ready .nav-toggle-icon svg,
body.sidebar-ready .sidebar-link-icon svg,
body.sidebar-ready .sidebar-link-chevron svg {
  width: 18px;
  height: 18px;
}

body.sidebar-ready .nav-main {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 0;
  gap: 16px;
  padding: 12px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.sidebar-ready .sidebar-scroll {
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(244, 239, 230, 0.22) transparent;
}

body.sidebar-ready .sidebar-scroll::-webkit-scrollbar {
  width: 6px;
}

body.sidebar-ready .sidebar-scroll::-webkit-scrollbar-thumb {
  background: rgba(244, 239, 230, 0.22);
  border-radius: 999px;
}

body.sidebar-ready .sidebar-nav-list {
  display: grid;
  gap: 8px;
}

body.sidebar-ready .sidebar-link,
body.sidebar-ready .sidebar-sublink,
body.sidebar-ready .sidebar-link-parent {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border-radius: 18px;
  border: 0;
  background: transparent;
  color: rgba(241, 236, 227, 0.72);
  font: inherit;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

body.sidebar-ready .sidebar-link:hover,
body.sidebar-ready .sidebar-link:focus-visible,
body.sidebar-ready .sidebar-sublink:hover,
body.sidebar-ready .sidebar-sublink:focus-visible,
body.sidebar-ready .sidebar-link-parent:hover,
body.sidebar-ready .sidebar-link-parent:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #fffaf2;
  outline: none;
}

body.sidebar-ready .sidebar-link.active,
body.sidebar-ready .sidebar-link-parent.active,
body.sidebar-ready .sidebar-sublink.active {
  background: linear-gradient(180deg, rgba(40, 91, 67, 0.88), rgba(31, 72, 54, 0.92));
  color: #fffaf2;
  box-shadow: 0 18px 26px rgba(9, 18, 14, 0.22);
}

body.sidebar-ready .sidebar-link-label {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
}

body.sidebar-ready .sidebar-link-chevron {
  color: rgba(241, 236, 227, 0.68);
  transition: transform 180ms ease, color 180ms ease;
}

body.sidebar-ready .sidebar-group.is-open .sidebar-link-chevron {
  transform: rotate(180deg);
  color: #fffaf2;
}

body.sidebar-ready .sidebar-submenu {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 0 0 0 14px;
}

body.sidebar-ready .sidebar-sublink {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

body.sidebar-ready .sidebar-footer-actions {
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.sidebar-ready .sidebar-auth-actions {
  display: grid;
  gap: 10px;
  justify-items: stretch;
}

body.sidebar-ready .sidebar-auth-actions .btn,
body.sidebar-ready .sidebar-auth-actions .auth-admin-link,
body.sidebar-ready .sidebar-auth-actions .notification-bell {
  width: 100%;
  min-height: 48px;
  justify-content: flex-start;
  border-radius: 18px;
}

body.sidebar-ready .sidebar-auth-actions .btn-ghost,
body.sidebar-ready .sidebar-auth-actions .btn-icon,
body.sidebar-ready .sidebar-auth-actions .notification-bell,
body.sidebar-ready .sidebar-auth-actions .auth-admin-link {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(245, 240, 233, 0.86);
}

body.sidebar-ready .sidebar-auth-actions .btn-primary {
  border: 0;
  background: linear-gradient(180deg, #3a7d5c, #2b6147);
  color: #fffaf2;
}

body.sidebar-ready .sidebar-auth-actions .btn-icon {
  justify-content: center;
}

body.sidebar-ready .sidebar-auth-actions .notification-shell {
  width: 100%;
}

body.sidebar-ready .sidebar-auth-actions .notification-popover {
  left: calc(100% + 16px);
  right: auto;
  top: auto;
  bottom: 0;
  width: min(360px, 84vw);
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(20, 31, 25, 0.98);
  color: #f5f0e9;
}

body.sidebar-ready .sidebar-auth-actions .notification-popover a,
body.sidebar-ready .sidebar-auth-actions .notification-popover strong,
body.sidebar-ready .sidebar-auth-actions .notification-popover span,
body.sidebar-ready .sidebar-auth-actions .notification-popover p {
  color: inherit;
}

body.sidebar-ready.sidebar-collapsed .site-header {
  padding-inline: 10px;
}

body.sidebar-ready.sidebar-collapsed .brand span:last-child,
body.sidebar-ready.sidebar-collapsed .nav-toggle-label,
body.sidebar-ready.sidebar-collapsed .sidebar-link-label,
body.sidebar-ready.sidebar-collapsed .sidebar-link-chevron,
body.sidebar-ready.sidebar-collapsed .sidebar-auth-actions .auth-admin-link,
body.sidebar-ready.sidebar-collapsed .sidebar-submenu {
  display: none;
}

body.sidebar-ready.sidebar-collapsed .nav-shell {
  gap: 14px;
}

body.sidebar-ready.sidebar-collapsed .brand,
body.sidebar-ready.sidebar-collapsed .nav-toggle,
body.sidebar-ready.sidebar-collapsed .sidebar-link,
body.sidebar-ready.sidebar-collapsed .sidebar-link-parent,
body.sidebar-ready.sidebar-collapsed .sidebar-auth-actions .btn,
body.sidebar-ready.sidebar-collapsed .sidebar-auth-actions .notification-bell {
  justify-content: center;
  padding-inline: 0;
}

body.sidebar-ready.sidebar-collapsed .sidebar-link,
body.sidebar-ready.sidebar-collapsed .sidebar-link-parent {
  min-height: 50px;
  border-radius: 16px;
}

body.sidebar-ready.sidebar-collapsed .sidebar-auth-actions .btn,
body.sidebar-ready.sidebar-collapsed .sidebar-auth-actions .notification-bell {
  min-height: 46px;
}

body.sidebar-ready.sidebar-collapsed .sidebar-footer-actions {
  display: none;
}

body.sidebar-ready.sidebar-collapsed .sidebar-link[data-tooltip]:hover::after,
body.sidebar-ready.sidebar-collapsed .sidebar-link-parent[data-tooltip]:hover::after,
body.sidebar-ready.sidebar-collapsed .sidebar-link[data-tooltip]:focus-visible::after,
body.sidebar-ready.sidebar-collapsed .sidebar-link-parent[data-tooltip]:focus-visible::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(18, 28, 23, 0.96);
  color: #fffaf2;
  box-shadow: 0 16px 34px rgba(7, 11, 9, 0.28);
  z-index: 80;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  border: 0;
  background: rgba(8, 14, 11, 0.58);
  backdrop-filter: blur(3px);
  z-index: 54;
}

.sidebar-flyout {
  position: fixed;
  width: 240px;
  z-index: 90;
}

.sidebar-flyout[hidden] {
  display: none;
}

.sidebar-flyout-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 30, 24, 0.98);
  color: #fffaf2;
  box-shadow: 0 24px 50px rgba(6, 12, 9, 0.28);
}

.sidebar-flyout-title {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.7);
}

.sidebar-flyout-links {
  display: grid;
  gap: 8px;
}

.sidebar-flyout-links .sidebar-sublink {
  color: #f8f4eb;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 980px) {
  body.sidebar-ready main,
  body.sidebar-ready .site-footer {
    margin-left: 0;
  }

  body.sidebar-ready .site-header {
    position: sticky;
    inset: 0 auto auto 0;
    width: 100%;
    height: auto;
    padding: 10px 0;
    background: rgba(255, 250, 242, 0.96);
    border-right: 0;
    border-bottom: 1px solid rgba(216, 207, 192, 0.92);
    box-shadow: 0 10px 30px rgba(64, 51, 33, 0.08);
  }

  body.sidebar-ready .nav-shell {
    width: min(1160px, 92vw);
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }

  body.sidebar-ready .brand {
    color: var(--text);
  }

  body.sidebar-ready .nav-toggle {
    min-width: 58px;
    min-height: 48px;
    padding: 0 14px;
    border-color: rgba(28, 77, 58, 0.12);
    background: rgba(255, 251, 246, 0.96);
    color: var(--text);
    flex: 0 0 auto;
  }

  body.sidebar-ready .nav-main {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(92vw, 340px);
    height: 100dvh;
    padding: 20px 16px 18px;
    border-radius: 0 28px 28px 0;
    transform: translateX(-102%);
    transition: transform 220ms ease;
    z-index: 58;
    background: linear-gradient(180deg, rgba(13, 23, 19, 0.98), rgba(18, 31, 25, 0.98));
  }

  body.sidebar-ready .nav-main.is-open {
    transform: translateX(0);
  }

  body.sidebar-ready .sidebar-submenu {
    display: grid;
  }

  body.sidebar-ready .sidebar-link,
  body.sidebar-ready .sidebar-link-parent,
  body.sidebar-ready .sidebar-sublink {
    min-height: 50px;
  }

  body.sidebar-ready .sidebar-footer-actions {
    padding-bottom: 8px;
  }

  body.sidebar-ready .sidebar-auth-actions .notification-popover {
    left: 0;
    right: auto;
    bottom: calc(100% + 12px);
    width: min(320px, calc(92vw - 32px));
  }

  body.sidebar-ready.sidebar-collapsed {
    --sidebar-offset: 0px;
  }

  body.sidebar-ready.sidebar-collapsed .brand span:last-child,
  body.sidebar-ready.sidebar-collapsed .nav-toggle-label,
  body.sidebar-ready.sidebar-collapsed .sidebar-link-label,
  body.sidebar-ready.sidebar-collapsed .sidebar-link-chevron {
    display: initial;
  }
}

@media (max-width: 420px) {
  body.sidebar-ready .nav-shell {
    gap: 10px;
  }

  body.sidebar-ready .nav-toggle {
    width: 46px;
    min-width: 46px;
    min-height: 46px;
    padding: 0;
    gap: 0;
  }

  body.sidebar-ready .nav-toggle-label {
    display: none;
  }
}

