:root {
  --ink: #13201f;
  --muted: #5d6b68;
  --paper: #f7f3eb;
  --panel: #ffffff;
  --line: #d9dfdc;
  --teal: #087b78;
  --coral: #e46f4b;
  --gold: #d9aa43;
  --hero-parallax-x: 0px;
  --hero-parallax-y: 0px;
  --hero-scroll-progress: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
}

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

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(247, 243, 235, 0.72);
  border-bottom: 1px solid rgba(19, 32, 31, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brandMark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: white;
  background: var(--teal);
  border-radius: 50%;
}

.brandLogo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex: 0 0 auto;
}

.navLinks {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.navButton,
.primaryButton,
.secondaryButton,
.appointmentForm button,
.filterBar button,
.pagination button,
.adminForm button,
.adminSidebar button,
.rowActions button,
.ghostButton {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 220ms ease,
    background-color 220ms ease,
    color 220ms ease,
    border-color 220ms ease;
}

.navButton:hover,
.primaryButton:hover,
.secondaryButton:hover,
.appointmentForm button:hover,
.filterBar button:hover,
.pagination button:hover,
.adminForm button:hover,
.adminSidebar button:hover,
.rowActions button:hover,
.ghostButton:hover {
  transform: translateY(-2px);
}

.navButton,
.primaryButton,
.appointmentForm button {
  color: white;
  background: var(--teal);
}

.secondaryButton {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 360px);
  align-items: end;
  gap: 28px;
  padding: 120px clamp(18px, 5vw, 72px) 72px;
  overflow: hidden;
  perspective: 1200px;
}

.heroMedia {
  position: absolute;
  inset: 0;
  transform: translate3d(var(--hero-parallax-x), var(--hero-parallax-y), 0)
    scale(calc(1.04 + (var(--hero-scroll-progress) * 0.06)));
  background:
    linear-gradient(90deg, rgba(19, 32, 31, 0.78), rgba(19, 32, 31, 0.35) 48%, rgba(19, 32, 31, 0.05)),
    url("https://images.unsplash.com/photo-1574258495973-f010dfbb5371?auto=format&fit=crop&w=1800&q=80") center/cover;
  transition: transform 280ms ease-out;
  animation: heroBreath 16s ease-in-out infinite alternate;
}

.heroAura {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.14), transparent 32%),
    linear-gradient(90deg, transparent, rgba(255, 216, 137, 0.12), transparent);
  mix-blend-mode: screen;
  opacity: 0.85;
  transform: translate3d(
      calc(-8% + (var(--hero-scroll-progress) * 3%)),
      calc(var(--hero-scroll-progress) * 16px),
      0
    );
  animation: heroSweep 10s ease-in-out infinite;
}

.heroGrid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  pointer-events: none;
  opacity: 0.18;
}

.heroGrid span {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}


.heroContent {
  position: relative;
  width: min(760px, 100%);
  color: white;
  transform:
    translate3d(0, calc(var(--hero-scroll-progress) * 52px), 0)
    scale(calc(1 - (var(--hero-scroll-progress) * 0.06)));
  transition:
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 700ms ease;
  z-index: 1;
}

.heroHeadingBlock {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.heroKicker {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

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

.hero .eyebrow {
  color: #ffd889;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(3.5rem, 9vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.heroContent > p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.18rem;
  line-height: 1.6;
}

.heroLead {
  max-width: 640px;
}

.heroActions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

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

.heroStats div {
  display: grid;
  gap: 6px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  backdrop-filter: blur(14px);
}

.heroStats strong {
  font-size: 1.5rem;
  line-height: 1;
}

.heroStats span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  line-height: 1.45;
}

.heroPanel {
  position: relative;
  display: grid;
  gap: 14px;
  align-self: center;
  padding: 18px;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
  z-index: 1;
}

.heroPanelLabel {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.heroPanelMedia {
  min-height: 280px;
  border-radius: 6px;
  background:
    linear-gradient(rgba(19, 32, 31, 0.08), rgba(19, 32, 31, 0.08)),
    url("https://images.unsplash.com/photo-1511499767150-a48a237f0083?auto=format&fit=crop&w=900&q=80")
      center/cover;
}

.heroPanelBody {
  display: grid;
  gap: 8px;
}

.heroPanelBody strong {
  font-size: 1rem;
  line-height: 1.35;
}

.heroPanelBody span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.9rem;
  line-height: 1.5;
}

[data-reveal] {
  --parallax-shift: 0px;
  --parallax-tilt: 0deg;
  opacity: 0;
  transform:
    translate3d(0, calc(32px + var(--parallax-shift)), 0)
    scale(0.985)
    rotateX(var(--parallax-tilt));
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

[data-reveal].isVisible {
  opacity: 1;
  transform:
    translate3d(0, var(--parallax-shift), 0)
    scale(1)
    rotateX(var(--parallax-tilt));
}

.revealLeft {
  transform:
    translate3d(calc(-54px), calc(24px + var(--parallax-shift)), 0)
    scale(0.985)
    rotateX(var(--parallax-tilt));
}

.revealLeft.isVisible {
  transform:
    translate3d(0, var(--parallax-shift), 0)
    scale(1)
    rotateX(var(--parallax-tilt));
}

.revealRight {
  transform:
    translate3d(54px, calc(24px + var(--parallax-shift)), 0)
    scale(0.985)
    rotateX(var(--parallax-tilt));
}

.revealRight.isVisible {
  transform:
    translate3d(0, var(--parallax-shift), 0)
    scale(1)
    rotateX(var(--parallax-tilt));
}

.revealUp {
  transform:
    translate3d(0, calc(54px + var(--parallax-shift)), 0)
    scale(0.97)
    rotateX(var(--parallax-tilt));
}

.revealUp.isVisible {
  transform:
    translate3d(0, var(--parallax-shift), 0)
    scale(1)
    rotateX(var(--parallax-tilt));
}

.section {
  padding: 72px clamp(18px, 5vw, 72px);
}

.introBand {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--line);
}

.introBand div {
  min-height: 128px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 24px;
  background: var(--panel);
  transition:
    transform 220ms ease,
    box-shadow 260ms ease;
}

.introBand div:hover {
  transform: translate3d(0, -4px, 0);
  box-shadow: 0 18px 34px rgba(19, 32, 31, 0.08);
}

.introBand strong {
  font-size: 1.12rem;
}

.introBand span,
.sectionHeading,
.appointment p,
.productInfo span,
.brands p {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 48px;
  align-items: start;
}

.sectionHeading {
  position: sticky;
  top: 96px;
  max-width: 540px;
}

.sectionHeading h2 {
  color: var(--ink);
  max-width: 15ch;
  font-size: clamp(2.15rem, 4.4vw, 3.6rem);
  line-height: 1.02;
}

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

.productCard {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition:
    transform 220ms ease,
    box-shadow 260ms ease,
    border-color 220ms ease;
}

.productCard:hover {
  transform: translateY(-6px);
  border-color: rgba(8, 123, 120, 0.28);
  box-shadow: 0 22px 40px rgba(19, 32, 31, 0.12);
}

.productCard img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 360ms ease;
}

.productCard:hover img {
  transform: scale(1.05);
}

.productInfo {
  padding: 18px;
}

.productInfo span {
  display: block;
  margin-bottom: 10px;
  font-size: 0.84rem;
  font-weight: 700;
}

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

.productMeta span {
  margin-bottom: 0;
}

.productMeta b {
  flex: 0 0 auto;
  padding: 5px 8px;
  color: white;
  background: var(--coral);
  border-radius: 999px;
  font-size: 0.72rem;
}

.productInfo p {
  color: var(--teal);
  font-size: 1.3rem;
  font-weight: 800;
}

.productInfo small,
.productInfo em {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  font-style: normal;
  line-height: 1.45;
}

.productInfo em {
  margin-top: 8px;
  color: var(--coral);
  font-weight: 800;
}

.catalogSection {
  position: relative;
  background: #fbfaf6;
  scroll-margin-top: 78px;
}


.catalogSection::before,
.storyBand::before,
.services::before,
.brands::before,
.appointment::before {
  content: "";
  position: absolute;
  left: clamp(18px, 5vw, 72px);
  right: clamp(18px, 5vw, 72px);
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(19, 32, 31, 0.18), transparent);
}

.catalogHeader {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 360px);
  gap: 28px;
  align-items: end;
  margin-bottom: 22px;
  transform-origin: center top;
}

.catalogHeader h2,
.sectionHeading h2,
.brandsIntro h2,
.appointment h2 {
  max-width: 12ch;
}

.searchBox,
.adminForm label,
.adminSearch {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.searchBox input,
.adminSearch input,
.adminForm input,
.adminForm select,
.adminForm textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--ink);
  background: #fbfbf8;
  font: inherit;
}

.adminForm textarea {
  min-height: 110px;
  padding-top: 12px;
  resize: vertical;
}

.filterBar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filterBar button {
  min-height: 40px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
}

.filterBar button.isActive {
  color: white;
  background: var(--teal);
  border-color: var(--teal);
}

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

.catalogCount {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.pagination button {
  min-width: 44px;
  min-height: 42px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
}

.pagination button.isActive {
  color: white;
  background: var(--teal);
  border-color: var(--teal);
}

.pagination button:disabled {
  color: #9aa5a1;
  background: #eef1ef;
  cursor: not-allowed;
}

.emptyState {
  padding: 42px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.compactEmpty {
  padding: 24px;
  background: #fbfbf8;
}

.services {
  position: relative;
  background: #e7ede8;
}

.services .sectionHeading {
  position: static;
  max-width: none;
}

.services .sectionHeading h2 {
  max-width: none;
  white-space: nowrap;
}

.servicePanel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.servicePhoto {
  min-height: 430px;
  border-radius: 8px;
  background:
    linear-gradient(rgba(19, 32, 31, 0.06), rgba(19, 32, 31, 0.06)),
    url("https://images.pexels.com/photos/5752232/pexels-photo-5752232.jpeg?auto=compress&cs=tinysrgb&w=1200")
      center/cover;
  transition:
    transform 260ms ease,
    box-shadow 260ms ease;
  transform-origin: center center;
}

.servicePhoto:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 26px 50px rgba(19, 32, 31, 0.14);
}

.servicePanel ul {
  display: grid;
  gap: 12px;
  align-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.servicePanel li {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
  transition:
    transform 220ms ease,
    box-shadow 240ms ease,
    border-color 220ms ease;
}

.servicePanel li:hover {
  transform: translateX(8px);
  border-color: rgba(228, 111, 75, 0.25);
  box-shadow: 0 18px 36px rgba(19, 32, 31, 0.08);
}

.servicePanel li span {
  display: grid;
  flex: 0 0 28px;
  height: 28px;
  place-items: center;
  color: white;
  background: var(--coral);
  border-radius: 50%;
}

.brands {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 28px;
  align-items: start;
  overflow: hidden;
}

.brandsIntro h2 {
  margin-bottom: 12px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1;
}

.brandsIntro p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
}

.brandsStage {
  min-width: 0;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 243, 235, 0.9));
  border: 1px solid rgba(19, 32, 31, 0.08);
  border-radius: 8px;
  box-shadow: 0 28px 56px rgba(19, 32, 31, 0.08);
}

.brandsCarousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}

.brandsViewport {
  overflow: hidden;
  border-radius: 12px;
}

.brandsRail {
  display: flex;
  width: 100%;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.brandsSet {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.brandArrow {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.brandArrow:hover {
  transform: translateY(-2px);
  border-color: rgba(8, 123, 120, 0.28);
  box-shadow: 0 14px 26px rgba(19, 32, 31, 0.12);
}

.brandDots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.brandDots button {
  width: 10px;
  height: 10px;
  padding: 0;
  background: #c7cfcc;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background-color 220ms ease;
}

.brandDots button.isActive {
  background: var(--teal);
  transform: scale(1.25);
}

.brandLogoCard {
  display: grid;
  min-height: 152px;
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding: 20px 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.brandLogoCard:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 22px 34px rgba(19, 32, 31, 0.12);
}

.brandLogoCard strong {
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: 0;
  text-align: center;
  display: block;
}

.brandLogoCard img {
  display: block;
  max-width: 138px;
  max-height: 54px;
  object-fit: contain;
}

.brandLogoCard.logoMissing strong {
  display: block;
}

@keyframes heroBreath {
  from {
    filter: saturate(1);
  }

  to {
    filter: saturate(1.08);
  }
}

@keyframes heroSweep {
  0% {
    transform: translateX(-12%);
    opacity: 0.45;
  }

  50% {
    transform: translateX(3%);
    opacity: 0.95;
  }

  100% {
    transform: translateX(-8%);
    opacity: 0.55;
  }
}

.appointment {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 440px);
  gap: 48px;
  align-items: center;
  background: var(--ink);
  color: white;
}

.appointment p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.7;
}

.appointmentHighlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.appointmentHighlights span {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
}

.storyBand {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 520px) 1fr;
  gap: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(231, 237, 232, 0.7));
}

.storyIntro {
  max-width: 520px;
}

.storyIntro h2 {
  max-width: 15ch;
  margin-bottom: 12px;
  font-size: clamp(2.15rem, 4.4vw, 3.6rem);
  line-height: 1.02;
}

.storyIntro p:not(.eyebrow) {
  max-width: 40ch;
  color: var(--muted);
  line-height: 1.7;
}

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

.storyCard {
  position: relative;
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 240px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(19, 32, 31, 0.08);
  border-radius: 8px;
  box-shadow: 0 22px 40px rgba(19, 32, 31, 0.06);
  transition:
    transform 220ms ease,
    box-shadow 240ms ease,
    border-color 220ms ease;
}

.storyCard:hover {
  transform: translateY(-6px);
  border-color: rgba(8, 123, 120, 0.22);
  box-shadow: 0 28px 48px rgba(19, 32, 31, 0.1);
}

.storyCard span {
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
}

.storyCard strong {
  font-size: 1.15rem;
  line-height: 1.3;
}

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

.appointmentForm {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 22px;
  color: var(--ink);
  background: white;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  transition:
    transform 240ms ease,
    box-shadow 260ms ease;
  transform-origin: center top;
}

.appointmentForm:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 72px rgba(0, 0, 0, 0.22);
}


.appointmentForm label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.appointmentForm input,
.appointmentForm select,
.appointmentForm textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--ink);
  background: #fbfbf8;
  font: inherit;
}

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

.appointmentDateFields label {
  min-width: 0;
}

.appointmentForm textarea {
  min-height: 88px;
  padding-top: 12px;
  resize: vertical;
}

.searchBox input:focus,
.adminSearch input:focus,
.adminForm input:focus,
.adminForm select:focus,
.adminForm textarea:focus,
.appointmentForm input:focus,
.appointmentForm select:focus,
.appointmentForm textarea:focus {
  outline: none;
  border-color: rgba(8, 123, 120, 0.52);
  background: white;
  box-shadow: 0 0 0 4px rgba(8, 123, 120, 0.12);
}

.appointmentForm button:disabled,
.rowActions button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.appointmentNotice {
  padding: 11px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.appointmentNotice.success {
  color: #0f5f3f;
  background: #e4f6eb;
}

.consentGroup {
  display: grid;
  gap: 10px;
  padding: 13px;
  background: #f5f8f6;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.appointmentForm .consentCheck {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.45;
}

.appointmentForm .consentCheck input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 2px 0 0;
  accent-color: var(--teal);
}

.consentCheck a {
  color: var(--teal);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.siteFooter {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 28px;
  padding: 42px clamp(18px, 5vw, 72px) 24px;
  color: rgba(255, 255, 255, 0.78);
  background: #0c1816;
}

.siteFooter > div {
  max-width: 520px;
}

.footerBrand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-size: 1.15rem;
}

.footerBrand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.siteFooter p {
  margin: 12px 0 0;
  line-height: 1.65;
}

.siteFooter nav {
  display: grid;
  gap: 10px;
  align-content: center;
  font-weight: 700;
}

.siteFooter nav a:hover {
  color: var(--gold);
}

.siteFooter > small {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.legalBody {
  background: #edf2ef;
}

.legalHeader {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.legalHeader .ghostButton {
  color: var(--teal);
  background: #edf8f5;
  border: 1px solid rgba(8, 123, 120, 0.18);
}

.legalPage {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 90px;
}

.legalIntro {
  margin-bottom: 32px;
}

.legalIntro h1 {
  margin: 8px 0 12px;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 1;
}

.legalIntro > p:last-child {
  color: var(--muted);
}

.legalPage section,
.legalAlert {
  margin-top: 12px;
  padding: 26px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.legalPage section h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.legalPage section p,
.legalPage section li,
.legalAlert p {
  color: var(--muted);
  line-height: 1.7;
}

.legalPage section p:last-child,
.legalAlert p:last-child {
  margin-bottom: 0;
}

.legalPage section a {
  color: var(--teal);
  font-weight: 700;
}

.legalAlert {
  color: #7a3d20;
  background: #fff3e9;
  border-color: rgba(228, 111, 75, 0.34);
}

.legalAlert code {
  color: var(--ink);
}

.legalSources {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.legalSources a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 13px;
  background: #edf8f5;
  border-radius: 6px;
}

.appointmentNotice.error {
  color: #a73925;
  background: #fdece6;
}

.adminShell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
  background: #edf1ee;
}

.loginShell {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  align-items: start;
  min-height: 100svh;
  padding: 24px;
  overflow-y: auto;
  background:
    linear-gradient(90deg, rgba(19, 32, 31, 0.82), rgba(8, 123, 120, 0.5)),
    url("https://images.unsplash.com/photo-1582142306909-195724d33ffc?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.loginPanel {
  display: grid;
  gap: 22px;
  width: min(520px, 100%);
  max-height: calc(100svh - 48px);
  overflow-y: auto;
  padding: clamp(20px, 5vw, 32px);
  background: white;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(19, 32, 31, 0.22);
}

.loginPanel h1 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: clamp(2rem, 8vw, 3.35rem);
  line-height: 1;
}

.adminHeader h1 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: clamp(2.1rem, 5vw, 4.8rem);
  line-height: 0.95;
}

.loginPanel p {
  color: var(--muted);
  line-height: 1.6;
}

.loginPanel .adminForm {
  padding: 0;
  border: 0;
  background: transparent;
}

.adminSidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 26px;
  color: white;
  background: var(--ink);
}

.adminSidebar .brandMark {
  background: var(--coral);
}

.adminSidebar nav {
  display: grid;
  gap: 8px;
}

.adminSidebar nav a,
.adminSidebar button {
  justify-content: center;
  width: 100%;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.08);
}

.adminSidebar nav button.isActive {
  color: var(--ink);
  background: white;
}

.adminSidebar nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0 18px;
  font-weight: 700;
}

.adminSidebar button {
  margin-top: auto;
}

.adminContent {
  padding: 34px clamp(18px, 4vw, 48px);
}

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

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

.adminStats span {
  display: grid;
  gap: 4px;
  padding: 14px;
  color: var(--muted);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.84rem;
}

.adminStats strong {
  color: var(--ink);
  font-size: 1.5rem;
}

.adminForm,
.adminList {
  display: grid;
  gap: 16px;
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  scroll-margin-top: 24px;
}

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

.dashboardCard {
  display: grid;
  gap: 16px;
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.heroDashboardCard {
  grid-column: 1 / -1;
  background:
    linear-gradient(135deg, rgba(8, 123, 120, 0.1), rgba(228, 111, 75, 0.08)),
    white;
}

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

.dashboardMiniStats span {
  display: grid;
  gap: 4px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(19, 32, 31, 0.08);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

.dashboardMiniStats strong {
  color: var(--ink);
  font-size: 1.5rem;
}

.dashboardList {
  display: grid;
  gap: 10px;
}

.dashboardListItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  background: #fbfbf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.dashboardListItem strong,
.dashboardListItem b,
.stockBadge {
  color: var(--ink);
}

.dashboardListItem span,
.dashboardListItem small {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.stockBadge {
  padding: 6px 10px;
  background: #fff3dd;
  border-radius: 999px;
  font-size: 0.8rem;
}

.quickActionsCard {
  align-content: start;
}

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

.quickActions button {
  min-height: 52px;
  color: var(--ink);
  background: #f5f8f6;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
}

.productEditor {
  max-width: 760px;
}

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

.formTitle h2 {
  margin-bottom: 0;
  font-size: 1.45rem;
}

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

.barcodeField {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.scannerNotice {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.scannerPanel {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.scannerVideo {
  width: 100%;
  max-height: 320px;
  border-radius: 8px;
  object-fit: cover;
  background: #0b1110;
}

.adminForm button {
  color: white;
  background: var(--teal);
}

.ghostButton {
  min-height: 38px;
  color: var(--teal);
  background: #ecf7f5;
  border: 1px solid #c6e5df;
}

.formError {
  color: #a73925;
  font-size: 0.9rem;
}

.uploadBox {
  padding: 16px;
  border: 1px dashed #aebbb7;
  border-radius: 8px;
  background: #f7faf8;
}

.uploadBox span {
  color: var(--muted);
  font-weight: 500;
}

.imagePreview {
  width: 100%;
  max-height: 280px;
  border-radius: 8px;
  object-fit: cover;
}

.checkLine {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
}

.checkLine input {
  width: 18px;
  min-height: 18px;
}

.adminProduct {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: #fbfbf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.adminProduct img {
  width: 86px;
  height: 86px;
  border-radius: 6px;
  object-fit: cover;
}

.adminProduct span {
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.adminProduct h3 {
  margin: 4px 0;
}

.adminProduct p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.rowActions {
  display: flex;
  gap: 8px;
}

.rowActions button {
  min-height: 38px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
}

.rowActions button:last-child {
  color: #a73925;
}

.adminPagination {
  margin-top: 8px;
}

.appointmentsList {
  gap: 14px;
}

.agendaView {
  gap: 18px;
}

.agendaDateField {
  max-width: 260px;
}

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

.agendaSummary span {
  display: grid;
  gap: 4px;
  padding: 14px;
  color: var(--muted);
  background: #fbfbf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.84rem;
}

.agendaSummary strong {
  color: var(--ink);
  font-size: 1.45rem;
}

.agendaLayout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 16px;
  align-items: start;
}

.agendaPanel {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: #fbfbf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.agendaPanel h3 {
  margin-bottom: 0;
}

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

.agendaSlot {
  display: grid;
  gap: 6px;
  min-height: 86px;
  align-content: center;
  padding: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.agendaSlot strong {
  color: var(--ink);
  font-size: 1rem;
}

.agendaSlot span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.agendaSlot.isBusy {
  background: #fff4ea;
  border-color: rgba(228, 111, 75, 0.24);
}

.agendaAppointmentLink {
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.agendaAppointmentLink:hover,
.agendaAppointmentLink:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(8, 123, 120, 0.38);
  box-shadow: 0 12px 28px rgba(19, 32, 31, 0.1);
  outline: none;
}

.appointmentItem.isFocusedAppointment {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(8, 123, 120, 0.14), 0 20px 40px rgba(19, 32, 31, 0.1);
}

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

.appointmentSummary span {
  display: grid;
  gap: 4px;
  padding: 14px;
  color: var(--muted);
  background: #fbfbf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.84rem;
}

.appointmentSummary strong {
  color: var(--ink);
  font-size: 1.45rem;
}

.compactFilters {
  margin-bottom: 0;
}

.appointmentItem {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  background: #fbfbf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.appointmentItem h3 {
  margin: 8px 0 6px;
}

.appointmentItem p,
.appointmentItem small,
.appointmentItem em {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-style: normal;
  line-height: 1.5;
}

.appointmentSchedule {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(170px, 0.45fr);
  gap: 10px;
  margin-top: 14px;
}

.appointmentSchedule > span {
  display: grid;
  gap: 5px;
  padding: 13px 15px;
  background: #f7f9f7;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.appointmentSchedule small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.appointmentSchedule strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.3;
}

.appointmentSchedule .appointmentTime {
  background: #e9f6f3;
  border-color: rgba(8, 123, 120, 0.22);
}

.appointmentSchedule .appointmentTime strong {
  color: var(--teal);
  font-size: 1.3rem;
}

.appointmentItem em {
  margin-top: 8px;
  color: var(--ink);
}

.appointmentMetaGrid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.trackingPill {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  color: #7a4a14;
  background: #fff1d9;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.inlineGhostButton {
  margin-top: 12px;
}

.appointmentHistoryBox,
.internalNotesBox {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.appointmentHistoryBox > strong,
.internalNotesBox label {
  color: var(--ink);
  font-size: 0.9rem;
}

.appointmentHistoryList {
  display: grid;
  gap: 8px;
}

.appointmentHistoryItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #fbfbf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.appointmentHistoryItem span {
  color: var(--ink);
  font-weight: 700;
}

.appointmentHistoryItem small {
  margin: 0;
}

.internalNotesBox textarea,
.internalNotesBox select,
.internalNotesBox input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fbfbf8;
  font: inherit;
}

.internalNotesBox textarea {
  min-height: 88px;
  resize: vertical;
}

.rescheduleField {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 12px;
  background: #e9f6f3;
  border: 1px solid rgba(8, 123, 120, 0.22);
  border-radius: 8px;
}

.rescheduleField label {
  display: grid;
  gap: 7px;
}

.rescheduleField > small {
  grid-column: 1 / -1;
}

.rescheduleField[hidden],
.appointmentDraftNotice[hidden] {
  display: none;
}

.appointmentDraftNotice {
  color: #7a4a14 !important;
  font-weight: 700;
}

.clientsList {
  gap: 16px;
}

.clientsLayout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.clientsMasterList {
  display: grid;
  gap: 10px;
}

.clientListItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px;
  text-align: left;
  background: #fbfbf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    background-color 220ms ease;
}

.clientListItem:hover {
  transform: translateY(-2px);
  border-color: rgba(8, 123, 120, 0.24);
  box-shadow: 0 16px 28px rgba(19, 32, 31, 0.08);
}

.clientListItem.isActive {
  background: #ecf7f5;
  border-color: #c6e5df;
}

.clientListItem strong,
.clientListItem small {
  color: var(--ink);
}

.clientListItem span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.clientCard {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: #fbfbf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.clientCardHeader h3 {
  margin-bottom: 4px;
}

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

.clientDetailCard {
  min-height: 100%;
}

.posView {
  gap: 18px;
}

.posLayout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 16px;
  align-items: start;
}

.posCatalog,
.posCart {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: linear-gradient(180deg, #fcfdfc, #f5f8f6);
  border: 1px solid rgba(19, 32, 31, 0.08);
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(19, 32, 31, 0.06);
}

.posCatalog .dashboardListItem,
.posCart .dashboardListItem {
  padding: 16px;
  background: white;
  border-color: rgba(19, 32, 31, 0.08);
  box-shadow: 0 10px 20px rgba(19, 32, 31, 0.04);
}

.posCatalog .dashboardListItem button,
.posCart button:not(.ghostButton) {
  color: white;
  background: var(--teal);
  border: 1px solid var(--teal);
  box-shadow: 0 12px 24px rgba(8, 123, 120, 0.18);
}

.posCatalog .dashboardListItem button:hover,
.posCart button:not(.ghostButton):hover {
  box-shadow: 0 16px 28px rgba(8, 123, 120, 0.24);
}

.posCart > .formRow,
.posCart > label {
  padding: 14px;
  background: white;
  border: 1px solid rgba(19, 32, 31, 0.08);
  border-radius: 8px;
}

.posCart label,
.posCatalog label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.posCart input,
.posCart select,
.posCatalog input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: #fbfbf8;
  font: inherit;
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    background-color 220ms ease;
}

.posCart input:focus,
.posCart select:focus,
.posCatalog input:focus {
  outline: none;
  border-color: rgba(8, 123, 120, 0.52);
  background: white;
  box-shadow: 0 0 0 4px rgba(8, 123, 120, 0.12);
}

.posCart > button {
  min-height: 52px;
  font-size: 0.98rem;
}

.posClientHint {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 100%;
  padding: 14px;
  color: var(--muted);
  background: white;
  border: 1px solid rgba(19, 32, 31, 0.08);
  border-radius: 8px;
}

.posClientHint strong {
  color: var(--ink);
}

.posClientHint span,
.posClientHint small {
  color: var(--muted);
  line-height: 1.45;
}

.posCartActions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.posCartActions input {
  width: 74px;
  min-height: 40px;
  border: 1px solid rgba(19, 32, 31, 0.12);
  border-radius: 8px;
  padding: 0 10px;
  background: #f9fbfa;
}

.posCartActions button {
  min-height: 40px;
  padding: 0 14px;
}

.posView .appointmentSummary span {
  background: white;
  border-color: rgba(19, 32, 31, 0.08);
  box-shadow: 0 10px 20px rgba(19, 32, 31, 0.04);
}

.salesHistoryLayout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.salesHistoryList {
  display: grid;
  gap: 12px;
}

.saleHistoryCard {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: white;
  border: 1px solid rgba(19, 32, 31, 0.08);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(19, 32, 31, 0.05);
}

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

.saleHistoryMain h3 {
  margin-bottom: 4px;
}

.saleHistoryMain small,
.saleHistoryItems small {
  color: var(--muted);
}

.saleHistoryMeta,
.saleHistoryItems {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.saleHistoryMeta span,
.saleHistoryItems small {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  background: #f8faf9;
  border: 1px solid rgba(19, 32, 31, 0.08);
  border-radius: 999px;
}

.stickyTicketPanel {
  position: sticky;
  top: 24px;
}

.ticketPanel {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: linear-gradient(180deg, #fffdf9, #f6f3ed);
  border: 1px solid rgba(19, 32, 31, 0.08);
  border-radius: 8px;
}

.ticketCard {
  display: grid;
  gap: 14px;
  padding: 22px;
  background: white;
  border: 1px dashed rgba(19, 32, 31, 0.22);
  border-radius: 8px;
}

.ticketCard h3 {
  margin-bottom: 0;
}

.ticketCard > small,
.ticketNotes {
  color: var(--muted);
  line-height: 1.5;
}

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

.ticketMeta span,
.ticketFooter span {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: #fbfbf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.ticketMeta strong,
.ticketFooter strong,
.ticketItem strong,
.ticketItem b {
  color: var(--ink);
}

.ticketItems {
  display: grid;
  gap: 8px;
}

.ticketItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(19, 32, 31, 0.14);
}

.ticketItem:last-child {
  border-bottom: 0;
}

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

.shareButton {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: white;
  background: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 8px;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(8, 123, 120, 0.18);
}

.shareButton.isDisabled {
  opacity: 0.5;
  pointer-events: none;
}

@media (max-width: 960px) {
  .salesHistoryLayout {
    grid-template-columns: 1fr;
  }

  .stickyTicketPanel {
    position: static;
  }
}

@media print {
  body {
    background: white;
  }

  .adminShell,
  .adminShell * {
    visibility: hidden;
  }

  .printableTicketCard,
  .printableTicketCard * {
    visibility: visible;
  }

  .printableTicketCard {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 24px;
    background: white;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

.statusPill {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.statusPill.pending {
  color: #8a5214;
  background: #fff1d3;
}

.statusPill.confirmed {
  color: #075f5c;
  background: #dff5f2;
}

.statusPill.received {
  color: #4f5f5b;
  background: #e7ecea;
}

.appointmentActions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 920px) {
  .navLinks {
    display: none;
  }

  .introBand,
  .split,
  .storyBand,
  .servicePanel,
  .appointment,
  .catalogHeader,
  .adminShell {
    grid-template-columns: 1fr;
  }

  .adminSidebar {
    position: static;
    height: auto;
  }

  .adminHeader {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboardGrid,
  .dashboardMiniStats,
  .quickActions,
  .agendaSummary,
  .agendaLayout,
  .clientsLayout {
    grid-template-columns: 1fr;
  }

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

  .ticketMeta,
  .ticketFooter {
    grid-template-columns: 1fr;
  }

  .sectionHeading {
    position: static;
  }

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

  .brands {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

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

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

  .heroPanel {
    max-width: 420px;
  }

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

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

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

  .clientCardHeader {
    align-items: flex-start;
    flex-direction: column;
  }

}

@media (max-width: 620px) {
  .topbar {
    gap: 12px;
  }

  .brand {
    font-size: 0.95rem;
  }

  .brandLogo {
    width: 34px;
    height: 34px;
  }

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

  .siteFooter > small {
    grid-column: 1;
  }

  .legalHeader .ghostButton {
    min-height: 38px;
    padding: 0 11px;
    font-size: 0.78rem;
  }

  .legalPage {
    width: min(100% - 24px, 900px);
    padding-top: 38px;
  }

  .legalPage section,
  .legalAlert {
    padding: 20px;
  }

  .hero {
    min-height: 88vh;
    padding-bottom: 48px;
  }

  .loginShell {
    place-items: start center;
    padding: 12px;
  }

  .loginPanel {
    gap: 16px;
    max-height: none;
    min-height: calc(100svh - 24px);
  }

  .loginPanel h1 {
    font-size: clamp(1.8rem, 12vw, 2.65rem);
  }

  .loginPanel p {
    font-size: 0.95rem;
  }

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

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

  .formRow,
  .barcodeField,
  .adminProduct,
  .adminStats,
  .appointmentSummary,
  .appointmentItem,
  .agendaSlots,
  .rescheduleField {
    grid-template-columns: 1fr;
  }

  .adminProduct img {
    width: 100%;
    height: 180px;
  }

  .servicePhoto {
    min-height: 300px;
  }

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

  .brandArrow {
    display: none;
  }

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

  .section {
    padding-top: 52px;
    padding-bottom: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
