:root {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  color: #393e46;
  background: #efefef;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
}

body.figma-directory {
  color: #393e46;
  background: linear-gradient(
    90deg,
    #e1e1e1 0 15.625%,
    #efefef 15.625% 84.375%,
    #e1e1e1 84.375% 100%
  );
}

.directory-root {
  min-height: 100vh;
}

.directory-page {
  display: flex;
  width: min(990px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 84px 24px 48px;
  flex-direction: column;
  align-items: center;
}

.directory-brand {
  text-align: center;
}

.directory-brand-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.directory-heading {
  margin: 0;
  color: #393e46;
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.directory-status-dot {
  width: 58px;
  height: 62px;
  object-fit: contain;
}

.directory-intro {
  margin: 54px 0 0;
  color: #393e46;
  font-size: clamp(17px, 1.7vw, 24px);
  font-weight: 300;
  line-height: 1.35;
}

.directory-carousel {
  display: grid;
  width: min(660px, 100%);
  margin-top: 46px;
  grid-template-columns: 80px minmax(0, 1fr) 80px;
  align-items: center;
  gap: 54px;
}

.directory-carousel-stage {
  display: grid;
  min-height: 472px;
  place-items: center;
}

.directory-carousel-button {
  width: 80px;
  height: 80px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease;
}

.directory-carousel-button:hover,
.directory-carousel-button:focus-visible {
  filter: brightness(0.96);
  outline: 3px solid rgba(57, 62, 70, 0.18);
  outline-offset: 3px;
  transform: scale(1.04);
}

.directory-carousel-icon {
  display: block;
  width: 80px;
  height: 80px;
}

.directory-business-card {
  display: flex;
  width: 284px;
  flex-direction: column;
  align-items: center;
  color: #393e46;
  text-align: center;
}

.directory-profile {
  display: grid;
  width: 284px;
  height: 284px;
  overflow: hidden;
  place-items: center;
  border: 2px solid #838b9a;
  border-radius: 40px;
  background: linear-gradient(145deg, #d7d9dc, #b8bec6);
  box-shadow: 0 18px 40px rgba(57, 62, 70, 0.13);
}

.directory-profile-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.directory-profile-initials {
  color: #393e46;
  font-size: 76px;
  font-weight: 650;
  letter-spacing: -0.06em;
}

.directory-name-row {
  display: flex;
  margin-top: 16px;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.directory-business-name {
  margin: 0;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.directory-verified {
  width: 26px;
  height: 26px;
}

.directory-business-details {
  display: flex;
  width: 100%;
  margin-top: 16px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.directory-business-type {
  padding: 8px;
  border: 1px solid #8e98a8;
  border-radius: 16px;
  color: #393e46;
  font-size: 16px;
  line-height: 1.1;
  white-space: nowrap;
}

.directory-rating,
.directory-stars {
  display: flex;
  align-items: center;
}

.directory-rating {
  gap: 7px;
}

.directory-star {
  width: 24px;
  height: 24px;
  margin-right: -6px;
}

.directory-rating-score {
  color: #393e46;
  font-size: 20px;
  font-weight: 600;
}

.directory-book-button {
  display: inline-flex;
  min-height: 49px;
  margin-top: 24px;
  padding: 10px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-radius: 8px;
  background: linear-gradient(180deg, #2e3238, #393e46);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
  color: #efefef;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.directory-book-button:hover,
.directory-book-button:focus-visible {
  box-shadow: 0 7px 15px rgba(0, 0, 0, 0.28);
  outline: 3px solid rgba(57, 62, 70, 0.18);
  outline-offset: 3px;
  transform: translateY(-2px);
}

.directory-book-arrow {
  width: 22px;
  height: 22px;
}

.directory-carousel-dots {
  display: flex;
  margin-top: 22px;
  justify-content: center;
  gap: 9px;
}

.directory-carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #bbc0c7;
  cursor: pointer;
}

.directory-carousel-dot.active {
  width: 24px;
  border-radius: 999px;
  background: #393e46;
}

.directory-empty {
  margin-top: 52px;
  padding: 24px;
  border: 1px solid #bfc5cd;
  border-radius: 20px;
  background: #fff;
  color: #59616c;
  text-align: center;
}

.directory-status {
  display: grid;
  width: min(540px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 40px 0;
  place-content: center;
  justify-items: center;
  color: #393e46;
  text-align: center;
}

.directory-loader {
  width: 46px;
  height: 46px;
  border: 4px solid #c8cdd3;
  border-top-color: #393e46;
  border-radius: 50%;
  animation: directory-spin 0.8s linear infinite;
}

.directory-status-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  background: #393e46;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
}

.directory-status-title {
  margin: 20px 0 7px;
  font-size: 28px;
}

.directory-status-text {
  margin: 16px 0 0;
  color: #66707d;
  line-height: 1.6;
}

.directory-retry {
  margin-top: 22px;
  padding: 12px 20px;
  border: 0;
  border-radius: 10px;
  background: #393e46;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

body.admin-directory {
  color: #f8fafc;
  background: #0b0f14;
}

.directory-admin-page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

.directory-admin-hero {
  padding: 42px;
  border: 1px solid #263449;
  border-radius: 28px;
  background: linear-gradient(125deg, #1a2737, #0f1c2e);
}

.directory-admin-badge {
  display: inline-flex;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  font-weight: 700;
}

.directory-admin-heading {
  margin: 20px 0 10px;
  color: #fff;
  font-size: clamp(38px, 6vw, 58px);
}

.directory-admin-intro {
  margin: 0;
  color: #b9c6d8;
  font-size: 18px;
}

.directory-admin-grid {
  display: grid;
  margin-top: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.directory-admin-card {
  display: grid;
  min-height: 190px;
  padding: 24px;
  border: 1px solid #2a3545;
  border-radius: 22px;
  background: #121923;
  color: #f8fafc;
  text-decoration: none;
}

.directory-admin-icon {
  font-size: 28px;
}

.directory-admin-title {
  margin: 18px 0 6px;
}

.directory-admin-detail {
  margin: 0;
  color: #9aacbf;
}

.directory-admin-action {
  margin-top: 18px;
  color: #fbbf24;
  font-weight: 800;
}

@keyframes directory-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 760px) {
  body.figma-directory {
    background: #efefef;
  }

  .directory-page {
    min-height: 100svh;
    padding: 38px 16px 32px;
  }

  .directory-brand-title {
    gap: 12px;
  }

  .directory-heading {
    font-size: clamp(33px, 10vw, 44px);
  }

  .directory-status-dot {
    width: 42px;
    height: 46px;
  }

  .directory-intro {
    margin-top: 28px;
    font-size: 17px;
  }

  .directory-carousel {
    width: 100%;
    margin-top: 34px;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 8px;
  }

  .directory-carousel-stage {
    min-height: 420px;
  }

  .directory-carousel-button,
  .directory-carousel-icon {
    width: 48px;
    height: 48px;
  }

  .directory-business-card {
    width: min(244px, 100%);
  }

  .directory-profile {
    width: min(244px, 100%);
    height: auto;
    aspect-ratio: 1;
    border-radius: 32px;
  }

  .directory-business-name {
    font-size: 25px;
  }

  .directory-business-details {
    flex-direction: column;
    justify-content: center;
    gap: 10px;
  }

  .directory-book-button {
    min-height: 46px;
    margin-top: 18px;
    font-size: 20px;
  }

  .directory-admin-page {
    padding-top: 20px;
  }

  .directory-admin-hero {
    padding: 28px 22px;
  }

  .directory-admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .directory-carousel {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
  }

  .directory-carousel-button,
  .directory-carousel-icon {
    width: 40px;
    height: 40px;
  }

  .directory-business-card {
    width: min(220px, 100%);
  }
}
