﻿:root {
  --ink: #1c1c1c;
  --muted: #6e6a66;
  --line: #e7ddd3;
  --paper: #f8f3ee;
  --rose: #b89a7a;
  --rose-dark: #3a3531;
  --mint: #8a8178;
  --gold: #b89a7a;
  --champagne: #ffffff;
  --sand: #e7ddd3;
  --coffee: #3a3531;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(28, 28, 28, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.88), transparent 30%),
    linear-gradient(180deg, #f8f3ee 0%, #fbf8f5 52%, #f8f3ee 100%);
  font-family: "Plus Jakarta Sans", Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  animation: pageIn 0.5s ease both;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 0 48px;
  background: rgba(248, 243, 238, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-logo {
  display: block;
  width: 184px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

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

.nav a,
.nav-cta,
.primary-btn,
.secondary-btn,
.secondary-action,
.logout-btn {
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta,
.primary-btn,
.secondary-btn,
.secondary-action,
.role-tab,
.order-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.nav-cta,
.primary-btn {
  color: var(--white);
  background: var(--coffee);
  box-shadow: none;
}

.nav-cta:hover,
.primary-btn:hover {
  transform: translateY(-2px);
  background: var(--rose);
  color: var(--ink);
}

.topbar-end {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: auto;
}

.logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.logout-btn:hover:not(:disabled) {
  background: var(--ink);
  color: #fff;
}

.logout-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.session-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  max-width: 240px;
  padding: 0 12px;
  color: var(--coffee);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.secondary-btn,
.secondary-action,
.role-tab,
.order-action {
  color: var(--ink);
  background: var(--white);
}

.secondary-action {
  border: 1px solid var(--line);
}

.secondary-action:hover {
  transform: translateY(-2px);
  border-color: var(--rose);
  background: #fbf8f5;
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  padding: 72px 44px;
  overflow: hidden;
  background: var(--paper);
}

.hero::after {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  color: var(--ink);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--rose);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.hero .eyebrow {
  color: var(--rose);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(44px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.hero-copy {
  max-width: 610px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

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

.marketplace-hero {
  min-height: calc(100vh - 76px);
  align-items: center;
  justify-content: center;
  padding: 86px 44px 112px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(248, 243, 238, 0.86), rgba(248, 243, 238, 0.98)),
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.74), transparent 34%),
    url("https://images.pexels.com/photos/30822560/pexels-photo-30822560.jpeg?auto=compress&cs=tinysrgb&w=1800") center/cover;
}

.marketplace-hero::before {
  display: none;
}

.marketplace-hero .hero-content {
  max-width: 1040px;
  margin: 0 auto;
  color: var(--ink);
}

.marketplace-hero .eyebrow {
  width: fit-content;
  margin-right: auto;
  margin-left: auto;
  padding: 8px 12px;
  color: var(--rose-dark);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(231, 221, 211, 0.9);
  border-radius: 999px;
}

.marketplace-hero h1 {
  max-width: 920px;
  margin: 0 auto;
  font-size: clamp(42px, 6vw, 78px);
}

.marketplace-hero .hero-copy {
  max-width: 720px;
  margin: 22px auto 0;
  color: var(--muted);
}

.hero-note {
  max-width: 760px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.audience-toggle {
  display: inline-flex;
  gap: 8px;
  margin: 28px auto 0;
  padding: 6px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 18px 50px rgba(28, 28, 28, 0.08);
}

.audience-btn {
  min-height: 42px;
  padding: 0 22px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.audience-btn:hover,
.audience-btn.active {
  color: var(--ink);
  background: var(--white);
  border-color: var(--rose);
  transform: translateY(-1px);
}

.hero-proof-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 18px auto 0;
}

.hero-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.hero-proof-row span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  color: var(--coffee);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(231, 221, 211, 0.92);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.home-search-card {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 0.85fr 1fr auto;
  align-items: stretch;
  gap: 0;
  max-width: 1180px;
  margin: 16px auto 0;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(28, 28, 28, 0.08);
}

.home-search-card:hover {
  border-color: rgba(184, 154, 122, 0.72);
  box-shadow: 0 30px 80px rgba(28, 28, 28, 0.11);
}

.search-field {
  display: grid;
  gap: 4px;
  padding: 8px 18px;
  text-align: left;
  border-right: 1px solid var(--line);
}

.search-field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.search-field select,
.search-field input {
  width: 100%;
  min-height: 34px;
  border: 0;
  outline: 0;
  color: var(--coffee);
  background: transparent;
  font: inherit;
  font-weight: 800;
}

.home-search-card .primary-btn {
  min-height: 58px;
  align-self: center;
  white-space: nowrap;
  border-radius: 8px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  max-width: 1180px;
  margin: -36px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.trust-strip div {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 132px;
  padding: 20px 18px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.trust-strip img,
.trust-strip svg {
  width: 44px;
  height: 44px;
}

.trust-strip strong {
  display: block;
  font-size: 18px;
}

.trust-strip span {
  color: var(--muted);
  font-weight: 700;
}

.section,
.booking-band,
.app-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 92px 24px;
}

.page-section {
  padding-top: 72px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 32px;
}

.center-heading {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.conversion-grid,
.featured-grid,
.reviews-grid {
  display: grid;
  gap: 18px;
}

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

.conversion-card,
.featured-card,
.review-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.conversion-card {
  min-height: 250px;
  padding: 24px;
}

.conversion-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 26px;
  color: var(--ink);
  background: #fbf8f5;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 950;
}

.conversion-card p,
.featured-card p,
.review-card p {
  color: var(--muted);
  line-height: 1.65;
}

.signature-section {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 44px;
  align-items: center;
}

.signature-copy {
  display: grid;
  gap: 18px;
  max-width: 520px;
}

.signature-copy p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.signature-copy .secondary-action {
  width: fit-content;
  margin-top: 8px;
}

.signature-panel {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  grid-template-rows: 250px 140px;
  gap: 16px;
}

.signature-image,
.signature-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.signature-image {
  background-size: cover;
  background-position: center;
}

.signature-image.main {
  grid-row: span 2;
  background-image:
    linear-gradient(180deg, rgba(28, 28, 28, 0.02), rgba(28, 28, 28, 0.16)),
    url("https://images.unsplash.com/photo-1522335789203-aabd1fc54bc9?auto=format&fit=crop&w=1000&q=80");
}

.signature-image.small {
  background-image:
    linear-gradient(180deg, rgba(28, 28, 28, 0.02), rgba(28, 28, 28, 0.14)),
    url("https://images.unsplash.com/photo-1604654894610-df63bc536371?auto=format&fit=crop&w=900&q=80");
}

.signature-card {
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 22px;
  background: var(--coffee);
  color: var(--white);
}

.signature-card strong {
  font-size: 20px;
  line-height: 1.2;
}

.signature-card span {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.brand-film-section {
  padding-top: 72px;
}

.brand-film {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 42px;
  align-items: center;
  min-height: 520px;
  padding: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 18%, rgba(184, 154, 122, 0.18), transparent 32%),
    linear-gradient(135deg, #ffffff, #fbf8f5);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.brand-film::before {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(184, 154, 122, 0.22);
  border-radius: 10px;
  pointer-events: none;
}

.film-phone {
  position: relative;
  z-index: 1;
  width: min(320px, 100%);
  min-height: 450px;
  margin: 0 auto;
  padding: 18px;
  background: #1c1c1c;
  border-radius: 34px;
  box-shadow: 0 34px 80px rgba(28, 28, 28, 0.22);
  animation: phoneFloat 5s ease-in-out infinite;
}

.film-phone-top {
  width: 84px;
  height: 8px;
  margin: 0 auto 14px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.film-screen {
  position: relative;
  min-height: 392px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(248, 243, 238, 0.92), rgba(255, 255, 255, 1)),
    url("https://images.unsplash.com/photo-1522335789203-aabd1fc54bc9?auto=format&fit=crop&w=900&q=80") center/cover;
  border-radius: 24px;
}

.film-screen::after {
  content: "GlamMe";
  position: absolute;
  top: 24px;
  left: 24px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
}

.film-card {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 22px;
  display: grid;
  gap: 6px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(231, 221, 211, 0.96);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(28, 28, 28, 0.14);
  opacity: 0;
  transform: translateY(28px) scale(0.96);
  animation: filmCardCycle 12s ease-in-out infinite;
}

.film-card span {
  color: var(--rose);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.film-card strong {
  color: var(--ink);
  font-size: 21px;
}

.film-card small {
  color: var(--muted);
  font-weight: 700;
}

.film-card-pro {
  animation-delay: 3s;
}

.film-card-pay {
  animation-delay: 6s;
}

.film-card-done {
  animation-delay: 9s;
}

.film-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orbit-dot {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  color: var(--coffee);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 950;
  box-shadow: var(--shadow);
  animation: orbitPulse 4s ease-in-out infinite;
}

.dot-one {
  left: 9%;
  top: 16%;
}

.dot-two {
  left: 38%;
  top: 10%;
  animation-delay: 0.6s;
}

.dot-three {
  left: 7%;
  bottom: 16%;
  animation-delay: 1.2s;
}

.dot-four {
  left: 40%;
  bottom: 10%;
  animation-delay: 1.8s;
}

.film-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  max-width: 520px;
}

.film-copy h3 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.06;
}

.film-copy p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.salon-page {
  background: var(--paper);
}

.salon-loading {
  display: grid;
  min-height: 70vh;
  place-items: center;
  padding: 80px 24px;
  text-align: center;
}

.salon-hero {
  min-height: 640px;
  display: grid;
  place-items: end start;
  padding: 120px 44px 54px;
  background:
    linear-gradient(90deg, rgba(28, 28, 28, 0.58), rgba(28, 28, 28, 0.1)),
    var(--salon-cover) center/cover;
}

.salon-hero-card {
  width: min(720px, 100%);
  padding: 34px;
  color: var(--white);
  background: rgba(28, 28, 28, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  backdrop-filter: blur(18px);
}

.salon-hero-card .eyebrow,
.salon-hero-card p {
  color: rgba(255, 255, 255, 0.8);
}

.salon-hero-card h1 {
  font-size: clamp(42px, 6vw, 78px);
}

.salon-avatar {
  width: 104px;
  height: 104px;
  margin-bottom: 18px;
  object-fit: cover;
  border: 3px solid var(--white);
  border-radius: 50%;
}

.salon-meta,
.salon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.salon-meta span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.salon-section {
  padding-top: 76px;
  padding-bottom: 76px;
}

.salon-service-grid,
.portfolio-grid,
.pack-grid,
.salon-two-columns {
  display: grid;
  gap: 18px;
}

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

.portfolio-grid,
.pack-grid,
.salon-two-columns {
  grid-template-columns: repeat(2, 1fr);
}

.salon-service-card,
.portfolio-card,
.pack-card,
.salon-info-card,
.esalon-editor {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.salon-service-card,
.pack-card,
.salon-info-card {
  padding: 24px;
}

.salon-service-card p,
.salon-info-card p {
  color: var(--muted);
  line-height: 1.7;
}

.portfolio-card {
  overflow: hidden;
}

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

.portfolio-card div {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.portfolio-card span {
  color: var(--rose);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.qr-card img {
  width: 160px;
  height: 160px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.pack-card {
  display: grid;
  gap: 8px;
}

.pack-card strong {
  font-size: 20px;
}

.pack-card span {
  color: var(--muted);
  line-height: 1.5;
}

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

.esalon-edit-block h4 {
  margin: 0;
}

.esalon-edit-block p {
  margin: 0;
  color: var(--muted);
}

.esalon-repeat-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.7fr 0.65fr 0.75fr;
  gap: 10px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.esalon-repeat-row textarea,
.esalon-repeat-row input[name^="serviceOptions"] {
  grid-column: span 5;
}

.esalon-repeat-row.compact {
  grid-template-columns: 1fr 0.7fr 1.4fr;
}

.crm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.crm-client {
  display: grid;
  gap: 6px;
  padding: 14px;
  background: #fbf8f5;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.crm-client span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

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

.featured-card {
  overflow: hidden;
}

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

.featured-card div {
  padding: 22px;
}

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

.review-card {
  min-height: 210px;
  padding: 26px;
}

.review-card strong {
  display: block;
  margin-top: 22px;
  color: var(--coffee);
}

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

.service-card,
.saas-grid article,
.pro-panel,
.booking-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.service-card {
  min-height: 420px;
  padding: 0;
  overflow: hidden;
}

.service-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
  filter: saturate(0.98) contrast(0.98) brightness(1.03);
}

.service-content {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.service-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  color: var(--coffee);
  background: #fbf8f5;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.service-card p,
.saas-grid p,
.split p,
.booking-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.price {
  display: inline-flex;
  color: var(--coffee);
  font-weight: 900;
}

.service-select {
  width: 100%;
  margin-top: 8px;
  color: var(--white);
  background: var(--coffee);
  box-shadow: none;
}

.booking-band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.booking-copy {
  padding-top: 18px;
}

.booking-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 24px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

textarea {
  padding: 12px;
  resize: vertical;
  line-height: 1.6;
}

input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--rose);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.check-row span {
  color: var(--ink);
}

.summary-box {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding: 18px;
  background: #fbf8f5;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.soft-note {
  padding: 14px 16px;
  color: var(--coffee);
  background: #fbf8f5;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-weight: 700;
}

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

.full {
  grid-column: 1 / -1;
  width: 100%;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.pro-panel {
  padding: 12px;
}

.pro-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}

.pro-row:last-child {
  border-bottom: 0;
}

.pro-row span {
  color: var(--muted);
  font-weight: 700;
}

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

.saas-grid article {
  padding: 24px;
}

.signup-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 92px 24px;
}

.signup-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.signup-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.auth-btn {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.auth-btn.google {
  border-color: #d9dee7;
}

.auth-btn.facebook {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.auth-btn.active {
  outline: 3px solid rgba(184, 154, 122, 0.18);
  border-color: var(--rose);
}

.auth-status {
  padding: 14px;
  color: var(--muted);
  background: #fbf8f5;
  border: 1px solid var(--line);
  border-radius: 8px;
  line-height: 1.5;
}

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

.auth-status button {
  margin-top: 10px;
}

.signup-form.is-authenticated .auth-options,
.signup-form.is-authenticated #signupMethod {
  display: none;
}

.signup-form.is-authenticated .auth-only-label {
  display: none;
}

.spaces-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 92px 24px;
}

.space-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.space-tab {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font-weight: 850;
  cursor: pointer;
}

.space-tab.active {
  color: var(--white);
  background: var(--coffee);
  border-color: transparent;
}

.space-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 22px;
  align-items: start;
}

.space-copy,
.space-list {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.space-copy {
  padding: 24px;
}

.space-copy h2 {
  font-size: clamp(28px, 3vw, 42px);
}

.space-copy p,
.space-item p {
  color: var(--muted);
  line-height: 1.7;
}

.space-list {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.space-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}

.space-item h3 {
  margin-bottom: 8px;
}

.space-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.space-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

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

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

.professional-link-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr auto;
  align-items: end;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.professional-link-row strong,
.professional-link-row span {
  display: block;
}

.professional-link-row span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.profile-card {
  display: grid;
  gap: 18px;
}

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

.readonly-field {
  display: grid;
  gap: 8px;
  padding: 14px;
  color: var(--muted);
  background: #fbf8f5;
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.is-hidden {
  display: none !important;
}

.profile-check {
  align-self: end;
}

.specialty-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.specialty-group legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.availability-card {
  display: grid;
  gap: 16px;
}

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

.availability-day {
  min-height: 74px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf8f5;
}

.availability-day strong,
.availability-day span {
  display: block;
}

.availability-day strong {
  margin-bottom: 6px;
}

.availability-day span,
.fine-print {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.availability-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.availability-slots label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--coffee);
  font-size: 12px;
  font-weight: 850;
}

.availability-slots input {
  width: 14px;
  height: 14px;
  accent-color: var(--rose-dark);
}

.small-action {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf8f5;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

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

.stat-card {
  min-height: 98px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
}

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

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
}

.app-shell {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 22px;
  align-items: start;
}

.app-sidebar,
.dashboard {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.app-sidebar {
  position: sticky;
  top: 96px;
  padding: 24px;
}

.app-sidebar h2,
.dashboard h2 {
  font-size: clamp(28px, 3vw, 42px);
}

.app-sidebar p {
  color: var(--muted);
  line-height: 1.7;
}

.role-tabs {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.role-tab {
  width: 100%;
  border: 1px solid var(--line);
  box-shadow: none;
}

.role-tab.active {
  color: var(--white);
  background: var(--coffee);
  border-color: transparent;
}

.dashboard {
  min-width: 0;
  padding: 24px;
}

.dashboard-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.secondary-action {
  border: 1px solid var(--line);
  box-shadow: none;
}

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

.metric-card {
  min-height: 98px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
}

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

.order-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.order-card h3 {
  margin-bottom: 8px;
}

.order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: var(--muted);
  background: #fbf8f5;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.status {
  color: var(--white);
  background: var(--mint);
}

.status.pending {
  background: var(--gold);
}

.status.accepted {
  background: var(--mint);
}

.status.completed {
  background: var(--rose-dark);
}

.order-actions {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 150px;
}

.order-action {
  min-height: 38px;
  border: 1px solid var(--line);
  box-shadow: none;
  font-size: 13px;
}

.empty-state {
  padding: 26px;
  color: var(--muted);
  background: #fbf8f5;
  border: 1px solid var(--line);
  border-radius: 8px;
  line-height: 1.7;
}

.modal {
  width: min(520px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.modal::backdrop {
  background: rgba(31, 26, 28, 0.42);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 0;
}

.modal h2 {
  font-size: 28px;
}

.modal p {
  margin: 0;
  padding: 18px 22px 22px;
  color: var(--muted);
  line-height: 1.65;
}

.modal .primary-btn {
  margin: 0 22px 22px;
  width: calc(100% - 44px);
}

.signup-pop {
  text-align: center;
}

.popup-form {
  display: grid;
  gap: 12px;
  padding: 0 22px 22px;
}

.popup-form .primary-btn {
  margin: 0;
  width: 100%;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
}

.topbar {
  box-shadow: 0 10px 36px rgba(28, 28, 28, 0.06);
}

.nav a,
.nav-cta,
.primary-btn,
.secondary-btn,
.auth-btn,
.space-tab,
.small-action,
.service-select,
.conversion-card,
.featured-card,
.review-card,
.icon-btn {
  transition: transform 0.22s ease, box-shadow 0.22s ease, color 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.nav a:hover,
.nav-cta:hover,
.primary-btn:hover,
.secondary-btn:hover,
.auth-btn:hover,
.space-tab:hover,
.small-action:hover,
.service-select:hover,
.icon-btn:hover {
  transform: translateY(-2px);
}

.nav-cta:hover,
.primary-btn:hover,
.service-select:hover {
  background: var(--coffee);
  box-shadow: none;
}

button:disabled,
.primary-btn:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.secondary-btn:hover,
.small-action:hover,
.icon-btn:hover {
  border-color: var(--rose);
  box-shadow: none;
}

.hero {
  animation: heroDrift 16s ease-in-out infinite alternate;
}

.hero-content {
  animation: riseIn 0.75s ease both;
}

.hero-actions {
  animation: riseIn 0.75s 0.12s ease both;
}

.trust-strip div,
.service-card,
.booking-form,
.signup-form,
.space-copy,
.space-list,
.space-item,
.stat-card,
.conversion-card,
.featured-card,
.review-card {
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.trust-strip div:hover,
.service-card:hover,
.booking-form:hover,
.signup-form:hover,
.space-item:hover,
.stat-card:hover,
.conversion-card:hover,
.featured-card:hover,
.review-card:hover {
  transform: translateY(-6px);
  border-color: var(--rose);
  box-shadow: 0 24px 56px rgba(28, 28, 28, 0.1);
}

.service-card {
  overflow: hidden;
}

.service-card img {
  transition: transform 0.75s ease, filter 0.75s ease;
}

.service-card:hover img {
  transform: scale(1.06);
  filter: saturate(1.08) contrast(1.03);
}

.service-badge,
.pill,
.stat-card span {
  letter-spacing: 0;
}

.section-heading,
.page-section,
.service-card,
.space-panel {
  animation: riseIn 0.55s ease both;
}

.service-card:nth-child(2) {
  animation-delay: 0.08s;
}

.service-card:nth-child(3) {
  animation-delay: 0.16s;
}

.auth-status {
  box-shadow: inset 0 0 0 1px rgba(232, 216, 200, 0.9);
}

select,
input,
textarea {
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

select:focus,
input:focus,
textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(184, 154, 122, 0.16);
  outline: none;
}

.modal {
  animation: popIn 0.22s ease both;
}

@keyframes pageIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes heroDrift {
  from {
    background-position: center center;
  }
  to {
    background-position: center 45%;
  }
}

@keyframes phoneFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-14px) rotate(1deg);
  }
}

@keyframes filmCardCycle {
  0%,
  18% {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
  }
  24%,
  42% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  48%,
  100% {
    opacity: 0;
    transform: translateY(-18px) scale(0.98);
  }
}

@keyframes orbitPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 900px) {
  .topbar {
    flex-wrap: wrap;
    padding: 0 20px;
    gap: 12px;
  }

  .nav {
    order: 3;
    display: flex;
    width: 100%;
    gap: 8px;
    padding: 0 0 12px;
    overflow-x: auto;
    color: var(--ink);
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    white-space: nowrap;
  }

  .nav a:hover {
    background: var(--white);
  }

  .hero {
    min-height: 720px;
    padding: 64px 20px;
  }

  .marketplace-hero {
    min-height: auto;
    padding: 64px 20px 78px;
  }

  .home-search-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .search-field {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .search-field:last-of-type {
    border-bottom: 0;
  }

	  .trust-strip,
	  .service-grid,
	  .conversion-grid,
	  .signature-section,
	  .brand-film,
	  .salon-service-grid,
	  .portfolio-grid,
	  .pack-grid,
	  .salon-two-columns,
	  .crm-grid,
	  .featured-grid,
	  .reviews-grid,
  .booking-band,
  .split,
  .saas-grid,
  .app-shell,
  .metric-grid,
  .signup-section,
  .space-panel,
  .admin-filter-grid,
  .availability-grid,
  .professional-link-row,
  .profile-form,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card.wide {
    grid-column: auto;
  }

  .app-sidebar {
    position: static;
  }

  .dashboard-head,
  .order-card {
    grid-template-columns: 1fr;
  }

  .dashboard-head {
    display: grid;
  }

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

	  .trust-strip {
	    margin-top: 0;
	  }

	  .signature-copy {
	    max-width: none;
	  }

	  .signature-panel {
	    grid-template-columns: 1fr;
	    grid-template-rows: 260px auto 180px;
	  }

	  .signature-image.main {
	    grid-row: auto;
	  }

	  .brand-film {
	    min-height: auto;
	    padding: 24px;
	  }

	  .brand-film::before,
	  .film-orbit {
	    display: none;
	  }

	  .film-phone {
	    order: 2;
	  }

	  .film-copy {
	    order: 1;
	    max-width: none;
	  }

	  .salon-hero {
	    min-height: auto;
	    padding: 88px 20px 34px;
	    place-items: end stretch;
	  }

	  .salon-hero-card {
	    padding: 24px;
	  }

	  .esalon-repeat-row,
	  .esalon-repeat-row.compact {
	    grid-template-columns: 1fr;
	  }

	  .esalon-repeat-row textarea,
	  .esalon-repeat-row input[name^="serviceOptions"] {
	    grid-column: auto;
	  }

  .booking-form,
  .signup-form,
  .auth-options {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 520px) {
  .topbar {
    gap: 10px;
    min-height: 64px;
    padding: 8px 14px 0;
  }

  .brand-logo {
    width: 52px;
    content: url("assets/glamme-monogram.svg");
  }

  .nav-cta {
    min-height: 40px;
    padding: 0 14px;
    font-size: 13px;
  }

  .nav {
    gap: 6px;
    padding-bottom: 10px;
  }

  .nav a {
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  .session-badge {
    max-width: 132px;
    min-height: 34px;
    padding: 0 10px;
    font-size: 11px;
  }

  .logout-btn {
    min-height: 40px;
    padding: 0 14px;
    font-size: 13px;
  }

  h1 {
    font-size: 40px;
    line-height: 1;
  }

  h2 {
    font-size: 32px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .hero {
    min-height: 640px;
  }

  .marketplace-hero h1 {
    font-size: 36px;
  }

	  .home-search-card {
	    margin-top: 24px;
	    padding: 8px;
	  }

	  .hero-proof-row {
	    justify-content: stretch;
	  }

	  .hero-proof-row span {
	    width: 100%;
	    justify-content: center;
	  }

  .section,
  .booking-band,
  .app-shell,
  .signup-section,
  .spaces-section {
    padding: 64px 18px;
  }

  .order-actions {
    grid-template-columns: 1fr;
  }

  .service-card img {
    height: 205px;
  }

  .space-tabs,
  .hero-actions {
    gap: 8px;
  }

  .space-tab,
  .primary-btn,
  .secondary-btn,
  .small-action {
    width: 100%;
  }
}
