:root {
  --ink: #0f1722;
  --ink-soft: #4d5d73;
  --surface: #f4f8fc;
  --card: #ffffff;
  --line: #dbe5f0;
  --brand-a: #0ab8ff;
  --brand-b: #8b5cf6;
  --brand-c: #00d4a0;
  --cta: #0c4ef5;
  --cta-hover: #0a3fc5;
  --radius: 20px;
  --shadow: 0 18px 48px rgba(11, 38, 81, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Manrope, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 10%, rgba(10, 184, 255, 0.18), transparent 24%),
    radial-gradient(circle at 8% 22%, rgba(139, 92, 246, 0.12), transparent 30%),
    linear-gradient(180deg, #f9fbff 0%, var(--surface) 45%, #eef4fb 100%);
  line-height: 1.5;
  min-height: 100vh;
}

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

header {
  padding: 22px 0;
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(236, 243, 251, 0.94);
  border-bottom: 1px solid rgba(189, 205, 222, 0.9);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  z-index: 20;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand img.brand-wordmark {
  width: auto;
  height: 15px;
  max-width: min(154px, 39vw);
  object-fit: contain;
  transform: translate(-11px, 2px);
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
}

.language-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid #d2deec;
  border-radius: 999px;
  background: linear-gradient(180deg, #f8fbff, #edf3fb);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.language-switch {
  color: #5f7088;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.language-select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 999px;
  background-color: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  padding: 6px 24px 6px 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%235f7088' d='M1.2.7 5 4.3 8.8.7 10 1.8 5 6 0 1.8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  cursor: pointer;
}

.language-select:focus-visible {
  outline: 2px solid rgba(12, 78, 245, 0.35);
  outline-offset: 2px;
}

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

main {
  padding: 40px 0 80px;
}

h1 {
  font-family: "Space Grotesk", Manrope, sans-serif;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.lead {
  color: var(--ink-soft);
  margin: 0 0 28px;
  font-size: 1.05rem;
}

/* Stepper */
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.step-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: default;
}

.step-pill.clickable {
  cursor: pointer;
}

.step-pill.clickable:hover {
  border-color: var(--cta);
  color: var(--cta);
}

.step-pill:disabled {
  opacity: 0.5;
}

.step-pill .num {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.step-pill.active {
  border-color: var(--cta);
  color: var(--cta);
}

.step-pill.active .num {
  background: var(--cta);
  color: #fff;
}

.step-pill.done {
  border-color: var(--brand-c);
  color: #0a8f6e;
}

.step-pill.done .num {
  background: var(--brand-c);
  color: #fff;
}

/* Cards / panels */
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 8px 22px rgba(6, 35, 74, 0.06);
  margin-bottom: 18px;
}

.panel h2 {
  margin: 0 0 4px;
  font-family: "Space Grotesk", Manrope, sans-serif;
  font-size: 1.25rem;
}

.panel .hint {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

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

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--cta);
  box-shadow: 0 0 0 3px rgba(12, 78, 245, 0.12);
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 12px;
  padding: 13px 20px;
  font: inherit;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

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

.btn-primary {
  background: linear-gradient(110deg, var(--cta), #5b34fb);
  color: #fff;
  box-shadow: 0 10px 24px rgba(64, 57, 210, 0.28);
}

.btn-secondary {
  color: var(--ink);
  background: #fff;
  border-color: #ccd9e8;
}

.btn-block {
  width: 100%;
}

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

.actions-top {
  margin-top: 0;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

/* List items (salons / services / employees / slots) */
.option-list {
  display: grid;
  gap: 10px;
}

.option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.option:hover {
  border-color: var(--cta);
}

.option.selected {
  border-color: var(--cta);
  background: rgba(12, 78, 245, 0.05);
  box-shadow: 0 0 0 2px rgba(12, 78, 245, 0.12);
}

.option .meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.option .meta strong {
  font-size: 1rem;
}

.option .meta small {
  color: var(--ink-soft);
}

.service-image-strip {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.service-image-strip img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #f5f8fc;
}

.service-image-strip img.service-image-thumb {
  cursor: zoom-in;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  background: rgba(10, 16, 28, 0.9);
}

.image-lightbox-stage {
  position: relative;
  width: min(92vw, 1100px);
  max-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
}

.image-lightbox-stage img {
  max-width: 100%;
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.4);
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.image-lightbox-close,
.image-lightbox-nav {
  border: 0;
  color: #fff;
  background: rgba(18, 26, 42, 0.62);
  cursor: pointer;
}

.image-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 1.8rem;
  line-height: 1;
  z-index: 2;
}

.image-lightbox-nav {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 2rem;
  line-height: 1;
  display: grid;
  place-items: center;
}

.image-lightbox-nav.hidden {
  display: none !important;
}

.image-lightbox-counter {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.82rem;
  background: rgba(18, 26, 42, 0.62);
  letter-spacing: 0.02em;
}

.option .meta .service-preview {
  margin-top: 2px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #435971;
}

.option .price {
  font-weight: 800;
  font-family: "Space Grotesk", Manrope, sans-serif;
  white-space: nowrap;
}

/* Compact list variant (service selection) */
.option-list.compact {
  gap: 7px;
}

.option.compact {
  padding: 9px 14px;
}

.option.compact .meta strong {
  font-size: 0.95rem;
}

.option.compact .meta small {
  font-size: 0.8rem;
}

.category-title {
  font-weight: 800;
  margin: 16px 0 8px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.category-title:first-child {
  margin-top: 0;
}

/* Slots grid */
.slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
}

.slot {
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.slot small {
  display: block;
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.slot:hover {
  border-color: var(--cta);
}

.slot.selected {
  border-color: var(--cta);
  background: rgba(12, 78, 245, 0.08);
}

/* Summary */
.summary {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row span:first-child {
  color: var(--ink-soft);
}

.summary-row span:last-child {
  font-weight: 700;
  text-align: right;
}

/* Status messages */
.message {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 14px;
  font-weight: 600;
  font-size: 0.92rem;
}

.message.error {
  background: #fdecef;
  color: #b3173b;
  border: 1px solid #f6c2cf;
}

.message.info {
  background: #eaf2ff;
  color: #0b4abf;
  border: 1px solid #c6dbff;
}

.message.success {
  background: #e7f9f1;
  color: #0a8f6e;
  border: 1px solid #bfeeda;
}

.hidden {
  display: none !important;
}

/* ── Booking: logged-in banner ── */
.booking-loggedin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, rgba(10,184,255,0.08), rgba(139,92,246,0.08));
  border: 1px solid rgba(10,184,255,0.25);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.booking-loggedin-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--ink);
}

.booking-loggedin-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: "Space Grotesk", Manrope, sans-serif;
  letter-spacing: -0.01em;
}

/* ── Booking: login prompt ── */
.booking-login-prompt {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

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

.booking-login-prompt .link-btn {
  font-size: 0.9rem;
}

.booking-login-form {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.booking-login-field {
  margin-bottom: 0;
}

.booking-login-field input {
  margin-bottom: 0;
}

.booking-login-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.link-btn {
  background: none;
  border: none;
  color: var(--cta);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.link-btn:hover {
  color: var(--cta-hover);
}


.muted {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.loading {
  color: var(--ink-soft);
  font-style: italic;
  padding: 8px 0;
}

.code-input {
  letter-spacing: 0.5em;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--brand-c);
  color: #fff;
  font-size: 2rem;
  margin: 0 auto 16px;
}

.center {
  text-align: center;
}

@media (max-width: 560px) {
  .row {
    grid-template-columns: 1fr;
  }
  .steps {
    font-size: 0.8rem;
  }

  .image-lightbox {
    padding: 10px;
    gap: 6px;
  }

  .image-lightbox-stage {
    width: 100%;
    max-height: 82vh;
  }

  .image-lightbox-stage img {
    max-height: 82vh;
    border-radius: 10px;
  }

  .image-lightbox-nav {
    width: 38px;
    height: 38px;
    font-size: 1.7rem;
  }

  .image-lightbox-close {
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
  }
}
