:root {
  --black: #050505;
  --ink: #111111;
  --graphite: #1c1c1c;
  --deep-graphite: #151515;
  --charcoal: #2d2d2d;
  --ash: #a8a8a2;
  --fog: #ecece7;
  --smoke: #7b7b7b;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --dark-surface: rgba(255, 255, 255, 0.055);
  --paper: #f4f4f1;
  --white: #ffffff;
  --silver: #d9d9d4;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --soft-shadow: 0 16px 44px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, #050505 0%, #111 34%, #080808 100%);
  background-size: 72px 72px, auto;
  color: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.modal-open {
  overflow: hidden;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 54px);
  background: rgba(11, 11, 11, 0.74);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.site-header[data-elevated="true"] {
  background: rgba(9, 9, 9, 0.94);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}

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

.brand-logo {
  width: 44px;
  height: 44px;
}

.brand-logo {
  position: relative;
  display: inline-block;
  border-radius: 50%;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: grayscale(1) contrast(1.1);
}

.footer img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 50%;
  filter: grayscale(1) contrast(1.1);
  flex: 0 0 44px;
}

.brand-logo::before,
.brand-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-image: url("assets/monarca-logo.jpeg");
  background-size: var(--barber-size, cover);
  background-position: center;
  filter: grayscale(1) contrast(2.25) brightness(1.25);
  mix-blend-mode: difference;
  opacity: 0;
  pointer-events: none;
}

.brand-logo::before {
  animation: logoGlitchA 2.6s steps(1, end) infinite;
}

.brand-logo::after {
  animation: logoGlitchB 2.6s steps(1, end) infinite;
}

.brand:hover .brand-logo::before,
.brand:hover .brand-logo::after {
  animation-duration: 0.8s;
}

@keyframes logoGlitchA {
  0%,
  61%,
  100% {
    opacity: 0;
    clip-path: inset(0 0 0 0);
    transform: translate(0, 0);
  }
  62% {
    opacity: 0.72;
    clip-path: inset(16% 0 78% 0);
    transform: translate(7px, -1px);
  }
  63% {
    opacity: 0;
  }
  68% {
    opacity: 0.78;
    clip-path: inset(39% 0 52% 0);
    transform: translate(-8px, 1px);
  }
  69% {
    opacity: 0;
  }
  84% {
    opacity: 0.7;
    clip-path: inset(67% 0 25% 0);
    transform: translate(8px, 1px);
  }
  85% {
    opacity: 0;
  }
  91% {
    opacity: 0.52;
    clip-path: inset(28% 0 64% 0);
    transform: translate(-6px, -1px);
  }
  92% {
    opacity: 0;
  }
}

@keyframes logoGlitchB {
  0%,
  48%,
  100% {
    opacity: 0;
    clip-path: inset(0 0 0 0);
    transform: translate(0, 0);
  }
  49% {
    opacity: 0.58;
    clip-path: inset(5% 0 88% 0);
    transform: translate(-7px, 0);
  }
  50% {
    opacity: 0;
  }
  72% {
    opacity: 0.72;
    clip-path: inset(55% 0 38% 0);
    transform: translate(9px, -1px);
  }
  73% {
    opacity: 0;
  }
  81% {
    opacity: 0.66;
    clip-path: inset(82% 0 10% 0);
    transform: translate(-8px, 1px);
  }
  82% {
    opacity: 0;
  }
  95% {
    opacity: 0.52;
    clip-path: inset(34% 0 59% 0);
    transform: translate(7px, 0);
  }
  96% {
    opacity: 0;
  }
}

.brand span {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0;
  white-space: nowrap;
}

.desktop-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 8px;
}

.desktop-nav a,
.text-link {
  color: rgba(244, 244, 241, 0.72);
  font-size: 0.9rem;
  padding: 10px 12px;
  transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.text-link:hover,
.barber-access:hover {
  color: var(--white);
}

.button {
  border: 0;
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}

.button-light {
  background: var(--paper);
  color: var(--black);
}

.button-dark {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.button-ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--line);
}

.barber-access {
  border: 0;
  background: transparent;
  color: rgba(244, 244, 241, 0.54);
  min-height: 38px;
  padding: 0;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--paper);
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  gap: 5px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--paper);
}

.mobile-menu {
  position: fixed;
  z-index: 19;
  top: 78px;
  left: 12px;
  right: 12px;
  padding: 18px;
  background: rgba(17, 17, 17, 0.98);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.mobile-menu a,
.mobile-menu .button {
  width: 100%;
  margin-top: 8px;
}

.mobile-menu .barber-access {
  display: block;
  margin-top: 14px;
  text-align: left;
}

.mobile-menu a {
  display: block;
  padding: 12px 4px;
  color: rgba(244, 244, 241, 0.78);
}

.floating-booking {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 18;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(244, 244, 241, 0.96);
  color: #0f0f0f;
  font-weight: 900;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.floating-booking:hover {
  transform: translateY(-2px);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  padding: 118px clamp(18px, 5vw, 72px) 44px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(125deg, rgba(5, 5, 5, 0.98), rgba(24, 24, 24, 0.9) 48%, rgba(8, 8, 8, 0.98)),
    linear-gradient(135deg, #050505, #2a2a2a 50%, #0b0b0b);
  background-size: 86px 86px, 86px 86px, auto, auto;
  overflow: hidden;
}

.hero > *:not(.premium-sparks) {
  position: relative;
  z-index: 1;
}

.premium-sparks {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.premium-sparks span {
  position: absolute;
  width: 3.5px;
  height: 3.5px;
  border-radius: 999px;
  background: rgba(244, 244, 241, 0.94);
  box-shadow:
    0 0 16px rgba(244, 244, 241, 0.86),
    0 0 42px rgba(244, 244, 241, 0.34);
  opacity: 0;
  animation: sparkDrift 8.5s ease-in-out infinite;
}

.premium-sparks span:nth-child(1) {
  left: 14%;
  top: 28%;
  animation-delay: 0s;
}

.premium-sparks span:nth-child(2) {
  left: 36%;
  top: 18%;
  animation-delay: 1.8s;
}

.premium-sparks span:nth-child(3) {
  left: 62%;
  top: 34%;
  animation-delay: 3.2s;
  width: 4px;
  height: 4px;
}

.premium-sparks span:nth-child(4) {
  left: 78%;
  top: 16%;
  animation-delay: 4.8s;
}

.premium-sparks span:nth-child(5) {
  left: 88%;
  top: 58%;
  animation-delay: 6.2s;
}

.premium-sparks span:nth-child(6) {
  left: 24%;
  top: 62%;
  animation-delay: 2.4s;
}

.premium-sparks span:nth-child(7) {
  left: 48%;
  top: 48%;
  animation-delay: 5.4s;
}

.premium-sparks span:nth-child(8) {
  left: 70%;
  top: 72%;
  animation-delay: 7.1s;
  width: 4px;
  height: 4px;
}

.premium-sparks span:nth-child(9) {
  left: 92%;
  top: 30%;
  animation-delay: 1.1s;
}

.premium-sparks span:nth-child(10) {
  left: 18%;
  top: 86%;
  animation-delay: 0.8s;
  animation-duration: 10s;
}

.premium-sparks span:nth-child(11) {
  left: 52%;
  top: 92%;
  animation-delay: 4.2s;
  animation-duration: 11s;
}

.premium-sparks span:nth-child(12) {
  left: 82%;
  top: 84%;
  animation-delay: 6.8s;
  animation-duration: 10.5s;
}

.premium-sparks span:nth-child(13) {
  left: 8%;
  top: 74%;
  animation-delay: 3.7s;
  animation-duration: 9.8s;
}

.premium-sparks span:nth-child(14) {
  left: 32%;
  top: 76%;
  animation-delay: 6.1s;
}

.premium-sparks span:nth-child(15) {
  left: 58%;
  top: 66%;
  animation-delay: 2.2s;
  width: 4px;
  height: 4px;
}

.premium-sparks span:nth-child(16) {
  left: 74%;
  top: 52%;
  animation-delay: 8.1s;
}

.premium-sparks span:nth-child(17) {
  left: 42%;
  top: 82%;
  animation-delay: 1.4s;
  animation-duration: 10.8s;
}

.premium-sparks span:nth-child(18) {
  left: 94%;
  top: 76%;
  animation-delay: 5.2s;
  width: 4px;
  height: 4px;
}

.premium-sparks span:nth-child(19) {
  left: 12%;
  top: 48%;
  animation-delay: 7.6s;
}

.premium-sparks span:nth-child(20) {
  left: 64%;
  top: 88%;
  animation-delay: 3s;
  animation-duration: 10.2s;
}

.premium-sparks span:nth-child(21) {
  left: 86%;
  top: 42%;
  animation-delay: 0.4s;
}

@keyframes sparkDrift {
  0% {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.7);
  }
  22% {
    opacity: 0.95;
  }
  52% {
    opacity: 0.4;
    transform: translate3d(22px, -34px, 0) scale(1.15);
  }
  100% {
    opacity: 0;
    transform: translate3d(48px, -72px, 0) scale(0.8);
  }
}

.eyebrow {
  color: var(--silver);
  margin: 0 0 12px;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 800;
}

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

h1 {
  font-size: clamp(3.4rem, 9vw, 8.6rem);
  line-height: 0.9;
  margin-bottom: 22px;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2rem, 4.6vw, 4.6rem);
  line-height: 1;
  margin-bottom: 18px;
}

h3 {
  font-size: 1rem;
}

.hero-text {
  color: rgba(244, 244, 241, 0.76);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.7;
  max-width: 680px;
}

.hero-actions,
.hero-metrics {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 30px;
}

.hero-metrics {
  margin-top: 34px;
  color: rgba(244, 244, 241, 0.68);
}

.hero-metrics span {
  border-left: 1px solid var(--line);
  padding-left: 16px;
}

.hero-metrics strong {
  display: block;
  color: var(--paper);
  font-size: 1.6rem;
}

.hero-visual {
  position: relative;
  min-height: 540px;
  display: grid;
  place-items: center;
}

.logo-frame {
  width: min(100%, 520px);
  aspect-ratio: 0.88;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.62)),
    url("assets/monarca-logo.jpeg") center / min(62%, 320px) no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.02)),
    linear-gradient(135deg, #202020, #0b0b0b 65%);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 0;
  animation: logoBreath 5.2s ease-in-out infinite;
}

.hero-loop-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  grid-area: 1 / 1;
  filter: grayscale(0.15) contrast(1.08) brightness(0.82);
  opacity: 0;
  transition: opacity 0.35s ease;
  background: #111;
}

.logo-frame.video-playing .hero-loop-video {
  opacity: 1;
}

.logo-frame::after {
  content: "";
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 50% 46%, rgba(244, 244, 241, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.36));
  pointer-events: none;
}

.hero-logo-overlay {
  width: min(62%, 330px);
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
  filter: grayscale(1) invert(1) contrast(1.12);
  mix-blend-mode: screen;
  opacity: 0.82;
  animation: logoImageBreath 9s ease-in-out infinite;
}

.logo-frame.video-playing .hero-logo-overlay {
  animation: logoImageBreath 9s ease-in-out infinite;
}

@keyframes logoBreath {
  0%,
  100% {
    transform: scale(1);
    box-shadow: var(--shadow);
  }
  50% {
    transform: scale(1.032);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.52), 0 0 52px rgba(244, 244, 241, 0.13);
  }
}

@keyframes logoImageBreath {
  0%, 16%, 100% {
    opacity: 0;
    transform: scale(0.96);
  }
  28%, 54% {
    opacity: 0.92;
    transform: scale(1);
  }
  66% {
    opacity: 0;
    transform: scale(1.035);
  }
}

.next-slot {
  position: absolute;
  right: 0;
  bottom: 44px;
  width: min(280px, 70%);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(244, 244, 241, 0.96);
  color: var(--black);
  box-shadow: var(--shadow);
}

.next-slot span {
  display: block;
  color: #555;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-pad {
  padding: clamp(70px, 9vw, 124px) clamp(18px, 5vw, 72px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 36px;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.035), transparent 44%),
    var(--fog);
  color: var(--black);
}

.intro .eyebrow,
.location .eyebrow {
  color: #5f5f5f;
}

.intro p {
  color: #474747;
  line-height: 1.8;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading p {
  max-width: 620px;
  color: rgba(244, 244, 241, 0.66);
  line-height: 1.7;
}

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

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

.service-card {
  min-height: 230px;
  border: 1px solid rgba(255, 255, 255, 0.145);
  border-radius: 8px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.035)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 52%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.barber-card {
  position: relative;
  min-height: 360px;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(0deg, #030303 0%, rgba(0, 0, 0, 0.94) 18%, rgba(0, 0, 0, 0.44) 36%, rgba(255, 255, 255, 0.08) 100%),
    var(--barber-photo, linear-gradient(145deg, #242424, #0b0b0b));
  background-size: cover;
  background-position: var(--barber-position, center 24%);
  display: flex;
  align-items: end;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.105);
  transition: transform 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
  cursor: pointer;
}

.barber-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #020202 0%, rgba(0, 0, 0, 0.9) 20%, rgba(0, 0, 0, 0.26) 42%, rgba(255, 255, 255, 0.1) 100%);
}

.barber-card-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 22px;
}

.service-card {
  cursor: pointer;
}

.service-card:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

.service-card:hover,
.barber-card:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), var(--soft-shadow);
}

.service-card:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.045)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 52%);
  box-shadow: var(--soft-shadow), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.service-card p,
.barber-card p {
  color: rgba(244, 244, 241, 0.62);
  line-height: 1.6;
}

.profile-hint {
  justify-self: start;
  color: rgba(244, 244, 241, 0.76);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--silver);
  font-weight: 800;
}

.barbers {
  background:
    linear-gradient(180deg, #111, #0a0a0a),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
}

.avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--white), #c9c9c2);
  color: var(--black);
  font-weight: 900;
  margin-bottom: 18px;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.08);
}

.gallery {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent),
    var(--fog);
  color: var(--black);
}

.gallery .section-heading p {
  color: #555;
}

.gallery .text-link {
  color: #111;
}

.reels-shell {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 12px;
}

.reels-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 300px);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px;
}

.reels-track::-webkit-scrollbar {
  display: none;
}

.reel-card {
  scroll-snap-align: start;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.26)),
    #e5e5df;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.reel-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 0;
  padding: 0;
  background: #111;
  border: 0;
  overflow: hidden;
}

.reel-frame::after {
  content: "Ver reel";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(5, 5, 5, 0.74);
  color: var(--paper);
  font-size: 0.84rem;
  font-weight: 900;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.reel-card:hover .reel-frame::after {
  opacity: 1;
  transform: translateY(0);
}

.reel-card:hover .reel-frame {
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.reel-video {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  display: block;
  object-fit: cover;
  background: #111;
  filter: grayscale(0.08) contrast(1.04);
  transform: scale(1);
  transition: filter 0.25s ease, transform 0.25s ease;
}

.reel-card:hover .reel-video {
  filter: grayscale(0) contrast(1.08);
  transform: scale(1.015);
}

.reel-preview {
  height: 100%;
  border-radius: 6px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 18px;
  color: var(--paper);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.78)),
    repeating-linear-gradient(135deg, #141414 0 18px, #333 18px 19px, #202020 19px 42px);
}

.reel-preview span {
  width: fit-content;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: rgba(244, 244, 241, 0.72);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.reel-preview strong {
  font-size: 1.15rem;
}

.reel-card a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0;
  color: var(--black);
  font-weight: 900;
}

.reel-card a:hover {
  background: rgba(0, 0, 0, 0.06);
}

.carousel-button {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 8px;
  background: var(--black);
  color: var(--paper);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.carousel-button:hover {
  transform: translateY(-1px);
  background: var(--charcoal);
}

.location {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 1fr);
  gap: 28px;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.045), transparent 42%),
    var(--fog);
  color: var(--black);
  padding-top: 0;
}

.location p {
  color: #4a4a4a;
  line-height: 1.8;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.contact-list > span,
.instagram-link {
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  font-weight: 700;
}

.instagram-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--black);
}

.instagram-link svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}

.instagram-link:hover span {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.location-button {
  margin-top: 24px;
}

.map-card {
  position: relative;
  min-height: 420px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #d7d7d0;
  color: var(--black);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.16);
}

.map-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 0, 0, 0.28);
}

.map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  filter: grayscale(1) contrast(1.04);
}

.map-overlay {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(244, 244, 241, 0.94);
  color: var(--black);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.map-overlay span {
  color: #555;
  font-size: 0.86rem;
  font-weight: 800;
}

.management {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(180deg, #101010, #080808);
  background-size: 70px 70px, auto;
}

.dashboard {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) minmax(280px, 0.6fr);
  gap: 14px;
}

.dashboard-panel,
.schedule-board,
.booking-list,
.messages-panel,
.admin-panel {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(17, 17, 17, 0.72);
  padding: 18px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
}

.messages-panel {
  grid-column: 2 / 4;
}

.admin-panel {
  grid-column: span 1;
}

.dashboard.admin-layout {
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr);
}

.dashboard.admin-layout .admin-panel {
  order: 1;
}

.dashboard.admin-layout #manualServicePanel {
  grid-column: 1;
  grid-row: 1;
}

.dashboard.admin-layout #weeklySummaryPanel {
  grid-column: 2;
  grid-row: 1;
}

.dashboard.admin-layout .booking-list {
  order: 2;
  grid-column: 1 / -1;
}

.dashboard.admin-layout .agenda-panel {
  order: 3;
  grid-column: 1 / -1;
}

.dashboard.admin-layout .schedule-board {
  order: 4;
  grid-column: 1 / -1;
}

.dashboard.admin-layout .controls-panel {
  order: 5;
  grid-column: 1 / -1;
}

.dashboard.admin-layout .messages-panel {
  order: 6;
  grid-column: 1 / -1;
}

.dashboard-panel {
  display: grid;
  align-content: start;
  gap: 12px;
}

.panel-divider {
  height: 1px;
  background: var(--line);
  margin: 6px 0;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  font-weight: 800;
}

label {
  color: var(--silver);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.075);
  color: var(--paper);
  min-height: 44px;
  padding: 0 12px;
  outline: none;
}

textarea {
  min-height: 96px;
  padding-top: 12px;
  resize: vertical;
}

select option {
  background: var(--ink);
}

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

.board-header span {
  color: rgba(244, 244, 241, 0.56);
  font-size: 0.85rem;
}

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

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

.slot {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--paper);
  cursor: pointer;
  font-weight: 800;
}

.time-grid.compact .slot {
  min-height: 48px;
  padding: 0 10px;
  font-size: clamp(0.82rem, 1.05vw, 0.95rem);
  overflow: visible;
  white-space: nowrap;
}

.slot.available:hover,
.slot.active {
  background: var(--paper);
  color: var(--black);
}

.slot.blocked,
.slot.booked,
.slot.past {
  opacity: 0.42;
  cursor: not-allowed;
  text-decoration: line-through;
}

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

.booking-item,
.message-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.booking-item strong,
.booking-item span,
.message-item strong,
.message-item span {
  display: block;
}

.booking-item span,
.message-item span {
  color: rgba(244, 244, 241, 0.62);
  font-size: 0.86rem;
  margin-top: 5px;
}

.booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.payment-select {
  width: auto;
  min-width: 150px;
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.82rem;
}

.barber-access.danger {
  color: #f1b8b8;
  border-color: rgba(255, 120, 120, 0.28);
}

.manual-form,
.manual-service-list,
.weekly-summary {
  display: grid;
  gap: 10px;
}

.manual-service-list {
  margin-top: 6px;
}

.manual-service-item {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.manual-service-item span {
  color: rgba(244, 244, 241, 0.68);
  font-size: 0.84rem;
  font-weight: 800;
}

.manual-service-item button {
  justify-self: start;
}

.summary-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.summary-item span {
  color: rgba(244, 244, 241, 0.62);
  font-size: 0.86rem;
}

.summary-item b {
  grid-row: 1 / 3;
  grid-column: 2;
}

.summary-item small {
  grid-column: 1 / -1;
  color: rgba(244, 244, 241, 0.58);
  line-height: 1.55;
}

.barber-messages {
  display: grid;
  gap: 10px;
}

.message-text {
  margin: 10px 0 0;
  color: rgba(244, 244, 241, 0.78);
  line-height: 1.55;
}

.vacation-list {
  display: grid;
  gap: 8px;
}

.vacation-item {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.vacation-item span {
  color: rgba(244, 244, 241, 0.68);
  font-size: 0.84rem;
  font-weight: 700;
}

.vacation-item button {
  justify-self: start;
}

.footer {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  padding: 26px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.footer > div:not(.footer-actions) {
  display: grid;
  gap: 4px;
  flex: 1;
}

.footer span {
  color: rgba(244, 244, 241, 0.58);
}

.footer-credit {
  width: fit-content;
  color: rgba(244, 244, 241, 0.36);
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-credit:hover {
  color: rgba(244, 244, 241, 0.72);
}

.footer-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.booking-modal,
.login-modal,
.profile-modal {
  width: min(1180px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  color: var(--paper);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    #101010;
  box-shadow: var(--shadow);
}

.login-modal {
  width: min(460px, calc(100vw - 28px));
}

.profile-modal {
  width: min(520px, calc(100vw - 28px));
}

.booking-modal::backdrop,
.login-modal::backdrop,
.profile-modal::backdrop {
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(6px);
}

.booking-shell,
.login-shell,
.profile-shell {
  padding: clamp(16px, 3vw, 28px);
}

.login-shell {
  display: grid;
  gap: 14px;
}

.login-copy {
  color: rgba(244, 244, 241, 0.68);
  line-height: 1.6;
}

.profile-copy {
  color: rgba(244, 244, 241, 0.72);
  line-height: 1.7;
  margin: 18px 0;
}

.profile-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.profile-meta span {
  color: var(--paper);
  font-weight: 900;
}

.modal-head,
.booking-summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.close-modal {
  font-size: 1.6rem;
}

.booking-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 18px 0;
}

.booking-steps span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  color: rgba(244, 244, 241, 0.56);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.booking-steps .active {
  color: var(--black);
  background: var(--paper);
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(210px, 0.9fr) minmax(210px, 0.9fr) minmax(390px, 1.45fr) minmax(210px, 0.9fr);
  gap: 12px;
}

.booking-column {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 14px;
  min-height: 320px;
  background: rgba(255, 255, 255, 0.035);
}

.booking-column.needs-attention {
  border-color: rgba(244, 244, 241, 0.68);
  box-shadow: 0 0 0 1px rgba(244, 244, 241, 0.24);
}

.choice-list {
  display: grid;
  gap: 8px;
}

.choice {
  width: 100%;
  min-height: 54px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--paper);
  padding: 12px;
  cursor: pointer;
}

.choice strong,
.choice span {
  display: block;
}

.choice span {
  margin-top: 5px;
  color: rgba(244, 244, 241, 0.58);
  font-size: 0.84rem;
}

.choice.active {
  background: var(--paper);
  color: var(--black);
}

.choice.active span {
  color: #555;
}

.compact {
  margin-top: 10px;
}

.booking-summary {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.form-alert {
  margin-top: 14px;
  border: 1px solid rgba(244, 244, 241, 0.42);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(244, 244, 241, 0.92);
  color: var(--black);
  font-weight: 900;
}

.booking-summary span {
  display: block;
  color: rgba(244, 244, 241, 0.58);
  margin-bottom: 4px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.toast {
  position: fixed;
  z-index: 2147483647;
  right: 18px;
  top: 18px;
  bottom: auto;
  max-width: min(360px, calc(100vw - 36px));
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--paper);
  color: var(--black);
  box-shadow: var(--shadow);
  font-weight: 800;
  transform: translateY(24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

  .reels-shell {
    grid-template-columns: 1fr;
  }

  .carousel-button {
    display: none;
  }

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

  .messages-panel,
  .admin-panel {
    grid-column: 1 / -1;
  }

  .dashboard.admin-layout #manualServicePanel,
  .dashboard.admin-layout #weeklySummaryPanel,
  .dashboard.admin-layout .booking-list,
  .dashboard.admin-layout .schedule-board,
  .dashboard.admin-layout .dashboard-panel,
  .dashboard.admin-layout .messages-panel {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

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

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    justify-self: end;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual {
    min-height: 360px;
  }

  .intro,
  .location {
    grid-template-columns: 1fr;
  }

  .section-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

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

  .messages-panel {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .brand span {
    display: none;
  }

  .hero {
    padding-top: 104px;
  }

  .service-grid,
  .barber-grid,
  .booking-layout {
    grid-template-columns: 1fr;
  }

  .reels-track {
    grid-auto-columns: minmax(220px, 82vw);
  }

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

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

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

  .modal-head,
  .booking-summary,
  .footer,
  .footer-actions {
    align-items: stretch;
    flex-direction: column;
  }
}
