@import url("../fonts/fonts.css");

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #18202f;
  --muted: #647086;
  --primary: #146c5f;
  --primary-dark: #0f5148;
  --border: #dce2ec;
  --shadow: 0 24px 70px rgba(25, 35, 55, 0.12);
}

html[data-theme-variant="barber"] {
  --bg: #f7f2ea;
  --surface: #fffaf2;
  --text: #152033;
  --muted: #716b64;
  --primary: #214b5f;
  --primary-dark: #152d42;
  --border: #e1d6c8;
  --shadow: 0 24px 70px rgba(35, 43, 56, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.app-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.start-card {
  width: min(100%, 760px);
  padding: 48px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 48px;
  line-height: 1.1;
}

.lead {
  margin: 18px auto 36px;
  max-width: 560px;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.45;
}

.button-grid {
  display: grid;
  gap: 18px;
}

.main-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 74px;
  padding: 18px 24px;
  color: #ffffff;
  background: var(--primary);
  border-radius: 18px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.main-button:hover,
.main-button:focus-visible {
  background: var(--primary-dark);
  box-shadow: 0 14px 28px rgba(20, 108, 95, 0.22);
  transform: translateY(-2px);
}

.main-button.secondary {
  width: min(100%, 340px);
  margin: 0 auto;
  color: var(--primary);
  background: #e7f2ef;
}

.main-button.secondary:hover,
.main-button.secondary:focus-visible {
  color: #ffffff;
  background: var(--primary);
}

@media (max-width: 720px) {
  .app-shell {
    padding: 24px 16px;
  }

  .start-card {
    padding: 32px 22px;
    border-radius: 20px;
  }

  h1 {
    font-size: 38px;
  }

  .lead {
    font-size: 19px;
  }

  .main-button {
    min-height: 68px;
    font-size: 19px;
  }
}

.tablet-page {
  min-height: 100vh;
  padding: 28px;
  background: #eef2f7;
}

.customer-panel {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 36px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.customer-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 30px;
}

.customer-header h1 {
  font-size: 42px;
}

.customer-header p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.brand-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #ffffff;
  background: #121722;
  border-radius: 50%;
  font-size: 30px;
}

.customer-brand-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: inherit;
  text-decoration: none;
}

.customer-form {
  display: grid;
  gap: 28px;
}

.customer-step {
  display: grid;
  gap: 16px;
}

.step-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-title span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: #1e63e9;
  border-radius: 50%;
  font-weight: 700;
}

.step-title h2 {
  margin: 0;
  font-size: 20px;
}

.name-row {
  display: grid;
  grid-template-columns: 1fr 82px;
  gap: 14px;
}

.name-row input {
  width: 100%;
  min-height: 66px;
  padding: 0 20px;
  color: var(--text);
  background: #f8fafc;
  border: 1px solid #cdd5e1;
  border-radius: 16px;
  font-size: 20px;
}

.name-row input:focus {
  outline: 3px solid rgba(30, 99, 233, 0.18);
  border-color: #1e63e9;
}

.camera-button {
  min-height: 66px;
  border: 1px solid #cdd5e1;
  border-radius: 16px;
  background: #f8fafc;
  font-size: 28px;
}

.privacy-note {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 16px;
}

.select-card {
  position: relative;
  min-height: 156px;
  padding: 16px;
  color: var(--text);
  background: #ffffff;
  border: 2px solid #d8deea;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(24, 32, 47, 0.08);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.select-card:hover,
.select-card:focus-visible,
.select-card.is-selected {
  border-color: #1e63e9;
  box-shadow: 0 16px 34px rgba(30, 99, 233, 0.18);
  outline: none;
  transform: translateY(-2px);
}

.select-card.is-selected {
  background: #f3f7ff;
}

/* Customer phone view: compact translator layout, aligned with the QR display language system. */
.customer-page .customer-language-switch {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  max-width: min(42vw, 260px);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.customer-page .customer-language-switch::-webkit-scrollbar {
  display: none;
}

.customer-page .customer-language-switch button {
  flex: 0 0 auto;
}

.customer-page .customer-language-kurdistan-flag {
  width: 1.35em;
  height: .9em;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

@media (max-width: 720px) {
  html,
  body {
    min-height: 100svh;
  }

  .customer-page {
    min-height: 100svh !important;
    padding: 6px !important;
    overflow-x: hidden !important;
  }

  .customer-page .customer-panel {
    width: 100% !important;
    min-height: calc(100svh - 12px) !important;
    padding: 8px 10px 10px !important;
    border-radius: 18px !important;
  }

  .customer-page .customer-header {
    grid-template-columns: 58px minmax(0, 1fr) auto !important;
    gap: 8px !important;
    margin: 0 0 6px !important;
    padding: 0 0 6px !important;
  }

  .customer-page .brand-icon.customer-brand-logo {
    width: 52px !important;
    height: 52px !important;
    flex-basis: 52px !important;
    border-radius: 12px !important;
  }

  .customer-page .customer-kicker {
    font-size: 9px !important;
    line-height: 1.05 !important;
  }

  .customer-page .customer-header h1 {
    display: block !important;
    margin: 2px 0 0 !important;
    font-size: clamp(18px, 6vw, 24px) !important;
    line-height: .96 !important;
    max-width: 160px !important;
  }

  .customer-page .customer-header p:not(.customer-kicker) {
    display: none !important;
  }

  .customer-page .customer-language-switch {
    max-width: 124px !important;
    gap: 5px !important;
    padding: 0 !important;
  }

  .customer-page .customer-language-switch button {
    min-width: 36px !important;
    width: 36px !important;
    min-height: 36px !important;
    height: 36px !important;
    border-radius: 12px !important;
    font-size: 18px !important;
  }

  .customer-page .customer-language-switch .customer-language-flag {
    font-size: 19px !important;
  }

  .customer-page .customer-form {
    gap: 6px !important;
  }

  .customer-page .customer-step {
    gap: 6px !important;
    padding: 9px 0 !important;
    border-radius: 14px !important;
  }

  .customer-page .customer-step:first-child {
    padding-top: 4px !important;
  }

  .customer-page .step-title {
    gap: 7px !important;
    margin-bottom: 0 !important;
  }

  .customer-page .step-title span {
    display: grid !important;
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    font-size: 13px !important;
  }

  .customer-page .step-title h2 {
    font-size: 17px !important;
    line-height: 1 !important;
  }

  .customer-page .employee-quick-actions {
    margin-left: auto !important;
  }

  .customer-page .employee-quick-button {
    min-height: 44px !important;
    padding: 0 17px !important;
    border-radius: 16px !important;
    font-size: 15px !important;
  }

  .customer-page .selection-grid,
  .customer-page .selection-grid.is-loop-ready {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .customer-page .customer-loop-track {
    display: contents !important;
  }

  .customer-page .customer-loop-btn {
    display: none !important;
  }

  .customer-page .select-card,
  .customer-page .customer-loop-track .select-card {
    width: 100% !important;
    min-width: 0 !important;
    flex-basis: auto !important;
    border-radius: 12px !important;
  }

  .customer-page .employee-card {
    min-height: 110px !important;
    padding: 8px 6px 7px !important;
    gap: 3px !important;
  }

  .customer-page .employee-card .avatar-circle {
    width: 56px !important;
    height: 56px !important;
  }

  .customer-page .employee-card .employee-queue-count {
    top: 5px !important;
    right: 5px !important;
    min-width: 24px !important;
    height: 24px !important;
    font-size: 12px !important;
    border-width: 2px !important;
  }

  .customer-page .employee-card strong {
    margin-top: 3px !important;
    font-size: 12px !important;
  }

  .customer-page .employee-card small {
    display: none !important;
  }

  .customer-page .employee-status-badge {
    min-height: 18px !important;
    padding: 0 8px !important;
    font-size: 10px !important;
  }

  .customer-page .hairstyle-card,
  .customer-page .customer-loop-track .hairstyle-card {
    min-height: 126px !important;
    padding: 7px !important;
    gap: 6px !important;
  }

  .customer-page .hairstyle-image {
    height: 66px !important;
    border-radius: 8px !important;
  }

  .customer-page .hairstyle-card strong {
    font-size: 11px !important;
    line-height: 1.08 !important;
  }

  .customer-page .custom-style-icon {
    min-height: 66px !important;
  }

  .customer-page .custom-style-image-copy strong {
    font-size: 12px !important;
  }

  .customer-page [aria-labelledby="step-customer"] .step-title,
  .customer-page .send-step .step-title,
  .customer-page .privacy-note {
    display: none !important;
  }

  .customer-page .name-row {
    grid-template-columns: minmax(0, 1fr) 58px !important;
    gap: 7px !important;
  }

  .customer-page .name-row input,
  .customer-page .camera-button {
    min-height: 42px !important;
    height: 42px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
  }

  .customer-page .name-row input {
    padding: 0 10px !important;
  }

  .customer-page .camera-button {
    width: 58px !important;
    font-size: 0 !important;
  }

  .customer-page .camera-button::before {
    content: "Foto";
    font-size: 12px;
    font-weight: 900;
  }

  .customer-page .send-step {
    padding-top: 5px !important;
  }

  .customer-page .send-order-button {
    min-height: 46px !important;
    border-radius: 12px !important;
    font-size: 17px !important;
  }

  .customer-page .form-message {
    min-height: 14px !important;
    font-size: 11px !important;
  }
}

/* Final logo framing: square source logos must never be shown as cropped banners. */
.admin-page .admin-header .admin-logo-preview,
.admin-page .admin-design-logo-preview {
  display: grid !important;
  place-items: center !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
}

.admin-page .admin-header .admin-logo-preview {
  width: 156px !important;
  max-width: 156px !important;
  height: 156px !important;
  min-height: 156px !important;
}

.admin-page .admin-design-logo-preview {
  width: 210px !important;
  max-width: 210px !important;
  height: 210px !important;
  min-height: 210px !important;
}

.admin-page .admin-header .admin-logo-preview img,
.admin-page .admin-design-logo-preview img {
  position: static !important;
  inset: auto !important;
  display: block !important;
  width: calc(100% - 10px) !important;
  height: calc(100% - 10px) !important;
  max-width: calc(100% - 10px) !important;
  max-height: calc(100% - 10px) !important;
  margin: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  border-radius: 0 !important;
}

/* Final admin black neutral override: reduce green panels, keep only actions accented. */
html[data-theme="black"] body.admin-page,
html[data-theme="black"] .admin-page {
  background: #030405 !important;
}

html[data-theme="black"] .admin-page .admin-dashboard,
html[data-theme="black"] .admin-page .admin-login,
html[data-theme="black"] .admin-page .admin-header,
html[data-theme="black"] .admin-page .admin-section-nav,
html[data-theme="black"] .admin-page .admin-panel,
html[data-theme="black"] .admin-page .admin-form,
html[data-theme="black"] .admin-page .admin-settings-panel,
html[data-theme="black"] .admin-page .admin-design-logo-control,
html[data-theme="black"] .admin-page .admin-language-control,
html[data-theme="black"] .admin-page .admin-theme-mode-control,
html[data-theme="black"] .admin-page .admin-booking-subpanel,
html[data-theme="black"] .admin-page .admin-booking-box,
html[data-theme="black"] .admin-page .admin-booking-service-row,
html[data-theme="black"] .admin-page .admin-banner-card,
html[data-theme="black"] .admin-page .admin-appointment-card,
html[data-theme="black"] .admin-page .admin-tablet-control,
html[data-theme="black"] .admin-page .admin-selected-card,
html[data-theme="black"] .admin-page .admin-hairstyle-card {
  background: #080a0c !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  box-shadow: none !important;
}

html[data-theme="black"] .admin-page .admin-section-nav,
html[data-theme="black"] .admin-page .admin-language-control,
html[data-theme="black"] .admin-page .admin-theme-mode-control,
html[data-theme="black"] .admin-page .admin-design-logo-control,
html[data-theme="black"] .admin-page .admin-booking-box,
html[data-theme="black"] .admin-page .admin-booking-service-row,
html[data-theme="black"] .admin-page .admin-banner-card {
  background: #0d1013 !important;
}

html[data-theme="black"] .admin-page input,
html[data-theme="black"] .admin-page textarea,
html[data-theme="black"] .admin-page select,
html[data-theme="black"] .admin-page .admin-banner-preview,
html[data-theme="black"] .admin-page .admin-booking-barber-check {
  background: #050607 !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #f5f7fb !important;
}

html[data-theme="black"] .admin-page .admin-section-tab,
html[data-theme="black"] .admin-page .admin-secondary-button,
html[data-theme="black"] .admin-page .admin-logo-button,
html[data-theme="black"] .admin-page .admin-theme-mode-button {
  background: #101316 !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #f5f7fb !important;
}

html[data-theme="black"] .admin-page .admin-section-tab.is-active,
html[data-theme="black"] .admin-page .admin-primary-button,
html[data-theme="black"] .admin-page .admin-theme-mode-button.is-active,
html[data-theme="black"] .admin-page .admin-booking-subtab.is-active {
  background: #0f8f78 !important;
  border-color: #16a085 !important;
  color: #ffffff !important;
}

html[data-theme="black"] .admin-page h1,
html[data-theme="black"] .admin-page h2,
html[data-theme="black"] .admin-page h3,
html[data-theme="black"] .admin-page h4,
html[data-theme="black"] .admin-page strong,
html[data-theme="black"] .admin-page label {
  color: #9ca5af !important;
}

html[data-theme="black"] .admin-page p,
html[data-theme="black"] .admin-page span,
html[data-theme="black"] .admin-page small,
html[data-theme="black"] .admin-page .admin-panel-note,
html[data-theme="black"] .admin-page .admin-booking-help {
  color: #6f7882 !important;
}

/* Final visible field/button text tone for black admin mode. */
html[data-theme="black"] .admin-page input,
html[data-theme="black"] .admin-page textarea,
html[data-theme="black"] .admin-page select,
html[data-theme="black"] .admin-page option,
html[data-theme="black"] .admin-page .admin-section-tab,
html[data-theme="black"] .admin-page .admin-secondary-button,
html[data-theme="black"] .admin-page .admin-logo-button,
html[data-theme="black"] .admin-page .admin-theme-mode-button,
html[data-theme="black"] .admin-page .admin-booking-subtab,
html[data-theme="black"] .admin-page .admin-booking-barber-check {
  color: #9aa3ac !important;
}

html[data-theme="black"] .admin-page input::placeholder,
html[data-theme="black"] .admin-page textarea::placeholder {
  color: #65707a !important;
}

html[data-theme="black"] .admin-page .admin-section-tab.is-active,
html[data-theme="black"] .admin-page .admin-primary-button,
html[data-theme="black"] .admin-page .admin-theme-mode-button.is-active,
html[data-theme="black"] .admin-page .admin-booking-subtab.is-active {
  color: #d4d9de !important;
}

/* Final black-mode contrast for inactive appointment subtabs. */
html[data-theme="black"] .admin-page .admin-booking-subtab:not(.is-active) {
  background: #34383d !important;
  border-color: #4a5056 !important;
  color: #c3c9cf !important;
}

html[data-theme="black"] .admin-page .admin-booking-subtab:not(.is-active):hover,
html[data-theme="black"] .admin-page .admin-booking-subtab:not(.is-active):focus-visible {
  background: #3d4248 !important;
  color: #d7dce0 !important;
}

/* Admin black theme neutral override: reduce green panels, keep only actions accented. */
html[data-theme="black"] body.admin-page,
html[data-theme="black"] .admin-page {
  background: #030405 !important;
}

html[data-theme="black"] .admin-page .admin-dashboard,
html[data-theme="black"] .admin-page .admin-login,
html[data-theme="black"] .admin-page .admin-header,
html[data-theme="black"] .admin-page .admin-section-nav,
html[data-theme="black"] .admin-page .admin-panel,
html[data-theme="black"] .admin-page .admin-form,
html[data-theme="black"] .admin-page .admin-settings-panel,
html[data-theme="black"] .admin-page .admin-design-logo-control,
html[data-theme="black"] .admin-page .admin-language-control,
html[data-theme="black"] .admin-page .admin-theme-mode-control,
html[data-theme="black"] .admin-page .admin-booking-subpanel,
html[data-theme="black"] .admin-page .admin-booking-box,
html[data-theme="black"] .admin-page .admin-booking-service-row,
html[data-theme="black"] .admin-page .admin-banner-card,
html[data-theme="black"] .admin-page .admin-appointment-card,
html[data-theme="black"] .admin-page .admin-tablet-control,
html[data-theme="black"] .admin-page .admin-selected-card,
html[data-theme="black"] .admin-page .admin-hairstyle-card {
  background: #080a0c !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  box-shadow: none !important;
}

html[data-theme="black"] .admin-page .admin-section-nav,
html[data-theme="black"] .admin-page .admin-language-control,
html[data-theme="black"] .admin-page .admin-theme-mode-control,
html[data-theme="black"] .admin-page .admin-design-logo-control,
html[data-theme="black"] .admin-page .admin-booking-box,
html[data-theme="black"] .admin-page .admin-booking-service-row,
html[data-theme="black"] .admin-page .admin-banner-card {
  background: #0d1013 !important;
}

html[data-theme="black"] .admin-page input,
html[data-theme="black"] .admin-page textarea,
html[data-theme="black"] .admin-page select,
html[data-theme="black"] .admin-page .admin-banner-preview,
html[data-theme="black"] .admin-page .admin-booking-barber-check {
  background: #050607 !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #f5f7fb !important;
}

html[data-theme="black"] .admin-page .admin-section-tab,
html[data-theme="black"] .admin-page .admin-secondary-button,
html[data-theme="black"] .admin-page .admin-logo-button,
html[data-theme="black"] .admin-page .admin-theme-mode-button {
  background: #101316 !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #f5f7fb !important;
}

html[data-theme="black"] .admin-page .admin-section-tab.is-active,
html[data-theme="black"] .admin-page .admin-primary-button,
html[data-theme="black"] .admin-page .admin-theme-mode-button.is-active,
html[data-theme="black"] .admin-page .admin-booking-subtab.is-active {
  background: #0f8f78 !important;
  border-color: #16a085 !important;
  color: #ffffff !important;
}

html[data-theme="black"] .admin-page h1,
html[data-theme="black"] .admin-page h2,
html[data-theme="black"] .admin-page h3,
html[data-theme="black"] .admin-page h4,
html[data-theme="black"] .admin-page strong,
html[data-theme="black"] .admin-page label {
  color: #9ca5af !important;
}

html[data-theme="black"] .admin-page p,
html[data-theme="black"] .admin-page span,
html[data-theme="black"] .admin-page small,
html[data-theme="black"] .admin-page .admin-panel-note,
html[data-theme="black"] .admin-page .admin-booking-help {
  color: #6f7882 !important;
}

.admin-page .admin-design-logo-control.admin-design-logo-compact {
  grid-template-columns: minmax(0, 1fr) 170px !important;
  grid-template-rows: auto auto !important;
  align-items: center !important;
}

.admin-page .admin-design-logo-compact > div:first-child {
  grid-column: 1 !important;
  grid-row: 1 !important;
  align-self: end !important;
}

.admin-page .admin-design-logo-compact .admin-design-logo-preview {
  grid-column: 2 !important;
  grid-row: 1 / span 2 !important;
  width: 170px !important;
  max-width: 170px !important;
  height: 170px !important;
  min-height: 170px !important;
}

.admin-page .admin-design-logo-compact .admin-design-logo-actions {
  grid-column: 1 !important;
  grid-row: 2 !important;
  justify-content: flex-start !important;
  align-content: start !important;
  align-self: start !important;
  margin-top: 8px !important;
}

/* Absolute final customer mobile browser fixes v7: keep submit button at the phone viewport bottom. */
@media (max-width: 720px) {
  .customer-page .customer-form,
  body.customer-native-phone-view .customer-page .customer-form {
    padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .customer-page .send-step,
  body.customer-native-phone-view .customer-page .send-step {
    position: fixed !important;
    left: 8px !important;
    right: 8px !important;
    bottom: env(safe-area-inset-bottom, 0px) !important;
    z-index: 90 !important;
    display: block !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 8px 0 !important;
    border: 0 !important;
    background: linear-gradient(180deg, rgba(0, 8, 6, 0), rgba(0, 8, 6, .92) 28%, rgba(0, 8, 6, .98)) !important;
    box-shadow: none !important;
  }

  .customer-page .send-order-button,
  body.customer-native-phone-view .customer-page .send-order-button {
    width: 100% !important;
    min-height: 56px !important;
    height: 56px !important;
    margin: 0 !important;
  }

  .customer-page .form-message,
  .customer-page .form-message:empty,
  body.customer-native-phone-view .customer-page .form-message,
  body.customer-native-phone-view .customer-page .form-message:empty {
    display: none !important;
    min-height: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* Absolute final customer mobile fixes v10: keep carousel lazy loading and swipe usable. */
@media (max-width: 720px), (pointer: coarse) {
  .customer-page .customer-form,
  body.customer-native-phone-view .customer-page .customer-form {
    padding-bottom: 0 !important;
    overflow: visible !important;
  }

  .customer-page .send-step,
  body.customer-native-phone-view .customer-page .send-step {
    position: static !important;
    inset: auto !important;
    z-index: auto !important;
    display: block !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 7px 0 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .customer-page .send-order-button,
  body.customer-native-phone-view .customer-page .send-order-button {
    width: 100% !important;
    min-height: 56px !important;
    height: 56px !important;
    margin: 0 !important;
  }

  .customer-page .employee-card.is-selected::after,
  body.customer-native-phone-view .customer-page .employee-card.is-selected::after {
    top: 86px !important;
    left: 8px !important;
    right: auto !important;
    width: 24px !important;
    height: 24px !important;
    font-size: 15px !important;
    z-index: 4 !important;
  }

  .customer-page .employee-card .employee-queue-count,
  body.customer-native-phone-view .customer-page .employee-card .employee-queue-count {
    z-index: 3 !important;
  }

}

@media (max-width: 390px), (max-height: 760px) {
  .customer-page .customer-panel {
    padding: 6px 8px 8px !important;
  }

  .customer-page .customer-header {
    grid-template-columns: 50px minmax(0, 1fr) auto !important;
    gap: 7px !important;
    padding-bottom: 5px !important;
  }

  .customer-page .brand-icon.customer-brand-logo {
    width: 46px !important;
    height: 46px !important;
  }

  .customer-page .customer-header h1 {
    font-size: 18px !important;
  }

  .customer-page .customer-language-switch {
    max-width: 112px !important;
    gap: 4px !important;
  }

  .customer-page .customer-language-switch button {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    border-radius: 10px !important;
  }

  .customer-page .customer-step {
    padding: 7px 0 !important;
  }

  .customer-page .step-title span {
    width: 22px !important;
    min-width: 22px !important;
    height: 22px !important;
    font-size: 12px !important;
  }

  .customer-page .step-title h2 {
    font-size: 15px !important;
  }

  .customer-page .employee-quick-button {
    min-height: 38px !important;
    padding: 0 14px !important;
    font-size: 14px !important;
  }

  .customer-page .employee-card {
    min-height: 96px !important;
  }

  .customer-page .employee-card .avatar-circle {
    width: 48px !important;
    height: 48px !important;
  }

  .customer-page .hairstyle-card,
  .customer-page .customer-loop-track .hairstyle-card {
    min-height: 112px !important;
  }

  .customer-page .hairstyle-image,
  .customer-page .custom-style-icon {
    height: 56px !important;
    min-height: 56px !important;
  }

  .customer-page .name-row input,
  .customer-page .camera-button {
    min-height: 38px !important;
    height: 38px !important;
  }

  .customer-page .send-order-button {
    min-height: 42px !important;
    font-size: 16px !important;
  }
}

/* Absolute last customer mobile fixes: remove dead space, reveal images, keep flags swipeable. */
@media (max-width: 720px) {
  .customer-page {
    align-items: flex-start !important;
    min-height: 0 !important;
  }

  .customer-page .customer-panel {
    min-height: 0 !important;
    padding-bottom: 8px !important;
  }

  .customer-page .customer-language-switch {
    justify-content: flex-start !important;
    max-width: 132px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x proximity !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .customer-page .customer-language-switch button {
    scroll-snap-align: center !important;
  }

  .customer-page .customer-language-switch button.is-disabled {
    opacity: .5 !important;
    filter: grayscale(.15) !important;
  }

  .customer-page .hairstyle-card,
  .customer-page .customer-loop-track .hairstyle-card {
    min-height: 152px !important;
  }

  .customer-page .hairstyle-image,
  .customer-page .custom-style-icon {
    height: 94px !important;
    min-height: 94px !important;
    background: rgba(255, 255, 255, .92) !important;
  }

  .customer-page .hairstyle-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
  }

  .customer-page .custom-style-icon svg {
    max-height: 92% !important;
  }

  .customer-page .send-step {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
}

@media (max-width: 390px), (max-height: 760px) {
  .customer-page .hairstyle-card,
  .customer-page .customer-loop-track .hairstyle-card {
    min-height: 136px !important;
  }

  .customer-page .hairstyle-image,
  .customer-page .custom-style-icon {
    height: 80px !important;
    min-height: 80px !important;
  }
}

/* Absolute last customer mobile fixes v3: collapse empty area below submit button. */
@media (max-width: 720px) {
  html,
  body,
  .tablet-page.customer-page,
  .customer-page .customer-panel,
  .customer-page .customer-form,
  .customer-page .send-step {
    min-height: 0 !important;
  }

  .tablet-page.customer-page {
    height: auto !important;
    padding-bottom: 0 !important;
  }

  .customer-page .customer-panel {
    height: auto !important;
    padding-bottom: 6px !important;
  }

  .customer-page .customer-form {
    gap: 7px !important;
    padding-bottom: 0 !important;
  }

  .customer-page .send-step {
    margin-bottom: 0 !important;
    padding: 7px 0 0 !important;
  }

  .customer-page .form-message:empty {
    display: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* Final mobile defect fixes: remove dead space, show images, make language rail swipeable. */
@media (max-width: 720px) {
  .customer-page {
    align-items: flex-start !important;
    min-height: 0 !important;
  }

  .customer-page .customer-panel {
    min-height: 0 !important;
    padding-bottom: 8px !important;
  }

  .customer-page .customer-language-switch {
    justify-content: flex-start !important;
    max-width: 132px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x proximity !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .customer-page .customer-language-switch button {
    scroll-snap-align: center !important;
  }

  .customer-page .customer-language-switch button.is-disabled {
    opacity: .5 !important;
    filter: grayscale(.15) !important;
  }

  .customer-page .hairstyle-card,
  .customer-page .customer-loop-track .hairstyle-card {
    min-height: 152px !important;
  }

  .customer-page .hairstyle-image,
  .customer-page .custom-style-icon {
    height: 94px !important;
    min-height: 94px !important;
    background: rgba(255, 255, 255, .92) !important;
  }

  .customer-page .hairstyle-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
  }

  .customer-page .custom-style-icon svg {
    max-height: 92% !important;
  }

  .customer-page .send-step {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
}

@media (max-width: 390px), (max-height: 760px) {
  .customer-page .hairstyle-card,
  .customer-page .customer-loop-track .hairstyle-card {
    min-height: 136px !important;
  }

  .customer-page .hairstyle-image,
  .customer-page .custom-style-icon {
    height: 80px !important;
    min-height: 80px !important;
  }
}

/* Final mobile carousel correction: keep many employees/styles in one compact row. */
@media (max-width: 720px) {
  .customer-page .selection-grid.is-loop-ready {
    display: block !important;
    margin: 0 -10px !important;
    padding: 0 10px 4px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
  }

  .customer-page .customer-loop-track {
    display: flex !important;
    align-items: stretch !important;
    gap: 7px !important;
  }

  .customer-page .customer-loop-track .select-card {
    flex: 0 0 calc((100vw - 34px) / 2) !important;
    scroll-snap-align: start !important;
  }

  .customer-page .customer-loop-track .hairstyle-card {
    flex-basis: calc((100vw - 34px) / 2) !important;
  }
}

/* Final mobile carousel correction: keep many employees/styles in one compact row. */
@media (max-width: 720px) {
  .customer-page .selection-grid.is-loop-ready {
    display: block !important;
    margin: 0 -10px !important;
    padding: 0 10px 4px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
  }

  .customer-page .customer-loop-track {
    display: flex !important;
    align-items: stretch !important;
    gap: 7px !important;
  }

  .customer-page .customer-loop-track .select-card {
    flex: 0 0 calc((100vw - 34px) / 2) !important;
    scroll-snap-align: start !important;
  }

  .customer-page .customer-loop-track .hairstyle-card {
    flex-basis: calc((100vw - 34px) / 2) !important;
  }
}

.customer-page .select-card.is-selected::after {
  content: "\2713";
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #073f33;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  background: #c9ffe9;
  border: 2px solid #ffffff;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
  pointer-events: none;
}

.qr-display-page {
  min-height: 100vh;
  background: #f7f2e8;
  color: #1e1a16;
}

.qr-display-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.qr-display-panel {
  width: min(980px, 100%);
  text-align: center;
  background: #fffaf1;
  border: 1px solid rgba(30, 26, 22, 0.14);
  border-radius: 8px;
  padding: clamp(24px, 5vw, 48px);
  box-shadow: 0 24px 70px rgba(30, 26, 22, 0.16);
}

.qr-display-copy {
  min-width: 0;
}

.qr-display-logo {
  width: 96px;
  height: 96px;
  display: block;
  object-fit: contain;
  margin: 0 auto 16px;
  border-radius: 8px;
}

.qr-display-panel h1 {
  margin: 8px 0 8px;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: 0;
}

.qr-display-subtitle {
  margin: 0 auto 24px;
  color: #3f382f;
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  font-weight: 700;
}

.qr-display-panel p:not(.customer-kicker):not(.qr-display-subtitle) {
  margin: 0 auto 28px;
  max-width: 560px;
  color: #5f564c;
  font-size: 1.1rem;
}

.qr-display-code {
  width: min(520px, 82vw, 62vh);
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 16px;
  background: #ffffff;
  border: 1px solid rgba(30, 26, 22, 0.16);
  border-radius: 8px;
}

.qr-display-code img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.qr-display-meta {
  display: grid;
  gap: 6px;
  margin-top: 22px;
  color: #3f382f;
}

.qr-display-meta span {
  color: #71675c;
}

@media (orientation: landscape) and (min-width: 860px) {
  .qr-display-shell {
    padding: 28px;
  }

  .qr-display-panel {
    display: grid;
    grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1fr);
    align-items: center;
    gap: clamp(28px, 5vw, 56px);
    text-align: left;
    padding: clamp(28px, 4vw, 52px);
  }

  .qr-display-logo {
    margin-left: 0;
    margin-right: 0;
  }

  .qr-display-panel h1 {
    max-width: 420px;
  }

  .qr-display-subtitle {
    margin-left: 0;
    margin-right: 0;
  }

  .qr-display-code {
    width: min(520px, 44vw, 76vh);
    margin: 0;
    justify-self: end;
  }
}

@media (max-height: 620px) and (orientation: landscape) {
  .qr-display-shell {
    padding: 18px;
  }

  .qr-display-panel {
    padding: 22px;
    gap: 24px;
  }

  .qr-display-logo {
    width: 72px;
    height: 72px;
    margin-bottom: 10px;
  }

  .qr-display-panel h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
  }

  .qr-display-subtitle {
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  }

  .qr-display-code {
    width: min(440px, 43vw, 78vh);
    padding: 12px;
  }
}

.select-card[aria-disabled="true"] {
  cursor: not-allowed;
}

.select-card[aria-disabled="true"]:hover,
.select-card[aria-disabled="true"]:focus-visible {
  transform: none;
}

.employee-card {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
}

.employee-card strong,
.hairstyle-card strong {
  font-size: 18px;
}

.employee-card small {
  color: var(--muted);
  font-size: 14px;
}

.employee-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 10px;
  color: #0f7b57;
  background: #dcfce7;
  border: 1px solid #86efac;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.employee-queue-count {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  min-width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  color: #12100d;
  background: linear-gradient(135deg, #ffd987, var(--sarko-gold, #ffc75f));
  border: 2px solid #ffffff;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(15, 46, 38, 0.18);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.employee-card.is-paused,
.setup-employee-card.is-paused {
  background: #fff7ed;
  border-color: #fdba74;
}

.employee-card.is-paused .avatar-circle,
.setup-employee-card.is-paused .setup-photo-placeholder {
  filter: grayscale(.78);
  opacity: .72;
}

.employee-card.is-paused .employee-status-badge,
.setup-employee-card.is-paused .employee-status-badge {
  color: #991b1b;
  background: #fee2e2;
  border-color: #fecaca;
}

.avatar-circle {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #ffffff;
  background: #162033;
  border-radius: 50%;
  font-size: 24px;
  font-weight: 700;
}

.avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hairstyle-card {
  display: grid;
  gap: 10px;
  text-align: center;
}

.hairstyle-image {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1.35;
  overflow: hidden;
  background: #f1f4f9;
  border-radius: 14px;
}

.hairstyle-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-placeholder,
.loading-text {
  color: var(--muted);
  font-size: 16px;
}

.send-step {
  padding-top: 6px;
}

.send-order-button {
  min-height: 72px;
  width: 100%;
  border: 0;
  border-radius: 18px;
  color: #ffffff;
  background: #1e63e9;
  box-shadow: 0 16px 32px rgba(30, 99, 233, 0.26);
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
}

.send-order-button:disabled {
  cursor: not-allowed;
  background: #9aa8bd;
  box-shadow: none;
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 700;
}

.form-message.success {
  color: #0f7b57;
}

.form-message.error {
  color: #b42318;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 820px) {
  .tablet-page {
    padding: 18px;
  }

  .customer-panel {
    padding: 24px;
    border-radius: 22px;
  }

  .customer-header h1 {
    font-size: 34px;
  }

  .selection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .customer-header {
    align-items: flex-start;
  }

  .brand-icon {
    width: 52px;
    height: 52px;
    font-size: 25px;
  }

  .name-row {
    grid-template-columns: 1fr;
  }

  .selection-grid {
    grid-template-columns: 1fr;
  }
}

.is-hidden {
  display: none !important;
}

.barber-page {
  min-height: 100vh;
  color: #f4f7fb;
  background: #080d13;
}

.barber-setup {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 22px;
  padding: 28px;
}

.barber-setup-logo {
  width: min(240px, 34vw);
  max-height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 16px 28px rgba(15, 46, 38, 0.12));
}

.setup-panel {
  width: min(100%, 860px);
  padding: 38px;
  background: #111821;
  border: 1px solid #263241;
  border-radius: 26px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

.barber-kicker {
  margin: 0 0 10px;
  color: #73a7ff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.setup-panel h1 {
  margin: 0;
  color: #ffffff;
  font-size: 42px;
}

.setup-panel p {
  color: #98a6b8;
  font-size: 18px;
}

.setup-employee-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 176px;
  grid-template-rows: repeat(2, minmax(168px, auto));
  gap: 16px;
  margin-top: 28px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  padding: 2px 4px 12px;
}

.setup-employee-grid::-webkit-scrollbar {
  height: 8px;
}

.setup-employee-grid::-webkit-scrollbar-track {
  background: rgba(15, 143, 120, 0.08);
  border-radius: 999px;
}

.setup-employee-grid::-webkit-scrollbar-thumb {
  background: rgba(15, 143, 120, 0.34);
  border-radius: 999px;
}

.setup-employee-card {
  position: relative;
  width: 176px;
  min-height: 168px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  color: #f6f8fb;
  background: #161f2b;
  border: 1px solid #2b394b;
  border-radius: 18px;
  cursor: pointer;
  scroll-snap-align: start;
}

.setup-order-count {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  min-width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: #1f6df2;
  border: 2px solid #151d28;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

.setup-photo-placeholder {
  position: relative;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
  border: 1px solid #2b394b;
  border-radius: 50%;
  font-size: 28px;
  font-weight: 900;
}

.setup-photo-placeholder img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  color: transparent;
  font-size: 0;
}

.setup-photo-placeholder svg {
  width: 52px;
  height: 52px;
  fill: none;
  stroke: rgba(180, 190, 205, 0.42);
  stroke-width: 5;
  stroke-linecap: round;
}

.setup-photo-placeholder em {
  margin-bottom: 0;
  color: rgba(180, 190, 205, 0.56);
  font-size: 7pt;
  font-style: normal;
  font-weight: 800;
}

.transfer-employee span {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: #2269f0;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 800;
}

.setup-employee-card strong,
.transfer-employee strong {
  font-size: 19px;
}

.setup-employee-card small,
.transfer-employee small {
  color: #96a4b6;
  font-size: 14px;
}

.barber-dashboard {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
}

.queue-panel {
  min-height: 100vh;
  padding: 28px 20px;
  background: #0d131a;
  border-right: 1px solid #202a36;
}

.queue-header {
  position: relative;
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.idle-gallery-toggle {
  position: absolute;
  top: 8px;
  right: 0;
  min-height: 32px;
  min-width: 104px;
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: center;
  gap: 8px;
  padding: 5px 8px 5px 10px;
  color: #a5b1c2;
  background: rgba(7, 12, 18, 0.72);
  border: 1px solid rgba(64, 81, 103, 0.82);
  border-radius: 999px;
  cursor: pointer;
}

.idle-gallery-toggle-label {
  overflow: hidden;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.idle-gallery-toggle-track {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.24);
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.idle-gallery-toggle-thumb {
  position: absolute;
  top: 50%;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #94a3b8;
  transform: translateY(-50%);
  transition: transform 180ms ease, background 180ms ease;
}

.idle-gallery-toggle.is-active {
  color: #ffffff;
  border-color: rgba(15, 143, 120, 0.62);
}

.idle-gallery-toggle.is-active .idle-gallery-toggle-track {
  background: rgba(15, 143, 120, 0.28);
  border-color: rgba(45, 212, 191, 0.38);
}

.idle-gallery-toggle.is-active .idle-gallery-toggle-thumb {
  background: #11a890;
  transform: translate(16px, -50%);
}

.admin-tablet-gallery-source {
  margin-bottom: 14px;
}

.admin-tablet-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.admin-tablet-gallery-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #cfe6df;
  border-radius: 8px;
}

.admin-tablet-gallery-preview {
  position: relative;
  min-height: 86px;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #6b7a90;
  font-weight: 900;
  background: #eef8f5;
  border: 1px solid #cfe6df;
  border-radius: 7px;
}

.admin-tablet-gallery-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.barber-profile {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  column-gap: 12px;
}

.barber-profile .barber-kicker,
.barber-profile h1 {
  grid-column: 2;
}

.barber-profile-avatar {
  grid-row: 1 / span 2;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #ffffff;
  background: #172232;
  border: 1px solid #2d3b4e;
  border-radius: 16px;
  font-size: 20px;
  font-weight: 900;
}

.barber-profile-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  color: transparent;
  font-size: 0;
}

.queue-header h1 {
  color: #ffffff;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.05;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.queue-header-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: stretch;
}

.barber-status-button {
  min-height: 42px;
  min-width: 112px;
  padding: 0 14px;
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .22);
}

.barber-status-button.is-active {
  background: #15975e;
}

.barber-status-button.is-inactive {
  background: #dc2626;
}

.barber-status-switch {
  min-height: 54px;
  width: 100%;
  min-width: 0;
  display: inline-grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  color: #ffffff;
  background: #111827;
  border: 1px solid #283548;
  border-radius: 18px;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 16px 32px rgba(0, 0, 0, .22);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.queue-header-actions .dark-ghost-button {
  width: 100%;
  min-width: 0;
  padding-inline: 10px;
}

.barber-status-switch:hover,
.barber-status-switch:focus-visible {
  border-color: #36c99c;
  outline: none;
  transform: translateY(-1px);
}

.barber-status-switch:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
}

.barber-status-switch-track {
  width: 54px;
  height: 30px;
  display: block;
  padding: 3px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  transition: background .18s ease, border-color .18s ease;
}

.barber-status-switch-thumb {
  width: 22px;
  height: 22px;
  display: block;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .24);
  transition: transform .18s ease;
}

.barber-status-switch-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.barber-status-switch-text strong,
.barber-status-switch-text small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.barber-status-switch-text strong {
  font-size: 14px;
  font-weight: 900;
  line-height: 1.1;
}

.barber-status-switch-text small {
  color: rgba(255, 255, 255, .68);
  font-size: 12px;
  font-weight: 700;
}

.barber-status-switch.is-active {
  background: linear-gradient(135deg, #0f8f78, #12a06e);
  border-color: rgba(90, 223, 185, .52);
}

.barber-status-switch.is-active .barber-status-switch-track {
  background: rgba(255, 255, 255, .24);
  border-color: rgba(255, 255, 255, .26);
}

.barber-status-switch.is-active .barber-status-switch-thumb {
  transform: translateX(24px);
}

.barber-status-switch.is-inactive {
  background: linear-gradient(135deg, #991b1b, #dc2626);
  border-color: rgba(254, 202, 202, .48);
}

.dark-ghost-button {
  min-height: 44px;
  padding: 0 14px;
  color: #d8e1ee;
  background: #151d28;
  border: 1px solid #2b394b;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}

.queue-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  color: #8492a6;
  font-size: 13px;
}

/* Barber queue meta v56: hide count and refresh timestamp from the tablet view. */
.barber-page .queue-meta {
  display: none !important;
}

.order-list {
  display: grid;
  gap: 12px;
}

.queue-item {
  width: 100%;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  text-align: left;
  color: #f4f7fb;
  background: #151c25;
  border: 1px solid #202b38;
  border-radius: 16px;
  cursor: pointer;
}

.queue-item.is-selected,
.queue-item:hover,
.queue-item:focus-visible {
  background: #17345f;
  border-color: #2f7af8;
  outline: none;
}

.queue-image {
  width: 62px;
  height: 62px;
  overflow: hidden;
  background: #222c38;
  border-radius: 14px;
}

.queue-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.queue-item strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
}

.queue-item small,
.queue-item em {
  display: block;
  color: #a2afc0;
  font-size: 13px;
  font-style: normal;
}

.queue-item b {
  color: #7fb0ff;
  font-size: 12px;
  text-transform: uppercase;
}

.queue-item.is-booking-order {
  border-color: rgba(15, 143, 120, 0.42);
  background: rgba(15, 143, 120, 0.1);
}

.queue-item.is-booking-order b {
  color: #0f8f78;
}

.queue-item > div {
  min-width: 0;
}

.order-detail-panel {
  min-height: 100vh;
  padding: 26px 32px;
  background: #0a1017;
  overflow: hidden;
}

.detail-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 10px;
}

.detail-topbar > div {
  min-width: 0;
}

.barber-dashboard-logo {
  width: 150px;
  height: 86px;
  flex: 0 0 auto;
  object-fit: contain;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--sarko-line, #dde8e3);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(15, 46, 38, 0.10);
}

.status-pill {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 7px 12px;
  color: #82b4ff;
  background: #162238;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.detail-topbar h2 {
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #ffffff;
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.05;
}

.detail-topbar p:last-child {
  margin: 6px 0 0;
  color: #a5b1c2;
  font-size: clamp(17px, 1.7vw, 20px);
}

.empty-detail {
  min-height: 62vh;
  display: grid;
  place-items: center;
  color: #6f7d90;
  background: #101721;
  border: 1px dashed #2b394b;
  border-radius: 22px;
  font-size: 22px;
}

.idle-gallery {
  position: relative;
  min-height: calc(100vh - 124px);
  height: calc(100vh - 124px);
  overflow: hidden;
  background: #101721;
  border: 1px solid #2b394b;
  border-radius: 22px;
  touch-action: pan-y;
}

.idle-gallery.is-hidden {
  display: none;
}

.idle-gallery-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 2000ms ease, transform 2000ms ease;
}

.idle-gallery-image.is-active {
  z-index: 2;
  opacity: 1;
  transform: scale(1.02);
}

.idle-gallery-image.is-entering {
  z-index: 3;
  opacity: 1;
}

.idle-gallery-image.is-leaving {
  z-index: 2;
  opacity: 0;
}

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

.main-style-image {
  --style-image-ratio: 1.3333;
  --style-image-height: clamp(380px, 56vh, 580px);
  position: relative;
  width: min(100%, calc(var(--style-image-height) * var(--style-image-ratio)));
  height: var(--style-image-height);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #151d28;
  border: 1px solid #2a3646;
  border-radius: 22px;
  justify-self: center;
  touch-action: pan-y;
}

.main-style-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#drawingCanvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  touch-action: none;
  pointer-events: none;
}

.drawing-toolbar {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 4;
  width: auto;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 10px;
}

.drawing-tool-button {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #ffffff;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.drawing-tool-button svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.drawing-tool-button img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.symbol-tool-list {
  display: contents;
}

.pen-tool-wrap,
.shape-tool-wrap {
  position: relative;
}

.stroke-size-panel {
  position: absolute;
  top: 0;
  right: 64px;
  width: 250px;
  display: grid;
  gap: 12px;
  padding: 14px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
}

.stroke-size-panel.is-hidden {
  display: none;
}

.stroke-size-panel strong {
  color: #ffffff;
  font-size: 14px;
}

.stroke-preview-line {
  height: 28px;
  display: block;
  border-bottom: var(--stroke-preview-size, 5px) solid #ffffff;
  border-radius: 999px;
}

.stroke-size-panel input[type="range"] {
  width: 100%;
  accent-color: #ffffff;
}

.shape-tool-menu {
  position: absolute;
  top: 0;
  right: 64px;
  display: grid;
  grid-template-columns: repeat(2, 44px);
  gap: 8px;
  padding: 8px;
  background: rgba(17, 24, 39, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
}

.shape-tool-menu.is-hidden {
  display: none;
}

.drawing-tool-button.mini {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.drawing-tool-button.mini svg {
  width: 22px;
  height: 22px;
}

.drawing-tool-button:hover,
.drawing-tool-button:focus-visible {
  border-color: rgba(255, 180, 87, 0.72);
  outline: none;
  transform: translateY(-1px);
}

.drawing-tool-button.is-active {
  color: #12100d;
  background: linear-gradient(145deg, #ffd795, #e59a3d);
  border-color: rgba(255, 218, 158, 0.9);
}

.drawing-tool-button.danger {
  color: #ffb5ad;
}

#drawingCanvas.is-drawing-active {
  pointer-events: auto;
}

#mainImagePlaceholder {
  color: #8290a3;
  font-size: 20px;
}

.thumb-strip {
  width: min(100%, 600px);
  justify-self: center;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.thumb-button {
  display: grid;
  gap: 4px;
  padding: 5px;
  color: #e9eef6;
  background: #141c26;
  border: 2px solid #263241;
  border-radius: 14px;
  cursor: pointer;
}

.thumb-button.is-selected,
.thumb-button:hover,
.thumb-button:focus-visible {
  border-color: #2f7af8;
  outline: none;
}

.thumb-button span {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #7f8da0;
  background: #1e2835;
  border-radius: 10px;
  font-size: 13px;
}

.thumb-button img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thumb-button strong {
  font-size: 14px;
}

.thumb-strip .thumb-button strong {
  font-size: 13px;
}

.detail-actions {
  width: min(100%, 760px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.barber-action-button {
  min-height: 56px;
  border: 0;
  border-radius: 16px;
  color: #ffffff;
  font-family: inherit;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
  cursor: pointer;
}

.barber-action-button.transfer {
  background: #1f6df2;
}

.barber-action-button.done {
  background: #149263;
}

.barber-action-button.no-show {
  background: #dc2626;
  border-radius: 999px;
}

.barber-action-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.barber-message {
  min-height: 24px;
  margin: 0;
  color: #9caabe;
  font-size: 16px;
  font-weight: 700;
}

.barber-message.success {
  color: #58d39b;
}

.barber-message.error {
  color: #ff8f86;
}

.dark-loading {
  color: #91a0b4;
  font-size: 16px;
}

.transfer-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 7, 12, 0.72);
  overflow: hidden;
}

.transfer-card {
  width: min(100%, 520px);
  max-height: min(720px, calc(100dvh - 48px));
  padding: 24px;
  background: #151c25;
  border: 1px solid #354255;
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.transfer-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.transfer-header h2 {
  margin: 0;
  color: #ffffff;
  font-size: 25px;
}

.transfer-header p {
  margin: 6px 0 0;
  color: #96a4b6;
}

.modal-close {
  width: 42px;
  height: 42px;
  color: #d8e1ee;
  background: #202a36;
  border: 1px solid #354255;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.transfer-list {
  display: grid;
  gap: 12px;
  max-height: min(420px, calc(100dvh - 190px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 4px 2px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.transfer-list::-webkit-scrollbar {
  display: none;
}

.transfer-employee {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  text-align: left;
  color: #f4f7fb;
  background: #101822;
  border: 1px solid #2b394b;
  border-radius: 16px;
  cursor: pointer;
}

.transfer-employee:hover,
.transfer-employee:focus-visible {
  border-color: #2f7af8;
  outline: none;
}

.transfer-employee b {
  color: #75d493;
  font-size: 13px;
}

@media (max-width: 940px) {
  .barber-dashboard {
    grid-template-columns: 1fr;
  }

  .queue-panel {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid #202a36;
  }

  .order-detail-panel {
    min-height: auto;
    overflow: visible;
  }
}

@media (min-width: 941px) and (max-height: 860px) {
  .order-detail-panel {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .detail-topbar {
    margin-bottom: 12px;
  }

  .status-pill {
    margin-bottom: 7px;
    padding: 6px 11px;
  }

  .main-style-image {
    --style-image-height: clamp(340px, 52vh, 450px);
  }

  .thumb-button span {
    height: auto;
  }

  .barber-action-button {
    min-height: 52px;
    font-size: 17px;
  }
}

@media (max-width: 620px) {
  .barber-setup,
  .order-detail-panel,
  .queue-panel {
    padding: 18px;
  }

  .setup-panel {
    padding: 24px;
  }

  .setup-employee-grid {
    grid-auto-columns: 150px;
    grid-template-rows: repeat(2, minmax(150px, auto));
  }

  .setup-employee-card {
    width: 150px;
    min-height: 150px;
  }

  .setup-panel h1,
  .detail-topbar h2 {
    font-size: 31px;
  }

  .queue-item,
  .transfer-employee {
    grid-template-columns: 54px minmax(0, 1fr) auto;
  }

  .barber-profile {
    grid-template-columns: 48px 1fr;
    column-gap: 10px;
  }

  .barber-profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .queue-header-actions {
    gap: 6px;
  }

  .barber-status-button {
    min-height: 38px;
    min-width: 86px;
    padding: 0 10px;
    font-size: 13px;
  }

  .barber-status-switch {
    min-height: 48px;
    min-width: 148px;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 9px;
    padding: 7px 9px;
    border-radius: 16px;
  }

  .barber-status-switch-track {
    width: 46px;
    height: 26px;
    padding: 2px;
  }

  .barber-status-switch-thumb {
    width: 20px;
    height: 20px;
  }

  .barber-status-switch.is-active .barber-status-switch-thumb {
    transform: translateX(20px);
  }

  .barber-status-switch-text strong {
    font-size: 13px;
  }

  .barber-status-switch-text small {
    font-size: 11px;
  }

  .queue-item b,
  .transfer-employee b {
    grid-column: 2;
  }

  .thumb-strip,
  .detail-actions {
    grid-template-columns: 1fr 1fr;
  }

  .drawing-toolbar {
    top: 12px;
    right: 12px;
    gap: 8px;
  }

  .drawing-tool-button {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .drawing-tool-button svg {
    width: 22px;
    height: 22px;
  }

  .drawing-tool-button img {
    width: 24px;
    height: 24px;
  }

  .stroke-size-panel {
    right: 50px;
    width: 190px;
    padding: 12px;
  }

  .shape-tool-menu {
    right: 50px;
    grid-template-columns: repeat(2, 38px);
    gap: 7px;
    padding: 7px;
  }

  .drawing-tool-button.mini {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .drawing-tool-button.mini svg {
    width: 19px;
    height: 19px;
  }
}

/* Sarko's customer tablet theme */
.customer-page {
  position: relative;
  min-height: 100vh;
  padding: 32px;
  color: #f7f1e7;
  background:
    linear-gradient(135deg, rgba(12, 12, 12, 0.94), rgba(25, 19, 14, 0.86)),
    url("../uploads/hairstyles/High Fade/1-high-fade.jpg") center / cover fixed;
}

.customer-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(203, 147, 66, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(203, 147, 66, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 72%);
}

.customer-page .customer-panel {
  position: relative;
  width: min(100%, 1220px);
  padding: 34px;
  background: rgba(17, 17, 17, 0.94);
  border: 1px solid rgba(212, 167, 92, 0.32);
  border-radius: 20px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(14px);
}

.customer-page .customer-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(212, 167, 92, 0.22);
}

.customer-page .brand-icon {
  width: 72px;
  height: 72px;
  color: #111111;
  background: linear-gradient(135deg, #f3d39a, #b77a2b);
  border: 1px solid rgba(255, 230, 181, 0.62);
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(183, 122, 43, 0.22);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
}

.customer-kicker {
  margin: 0 0 8px;
  color: #d7a85f !important;
  font-size: 13px !important;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.customer-page .customer-header h1 {
  color: #ffffff;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: 0;
}

.customer-page .customer-header p:not(.customer-kicker) {
  max-width: 680px;
  color: #c9c0b4;
}

.shop-rating {
  min-width: 190px;
  padding: 16px 18px;
  color: #f8ead0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 167, 92, 0.28);
  border-radius: 16px;
  text-align: right;
}

.shop-rating strong {
  display: block;
  color: #f3d39a;
  font-size: 32px;
  line-height: 1;
}

.shop-rating span,
.shop-rating small {
  display: block;
  color: #bfb3a4;
  font-size: 13px;
}

.customer-page .customer-form {
  gap: 26px;
}

.customer-page .customer-step {
  padding: 22px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
}

.customer-page .step-title span {
  color: #12100d;
  background: linear-gradient(135deg, #f4d59f, #bd7b2d);
}

.customer-page .step-title h2 {
  color: #fffaf2;
  font-size: 18px;
}

.customer-page .name-row {
  grid-template-columns: minmax(0, 1fr) 72px;
}

.customer-page .name-row input,
.customer-page .camera-button {
  color: #fffaf2;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(221, 181, 113, 0.32);
  border-radius: 12px;
}

.customer-page .name-row input::placeholder {
  color: #92897d;
}

.customer-page .name-row input:focus {
  outline: 3px solid rgba(211, 158, 78, 0.22);
  border-color: #d7a85f;
}

.customer-page .camera-button {
  color: #d7a85f;
}

.customer-page .privacy-note,
.customer-page .loading-text,
.customer-page .image-placeholder {
  color: #a99d8d;
}

.customer-page .selection-grid {
  grid-template-columns: repeat(auto-fit, minmax(156px, 1fr));
  gap: 14px;
}

.customer-page .select-card {
  min-height: 150px;
  padding: 12px;
  color: #f8efe2;
  background: rgba(8, 8, 8, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  box-shadow: none;
}

.customer-page .select-card:hover,
.customer-page .select-card:focus-visible,
.customer-page .select-card.is-selected {
  border-color: #d7a85f;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(243, 211, 154, 0.18) inset;
  transform: translateY(-2px);
}

.customer-page .select-card.is-selected {
  background: linear-gradient(180deg, rgba(63, 42, 17, 0.86), rgba(16, 14, 12, 0.94));
}

.customer-page .avatar-circle {
  width: 72px;
  height: 72px;
  color: #17110a;
  background: linear-gradient(135deg, #f1d29a, #b57629);
}

.customer-page .employee-card small {
  color: #aa9e90;
}

.customer-page .hairstyle-image {
  aspect-ratio: 1.18;
  background: #191919;
  border-radius: 12px;
}

.customer-page .hairstyle-image img {
  filter: saturate(1.08) contrast(1.04);
}

.customer-page .custom-style-icon {
  padding: 16px;
  color: #15251f;
  background: linear-gradient(135deg, #f5d486, #edf6ee);
}

.customer-page .custom-style-image-copy {
  display: grid;
  gap: 8px;
  place-items: center;
  width: 100%;
  text-align: center;
}

.customer-page .custom-style-image-copy strong {
  color: #15251f;
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.18;
}

.customer-page .custom-style-image-copy small {
  color: #506176;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.customer-page .hairstyle-card strong,
.customer-page .employee-card strong {
  color: #fffaf2;
  font-size: 15px;
  line-height: 1.15;
}

.customer-page .send-order-button {
  min-height: 70px;
  color: #15100b;
  background: linear-gradient(135deg, #f4d59f, #c28131);
  border-radius: 14px;
  box-shadow: 0 18px 38px rgba(194, 129, 49, 0.28);
}

.customer-page .send-order-button:hover:not(:disabled),
.customer-page .send-order-button:focus-visible:not(:disabled) {
  background: linear-gradient(135deg, #ffe1aa, #d2913e);
  outline: 3px solid rgba(244, 213, 159, 0.24);
}

.customer-page .send-order-button:disabled {
  color: #766c61;
  background: rgba(255, 255, 255, 0.12);
}

.customer-page .form-message.success {
  color: #85d99e;
}

.customer-page .form-message.error {
  color: #ff9b8f;
}

.modal-open {
  overflow: hidden;
}

.style-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(5, 8, 12, 0.82);
  backdrop-filter: blur(10px);
}

.style-modal-card {
  width: min(calc(100vw - 32px), 600px);
  max-height: calc(100vh - 32px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 14px;
  overflow: auto;
  padding: 10px;
  color: #ffffff;
  background: #07101a;
  border: 1px solid rgba(67, 82, 101, 0.6);
  border-radius: 16px;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.72);
}

.style-modal-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.style-thumb-button {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 6px;
  color: #ffffff;
  background: #111c29;
  border: 1px solid #223249;
  border-radius: 10px;
  cursor: pointer;
}

.style-thumb-button span {
  aspect-ratio: 1.2;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #c7d2e0;
  background: #05080d;
  border-radius: 7px;
}

.style-thumb-button img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
}

.style-thumb-button strong {
  overflow: hidden;
  font-size: 12px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.style-thumb-button:hover,
.style-thumb-button:focus-visible,
.style-thumb-button.is-active {
  border-color: #2f80ed;
  outline: none;
  box-shadow: 0 0 0 1px #2f80ed inset;
}

.style-modal-main {
  position: relative;
  height: min(72vw, 445px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #05080d;
  border: 1px solid #223249;
  border-radius: 14px;
  touch-action: none;
  user-select: none;
}

#styleModalImage {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 160ms ease;
  will-change: transform;
}

#styleModalPlaceholder {
  color: #b8ab99;
  font-size: 22px;
}

.style-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.style-modal-button {
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
}

.style-modal-button:focus-visible {
  outline: 3px solid rgba(47, 128, 237, 0.36);
  outline-offset: 2px;
}

.style-modal-button.choose {
  background: #2874f0;
}

.style-modal-button.close {
  background: #159c69;
}

.selected-photo-text {
  margin: -6px 0 0;
  color: #75d28d;
  font-size: 14px;
  font-weight: 800;
}

.photo-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(5, 8, 12, 0.84);
  backdrop-filter: blur(10px);
}

.photo-modal-card {
  width: min(calc(100vw - 32px), 560px);
  max-height: calc(100vh - 32px);
  display: grid;
  gap: 14px;
  overflow: auto;
  padding: 18px;
  color: #ffffff;
  background: #101010;
  border: 1px solid rgba(212, 166, 89, 0.45);
  border-radius: 18px;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.72);
}

.photo-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.photo-modal-header h2 {
  margin: 0 0 6px;
  font-size: 28px;
}

.photo-modal-header p {
  margin: 0;
  color: #c9c0b0;
}

.photo-close-button {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  color: #ffffff;
  background: #1b1b1b;
  border: 1px solid rgba(212, 166, 89, 0.35);
  border-radius: 12px;
  font-size: 28px;
  cursor: pointer;
}

.photo-file-input {
  min-height: 54px;
  padding: 12px;
  color: #ffffff;
  background: #181818;
  border: 1px solid rgba(212, 166, 89, 0.35);
  border-radius: 12px;
}

.photo-source-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.photo-source-button {
  min-height: 54px;
  padding: 0 14px;
  color: #17110a;
  background: #f4d59f;
  border: 0;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.photo-preview-box {
  min-height: 330px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #c9c0b0;
  background: #0c0c0c;
  border: 1px dashed rgba(212, 166, 89, 0.45);
  border-radius: 16px;
}

.photo-preview-box img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
}

.customer-photo-placeholder {
  display: grid;
  justify-items: center;
  gap: 12px;
  color: #c9c0b0;
  text-align: center;
  font-weight: 800;
}

.customer-photo-placeholder svg,
.customer-placeholder-icon svg {
  width: 68px;
  height: 68px;
  fill: none;
  stroke: rgba(201, 192, 176, 0.6);
  stroke-width: 5;
  stroke-linecap: round;
}

.photo-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.photo-modal-button {
  min-height: 54px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
}

.photo-modal-button.choose {
  background: #2874f0;
}

.photo-modal-button.close {
  background: #2a2a2a;
}

.photo-modal-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.customer-photo-box {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.customer-photo-box.is-hidden,
.customer-photo-box[hidden] {
  display: none !important;
}

.customer-photo-box strong {
  color: #8ab4ff;
  font-size: 14px;
  text-transform: uppercase;
}

.customer-photo-box img {
  width: min(100%, 340px);
  max-height: 260px;
  object-fit: contain;
  background: #05080d;
  border: 1px solid #223249;
  border-radius: 14px;
}

.customer-placeholder-icon {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.customer-placeholder-icon svg {
  width: 38px;
  height: 38px;
  stroke: rgba(162, 175, 192, 0.68);
}

.customer-detail-placeholder {
  width: min(100%, 340px);
  min-height: 220px;
  display: grid;
  place-items: center;
  background: #05080d;
  border: 1px solid #223249;
  border-radius: 14px;
}

.customer-detail-placeholder .customer-placeholder-icon svg {
  width: 84px;
  height: 84px;
}

.photo-zoom-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(1, 5, 10, 0.72);
  opacity: 0;
  transition: opacity 180ms ease;
}

.photo-zoom-modal.is-open {
  opacity: 1;
}

.photo-zoom-card {
  width: min(88vw, 620px);
  max-height: 86vh;
  padding: 0;
  overflow: hidden;
  background: #05080d;
  border: 1px solid #2f7af8;
  border-radius: 18px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
  cursor: zoom-out;
  transform: scale(0.86);
  transition: transform 180ms ease;
}

.photo-zoom-modal.is-open .photo-zoom-card {
  transform: scale(1);
}

.photo-zoom-card img {
  display: block;
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
}

@media (max-width: 900px) {
  .customer-page {
    padding: 18px;
  }

  .customer-page .customer-panel {
    padding: 22px;
  }

  .customer-page .customer-header {
    grid-template-columns: auto 1fr;
  }

  .shop-rating {
    grid-column: 1 / -1;
    text-align: left;
  }

  .style-modal {
    padding: 16px;
  }

  .style-modal-card {
    max-height: calc(100vh - 32px);
    padding: 10px;
  }
}

@media (max-width: 560px) {
  .customer-page .customer-header {
    grid-template-columns: 1fr;
  }

  .customer-page .brand-icon {
    width: 64px;
    height: 64px;
  }

  .customer-page .name-row {
    grid-template-columns: 1fr;
  }

  .customer-page .name-row input {
    min-height: 62px;
    padding: 0 16px;
    font-size: 16px;
  }

  .customer-page .camera-button {
    min-height: 62px;
  }

  .customer-page .customer-step {
    padding: 16px;
  }

  .style-modal-card {
    gap: 10px;
  }

  .style-modal-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
  }

  .style-modal-main {
    height: min(72vw, 445px);
  }

  .style-thumb-button {
    padding: 5px;
  }

  .style-thumb-button strong {
    font-size: 10px;
  }

  #styleModalImage {
    max-height: 100%;
  }

  .style-modal-actions {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .style-modal-button {
    min-height: 46px;
    font-size: 15px;
  }

  .photo-modal {
    padding: 12px;
  }

  .photo-modal-card {
    width: min(calc(100vw - 20px), 560px);
    padding: 14px;
  }

  .photo-preview-box {
    min-height: 260px;
  }

  .photo-source-actions {
    grid-template-columns: 1fr;
  }

  .photo-modal-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .customer-page {
    padding: 10px;
  }

  .customer-page .customer-panel {
    width: min(100%, 520px);
    padding: 14px;
    border-radius: 16px;
  }

  .customer-page .customer-header {
    gap: 12px;
    margin-bottom: 16px;
  }

  .customer-page .customer-header h1 {
    font-size: 30px;
    line-height: 1.05;
  }

  .customer-page .customer-header p:not(.customer-kicker) {
    font-size: 14px;
    line-height: 1.35;
  }

  .customer-page .customer-form {
    gap: 14px;
  }

  .customer-page .customer-step {
    gap: 12px;
    padding: 14px;
    overflow: hidden;
  }

  .customer-page .step-title h2 {
    font-size: 16px;
  }

  .customer-page .selection-grid {
    display: flex;
    grid-template-columns: none;
    gap: 10px;
    margin: 0 -14px;
    padding: 0 14px 8px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-behavior: auto;
    scroll-snap-type: none;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
  }

  .customer-page .selection-grid::-webkit-scrollbar {
    height: 6px;
  }

  .customer-page .selection-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
  }

  .customer-page .selection-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 214, 138, 0.62);
    border-radius: 999px;
  }

  .customer-page .select-card {
    flex: 0 0 148px;
    min-height: 126px;
    padding: 12px;
    scroll-snap-align: none;
  }

  .customer-page .employee-card {
    min-height: 126px;
  }

  .customer-page .avatar-circle {
    width: 58px;
    height: 58px;
    font-size: 19px;
  }

  .customer-page .employee-card strong,
  .customer-page .hairstyle-card strong {
    font-size: 13px;
    line-height: 1.2;
  }

  .customer-page .employee-card small {
    font-size: 12px;
  }

  .customer-page .employee-status-badge {
    min-height: 21px;
    padding: 3px 8px;
    font-size: 10px;
  }

  .customer-page .hairstyle-card {
    flex-basis: 214px;
    min-height: 188px;
  }

  .customer-page .hairstyle-image {
    aspect-ratio: 1.2;
    border-radius: 10px;
  }

  .customer-page .send-order-button {
    min-height: 56px;
    border-radius: 12px;
    font-size: 16px;
  }
}

.customer-page .brand-icon.customer-brand-logo {
  width: 64px !important;
  height: 64px !important;
  display: block !important;
  flex: 0 0 64px !important;
  padding: 5px !important;
  object-fit: contain !important;
  color: transparent !important;
  background: #ffffff !important;
  border: 1px solid var(--sarko-line) !important;
  border-radius: 16px !important;
  box-shadow: 0 14px 30px rgba(15, 46, 38, 0.12) !important;
}

@media (max-width: 720px) {
  .customer-page .brand-icon.customer-brand-logo {
    width: 58px !important;
    height: 58px !important;
    flex-basis: 58px !important;
    padding: 4px !important;
    border-radius: 14px !important;
  }
}

.qr-start-camera-button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  color: #ffffff;
  background: var(--sarko-primary);
  border: 1px solid var(--sarko-primary);
  border-radius: 16px;
  box-shadow: 0 18px 38px rgba(15, 143, 120, 0.20);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  min-height: 88px;
}

.qr-start-camera-button:hover,
.qr-start-camera-button:focus-visible {
  background: var(--sarko-primary-dark);
  border-color: var(--sarko-primary-dark);
}

.qr-start-camera-button.is-hidden {
  display: none;
}

@media (max-width: 720px) {
  .qr-start-camera-button {
    width: 100%;
    min-height: 58px;
    font-size: 1rem;
  }
}

/* QR access mobile cleanup */
.qr-page .qr-card {
  max-width: 720px;
}

.qr-page .manual-qr-form label {
  color: var(--sarko-text) !important;
}

.qr-page .qr-video-box {
  min-height: 260px;
  max-height: 420px;
}

.qr-page #qrPlaceholder {
  max-width: 92%;
  text-align: center;
  line-height: 1.35;
}

@media (max-width: 720px) {
  .qr-page {
    align-items: flex-start;
    min-height: 100vh;
    padding: 14px;
  }

  .qr-shell {
    width: 100%;
    padding: 0;
  }

  .qr-card {
    width: 100%;
    padding: 24px 18px;
    border-radius: 24px !important;
  }

  .qr-card .customer-kicker {
    font-size: 0.78rem;
    letter-spacing: 0.04em;
  }

  .qr-card h1 {
    font-size: clamp(2rem, 11vw, 3rem);
    line-height: 1.05;
  }

  .qr-card p {
    font-size: 1.05rem;
    line-height: 1.55;
  }

  .qr-video-box {
    min-height: 260px !important;
    height: 38vh !important;
    max-height: 360px !important;
    border-radius: 22px !important;
  }

  .manual-qr-form {
    gap: 12px;
    margin-top: 18px;
  }

  .manual-qr-form label {
    font-size: 1rem;
  }

  .manual-qr-form input,
  .manual-qr-form button,
  .qr-back-link {
    min-height: 56px;
    border-radius: 16px !important;
    font-size: 1rem;
  }
}

@media (max-width: 420px) {
  .customer-page .customer-panel {
    padding: 10px;
  }

  .customer-page .customer-step {
    padding: 12px;
  }

  .customer-page .selection-grid {
    margin: 0 -12px;
    padding: 0 12px 8px;
  }

  .customer-page .select-card {
    flex-basis: 132px;
  }

  .customer-page .hairstyle-card {
    flex-basis: 190px;
  }
}

.admin-page {
  min-height: 100vh;
  margin: 0;
  color: #0f172a;
  background: #edf3fb;
}

.admin-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.admin-login,
.admin-dashboard {
  background: #ffffff;
  border: 1px solid #d9e3f2;
  border-radius: 18px;
  box-shadow: 0 22px 70px rgba(23, 37, 84, 0.12);
}

.admin-login {
  width: min(520px, 100%);
  margin: 10vh auto 0;
  padding: 34px;
}

.admin-dashboard {
  padding: 28px;
}

.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.admin-header-actions {
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.admin-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
  padding: 8px;
  background: rgba(15, 143, 120, 0.08);
  border: 1px solid var(--sarko-line, #d9e3f2);
  border-radius: 12px;
}

.admin-section-tab {
  flex: 0 1 auto;
  min-width: 86px;
  min-height: 44px;
  padding: 0 14px;
  color: var(--sarko-muted, #526781);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
}

.admin-section-tab.is-active,
.admin-section-tab:hover,
.admin-section-tab:focus-visible {
  color: #ffffff;
  background: var(--sarko-primary, #0f8f78);
  border-color: var(--sarko-primary, #0f8f78);
  outline: none;
}

.admin-nav-reload-button {
  flex: 0 0 auto;
  min-height: 44px;
  margin-left: 0;
  padding: 0 18px;
  font-weight: 900;
}

.admin-logo-manager {
  flex: 0 0 auto;
}

.admin-logo-preview {
  position: relative;
  width: 280px;
  height: 180px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #64748b;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(238, 247, 243, 0.74)),
    #eef7f3;
  border: 1px solid rgba(207, 229, 221, 0.9);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84), 0 18px 42px rgba(15, 46, 38, 0.10);
}

.admin-logo-preview img {
  position: absolute;
  top: 14px;
  left: 18px;
  right: 18px;
  bottom: 64px;
  width: calc(100% - 36px);
  height: calc(100% - 78px);
  object-fit: contain;
  padding: 0;
}

.admin-logo-preview span {
  margin-bottom: 34px;
  font-weight: 900;
}

.admin-logo-glass {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(15, 46, 38, 0.14);
  backdrop-filter: blur(16px) saturate(145%);
}

.admin-logo-button {
  min-height: 36px;
  padding: 0 12px;
  color: #075f53;
  background: rgba(236, 253, 245, 0.78);
  border: 1px solid rgba(167, 243, 208, 0.95);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.admin-logo-button.danger {
  color: #ffffff;
  background: rgba(220, 38, 38, 0.82);
  border-color: rgba(248, 113, 113, 0.82);
}

.admin-logo-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.admin-header h1,
.admin-login h1 {
  margin: 0 0 8px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(380px, 460px) minmax(0, 1fr);
  gap: 22px;
}

.admin-panel {
  min-width: 0;
  padding: 22px;
  background: #f8fbff;
  border: 1px solid #d9e3f2;
  border-radius: 16px;
}

.admin-panel.is-hidden {
  display: none;
}

.admin-style-panel,
.admin-settings-panel,
.admin-panel[data-admin-section="security"],
.admin-qr-panel {
  grid-column: 1 / -1;
}

.admin-qr-frame {
  display: block;
  width: 100%;
  max-width: 100%;
  height: clamp(560px, 72vh, 760px);
  margin: 0 auto;
  border: 1px solid var(--sarko-line, #d9e3f2);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 16px 44px rgba(15, 46, 38, 0.10);
}

.admin-panel h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.admin-subheading {
  margin-top: 26px !important;
  padding-top: 22px;
  border-top: 1px solid var(--sarko-line, #d9e3f2);
}

.admin-form {
  display: grid;
  gap: 12px;
}

.admin-form label {
  font-weight: 800;
}

.admin-field-hint {
  display: block;
  margin-top: -6px;
  color: #607184;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

.admin-password-wrap {
  position: relative;
}

.admin-form input[type="email"],
.admin-form input[type="password"],
.admin-form input[type="tel"],
.admin-form input[type="text"],
.admin-form input[type="file"],
.admin-form textarea {
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #9fb0c4;
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
  font: inherit;
}

.admin-employee-edit-form {
  gap: 8px;
}

.admin-employee-compact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-employee-compact-field {
  position: relative;
  min-width: 0;
}

.admin-employee-compact-field label {
  position: absolute;
  top: 7px;
  left: 14px;
  z-index: 1;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: visible;
  clip: auto;
  color: #64748b;
  font-size: .66rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

.admin-employee-compact-field label.is-required::after {
  content: " *";
  color: #b91c1c;
  font-weight: 900;
}

.admin-employee-compact-field input[type="text"],
.admin-employee-compact-field input[type="tel"],
.admin-employee-compact-field input[type="number"] {
  width: 100%;
  min-height: 54px;
  padding: 22px 14px 8px;
  color: #0f172a;
  background: #ffffff;
  border: 1.5px solid #86a79f;
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  font: inherit;
}

.admin-employee-compact-field input[type="text"]:disabled,
.admin-employee-compact-field input[type="tel"]:disabled,
.admin-employee-compact-field input[type="number"]:disabled {
  opacity: 1;
  background: #fbfdfc;
  border-color: #8aa79f;
}

.admin-employee-compact-field input.is-required-missing {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.admin-employee-compact-field input::placeholder {
  color: #7a8b9f;
  font-size: .86rem;
  line-height: 1.1;
  opacity: 1;
}

.admin-employee-compact-field input:focus::placeholder {
  color: transparent;
}

.admin-password-wrap input[type="password"],
.admin-password-wrap input[type="text"] {
  padding-right: 56px;
}

.admin-upload-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  pointer-events: none !important;
}

.admin-upload-choice {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: #0f172a;
  text-align: left;
  background: linear-gradient(180deg, #ffffff 0%, #eef9f6 100%);
  border: 1.5px solid #86a79f;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.08);
  cursor: pointer;
}

.admin-upload-choice:hover:not(:disabled),
.admin-upload-choice:focus-visible {
  border-color: #12927f;
  box-shadow: 0 14px 30px rgba(15, 118, 110, 0.16);
  outline: none;
}

.admin-upload-choice:disabled {
  opacity: 1;
  color: #667789;
  background: #fbfdfc;
  border-color: #8aa79f;
  cursor: not-allowed;
}

.admin-upload-icon {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: #12927f;
  border-radius: 10px;
}

.admin-upload-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-upload-choice strong,
.admin-upload-choice small {
  display: block;
}

.admin-upload-choice strong {
  font-size: 0.98rem;
  line-height: 1.2;
}

.admin-upload-choice small {
  margin-top: 3px;
  color: #57708d;
  font-size: 0.82rem;
  line-height: 1.25;
}

.admin-password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f766e;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
}

.admin-password-toggle:hover,
.admin-password-toggle:focus-visible {
  background: #ecfdf5;
  border-color: #99f6e4;
  outline: none;
}

.admin-password-toggle svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-password-toggle.is-visible::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 2px;
  background: currentColor;
  transform: rotate(-35deg);
  border-radius: 999px;
}

.admin-form textarea {
  min-height: 96px;
  resize: vertical;
}

.admin-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

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

.admin-booking-actions .admin-secondary-button {
  min-height: 42px;
  padding: 0 14px;
  font-size: 14px;
}

#appointmentDeleteButton {
  color: #9f1239;
  border-color: rgba(225, 29, 72, 0.22);
  background: rgba(255, 241, 242, 0.86);
}

.admin-panel-heading h2 {
  margin: 0;
}

.admin-primary-button,
.admin-secondary-button,
.admin-danger-button,
.admin-link-button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.admin-primary-button {
  color: #ffffff;
  background: #2563eb;
  border: 0;
}

.admin-secondary-button,
.admin-link-button {
  color: #123056;
  background: #eef4fb;
  border: 1px solid #9fb0c4;
}

.admin-secondary-button.is-activate {
  color: #ffffff;
  background: #15803d;
  border-color: #15803d;
}

.admin-danger-button {
  color: #ffffff;
  background: #dc2626;
  border: 0;
}

.admin-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  align-items: center;
  justify-items: center;
  min-height: 100dvh;
  overflow: auto;
  padding: clamp(16px, 4vw, 36px);
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(3px);
}

.admin-confirm-card {
  box-sizing: border-box;
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: clamp(22px, 3vw, 30px);
  color: var(--sarko-text, #17202b);
  background: #ffffff;
  border: 1px solid rgba(15, 143, 121, 0.18);
  border-radius: 20px;
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.24), 0 1px 0 rgba(255, 255, 255, 0.75) inset;
}

.admin-confirm-card h2 {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.2;
}

.admin-confirm-card p {
  margin: 0 0 22px;
  color: var(--sarko-muted, #64748b);
  font-size: 16px;
  line-height: 1.45;
}

.admin-confirm-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 14px;
  padding: 0 12px;
  border-radius: 999px;
  color: #006f60;
  background: #e7f7f2;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.admin-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  align-items: center;
  justify-items: center;
  min-height: 100dvh;
  overflow: auto;
  padding: clamp(16px, 4vw, 36px);
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(3px);
}

.admin-confirm-dialog {
  box-sizing: border-box;
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: clamp(20px, 3vw, 26px);
  border: 1px solid rgba(15, 143, 121, 0.18);
  border-radius: 20px;
  background: #ffffff;
  color: var(--sarko-text, #17202b);
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.24), 0 1px 0 rgba(255, 255, 255, 0.75) inset;
}

.admin-confirm-dialog strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.2;
}

.admin-confirm-dialog p {
  margin: 0 0 20px;
  color: var(--sarko-muted, #64748b);
  font-size: 15px;
  line-height: 1.45;
}

.admin-confirm-dialog > div {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.admin-confirm-dialog .admin-secondary-button,
.admin-confirm-dialog .admin-danger-button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 14px;
  white-space: nowrap;
}

.admin-decline-dialog {
  width: min(100%, 640px);
}

.admin-confirm-dialog.admin-decline-dialog > .admin-decline-summary {
  display: grid;
  gap: 6px;
  margin: 0 0 16px;
  padding: 12px 14px;
  color: var(--sarko-text, #17202b);
  background: #f6fbf8;
  border: 1px solid var(--sarko-line, #dde8e3);
  border-radius: 12px;
}

.admin-confirm-dialog.admin-decline-dialog > .admin-decline-summary span {
  color: inherit;
  font-size: 14px;
  line-height: 1.35;
  text-align: left;
}

.admin-note-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  margin: 0 0 14px;
  padding: 0 12px;
  color: #006f60;
  background: #e7f7f2;
  border: 1px solid #bde6dc;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.admin-confirm-dialog.admin-decline-dialog > .admin-decline-note {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  width: 100%;
}

.admin-confirm-dialog.admin-decline-dialog > .admin-decline-note label {
  color: var(--sarko-text, #17202b);
  font-size: 13px;
  font-weight: 800;
}

.admin-confirm-dialog.admin-decline-dialog > .admin-decline-note textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 230px;
  resize: vertical;
  padding: 16px 18px;
  color: var(--sarko-text, #17202b);
  background: #ffffff;
  border: 1px solid var(--sarko-line, #dde8e3);
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  line-height: 1.55;
  outline: none;
}

.admin-confirm-dialog.admin-decline-dialog > .admin-decline-note textarea:focus {
  border-color: #0f8f78;
  box-shadow: 0 0 0 4px rgba(15, 143, 120, 0.12);
}

.admin-booking-disable-card {
  width: min(100%, 480px);
}

.admin-forgot-password-button {
  width: 100%;
  margin-top: 10px;
}

.admin-password-reset-card {
  width: min(100%, 520px);
}

.admin-password-reset-card .admin-form {
  margin-top: 16px;
}

.admin-password-reset-card .admin-form.is-hidden {
  display: none;
}

.admin-password-reset-card .admin-form label {
  margin-top: 12px;
}

.admin-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.admin-camera-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(9, 24, 19, 0.62);
}

.admin-camera-card {
  width: min(100%, 760px);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--sarko-line, #dde8e3);
  border-radius: 18px;
  box-shadow: 0 28px 90px rgba(15, 46, 38, 0.3);
}

.admin-camera-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  color: var(--sarko-text, #17202b);
}

.admin-camera-close {
  width: 42px;
  height: 42px;
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  background: #17202b;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.admin-camera-video {
  width: 100%;
  max-height: min(68vh, 620px);
  display: block;
  background: #0f172a;
  object-fit: contain;
}

.style-modal-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 143, 120, 0.88);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.style-modal-nav.prev {
  left: 10px;
}

.style-modal-nav.next {
  right: 10px;
}

.style-modal-nav:active {
  transform: translateY(-50%) scale(0.94);
}

.style-modal-nav:focus-visible {
  outline: 3px solid rgba(47, 128, 237, 0.36);
  outline-offset: 2px;
}

.admin-camera-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px 16px 16px;
}

.admin-primary-button:disabled,
.admin-secondary-button:disabled,
.admin-danger-button:disabled,
.admin-form input:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.admin-employee-list {
  display: grid;
  gap: 10px;
}

.admin-employee-item {
  width: 100%;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  text-align: left;
  color: #0f172a;
  background: #ffffff;
  border: 2px solid #d8e3f1;
  border-radius: 14px;
  cursor: pointer;
}

.admin-active-switch {
  width: 52px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 3px;
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.admin-employee-status-control {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 112px;
}

.admin-employee-active-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.admin-employee-active-label.is-active {
  color: #15803d;
  background: #dcfce7;
  border-color: #86efac;
}

.admin-employee-active-label.is-inactive {
  color: #b91c1c;
  background: #fee2e2;
  border-color: #fca5a5;
}

.admin-active-switch span {
  width: 22px;
  height: 22px;
  display: block;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.22);
  transform: translateX(0);
  transition: transform 160ms ease;
}

.admin-active-switch.is-on {
  background: #0f8f78;
  border-color: #0f8f78;
}

.admin-active-switch.is-on span {
  transform: translateX(22px);
}

.admin-active-switch:focus-visible {
  outline: 3px solid rgba(15, 143, 120, 0.22);
  outline-offset: 2px;
}

.admin-employee-item.is-active {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.admin-employee-item.is-disabled {
  background: #f8fafc;
}

.admin-employee-item.is-disabled .admin-mini-avatar {
  background: #64748b;
}

.admin-employee-item strong,
.admin-selected-card strong {
  display: block;
  font-size: 18px;
}

.admin-employee-item span,
.admin-selected-card span {
  color: #64748b;
}

.admin-employee-item small,
.admin-selected-card small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.admin-mini-avatar,
.admin-avatar-large,
.admin-avatar-placeholder {
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
  border-radius: 999px;
  font-weight: 900;
}

.admin-mini-avatar {
  width: 62px;
  height: 62px;
}

.admin-avatar-large,
.admin-avatar-placeholder {
  width: 86px;
  height: 86px;
  font-size: 30px;
}

.admin-mini-avatar img,
.admin-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-selected-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #d9e3f2;
  border-radius: 16px;
}

.admin-preview-box {
  min-height: 260px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #64748b;
  background: #fbfdfc;
  border: 2px dashed #8aa79f;
  border-radius: 16px;
}

#saveEmployeeButton,
#deleteEmployeeButton,
#avatarForm .admin-primary-button,
#avatarForm .admin-secondary-button,
#avatarForm .admin-danger-button {
  border: 1.5px solid #8aa79f;
}

#deleteEmployeeButton,
#avatarForm .admin-danger-button {
  border-color: #c75252;
}

#saveEmployeeButton:disabled,
#deleteEmployeeButton:disabled,
#avatarForm .admin-primary-button:disabled,
#avatarForm .admin-secondary-button:disabled,
#avatarForm .admin-danger-button:disabled {
  opacity: 1;
  filter: saturate(.72);
  border-color: #8aa79f;
}

#deleteEmployeeButton:disabled,
#avatarForm .admin-danger-button:disabled {
  border-color: #c86d6d;
}

.admin-preview-box img {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 999px;
}

.admin-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.admin-employee-form-actions {
  align-items: stretch;
  margin-top: 8px;
}

.admin-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-checkbox input {
  width: 22px;
  height: 22px;
}

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

.admin-style-layout {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 16px;
}

.admin-style-layout h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

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

.admin-hairstyle-item {
  width: 100%;
  display: grid;
  grid-template-columns: 28px 56px 1fr 34px;
  align-items: center;
  gap: 10px;
  min-height: 70px;
  padding: 8px 10px;
  color: #0f172a;
  text-align: left;
  background: #ffffff;
  border: 2px solid #d8e3f1;
  border-radius: 14px;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}

.admin-hairstyle-item.is-active {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.admin-hairstyle-item.is-disabled {
  opacity: 0.62;
}

.admin-hairstyle-item.is-dragging {
  opacity: 0.72;
  transform: scale(0.985);
  border-color: #0f766e;
  box-shadow: 0 14px 30px rgba(15, 118, 110, 0.18);
}

.admin-hairstyle-order {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  color: #0f172a;
  background: linear-gradient(135deg, #ffe29a, #f5b84f);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.admin-hairstyle-thumb {
  width: 56px;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #64748b;
  background: #eef4fb;
  border-radius: 12px;
  font-weight: 900;
}

.admin-hairstyle-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-hairstyle-item strong {
  display: block;
  font-size: 15px;
  line-height: 1.15;
}

.admin-hairstyle-meta {
  display: block;
  color: #64748b;
}

.admin-hairstyle-meta small {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 2px 7px;
  margin-top: 4px;
  color: #64748b;
  background: #eef4fb;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.admin-hairstyle-meta .is-active-status {
  color: #047857;
  background: #d1fae5;
}

.admin-hairstyle-meta .is-disabled-status {
  color: #b91c1c;
  background: #fee2e2;
}

.admin-hairstyle-drag {
  width: 34px;
  min-height: 44px;
  justify-self: end;
  opacity: 0.65;
  cursor: grab;
  touch-action: none;
  background-image: radial-gradient(circle, #64748b 1.5px, transparent 1.5px);
  background-size: 6px 6px;
  background-position: center;
}

.admin-hairstyle-drag:active {
  cursor: grabbing;
}

.admin-style-preview-main {
  position: relative;
  min-height: 300px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #64748b;
  background: #eef5f1;
  border: 1px solid #d4e3dc;
  border-radius: 16px;
}

.admin-style-preview-main img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: contain;
  cursor: crosshair;
}

.admin-style-pixel-canvas {
  max-width: 100%;
  max-height: 520px;
  width: auto;
  height: auto;
  cursor: crosshair;
  touch-action: none;
  user-select: none;
}

.admin-pixel-tools {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  display: grid;
  gap: 8px;
}

.admin-pixel-tool-button {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 10px;
  font-size: 23px;
  line-height: 1;
  box-shadow: 0 12px 24px rgba(15, 46, 38, 0.18);
  backdrop-filter: blur(10px) saturate(140%);
}

.admin-pixel-tools .is-active {
  color: #ffffff;
  background: #1e63e9;
  border-color: #1e63e9;
  box-shadow: 0 14px 30px rgba(30, 99, 233, 0.22);
}

html[data-theme="black"] .admin-pixel-tools .is-active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #00956d, #004f3b) !important;
  border-color: rgba(57, 229, 177, 0.7) !important;
  box-shadow: 0 18px 42px rgba(0, 149, 109, 0.24) !important;
}

@media (max-width: 720px) {
  .admin-pixel-tools {
    top: 8px;
    right: 8px;
    gap: 6px;
  }

  .admin-pixel-tool-button {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    border-radius: 9px;
    font-size: 20px;
  }
}

.admin-style-slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
}

.admin-restore-defaults-row {
  display: flex;
  justify-content: flex-start;
  margin: 18px 0 10px;
}

.admin-restore-defaults-button {
  min-height: 42px;
  padding-inline: 18px;
  color: #8a4b00;
  border-color: rgba(245, 158, 11, 0.35);
  background: #fff7ed;
}

.admin-restore-defaults-button:hover {
  color: #7c2d12;
  border-color: rgba(245, 158, 11, 0.55);
  background: #ffedd5;
}

.admin-style-slot {
  display: grid;
  gap: 7px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #d9e3f2;
  border-radius: 14px;
}

.admin-style-slot.is-processing {
  pointer-events: none;
  opacity: 0.92;
}

.admin-style-slot-preview {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #64748b;
  background: #ffffff;
  border: 1px solid #d9e3f2;
  border-radius: 10px;
  font-weight: 800;
  text-align: center;
}

.admin-style-slot-preview[data-select-hairstyle-file] {
  cursor: pointer;
}

.admin-style-slot-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.admin-style-upload-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 10px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.78);
  border-radius: inherit;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  backdrop-filter: blur(5px) saturate(140%);
}

.admin-style-upload-spinner {
  width: 30px;
  height: 30px;
  border: 4px solid rgba(15, 143, 120, 0.22);
  border-top-color: #0f8f78;
  border-radius: 50%;
  animation: admin-style-upload-spin 0.85s linear infinite;
}

@keyframes admin-style-upload-spin {
  to {
    transform: rotate(360deg);
  }
}

.admin-style-slot-title {
  text-align: center;
  font-weight: 900;
}

.admin-style-slot-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 5px;
}

.admin-style-slot-actions button {
  width: 100%;
  min-width: 0;
  min-height: 22px !important;
  padding: 0 5px !important;
  border-radius: 5px;
  font-size: 7pt !important;
  line-height: 1;
  white-space: nowrap;
}

.admin-style-slot-actions .admin-camera-button {
  grid-column: 1 / -1;
  color: #075985;
  background: #bae6fd;
  border: 1px solid #7dd3fc;
}

.admin-style-slot-actions .admin-danger-button.compact {
  grid-column: auto;
}

.admin-style-limit {
  margin: -6px 0 16px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.admin-style-actions {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.admin-style-actions .admin-primary-button,
.admin-style-actions .admin-secondary-button,
.admin-style-actions .admin-danger-button {
  min-height: 46px;
  font-size: 14px;
}

.admin-style-actions .is-activate {
  color: #ffffff;
  background: #16a34a;
  border-color: #16a34a;
}

.admin-symbol-panel {
  grid-column: 1 / -1;
}

.admin-symbol-preview {
  min-height: 140px;
  display: grid;
  place-items: center;
  color: #64748b;
  background: #ffffff;
  border: 2px dashed #b9c8dc;
  border-radius: 16px;
}

.admin-symbol-preview img {
  max-width: 96px;
  max-height: 96px;
  object-fit: contain;
}

.admin-symbol-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.admin-symbol-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #d9e3f2;
  border-radius: 14px;
}

.admin-symbol-item span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  background: #eef4fb;
  border-radius: 14px;
}

.admin-symbol-item img {
  max-width: 38px;
  max-height: 38px;
  object-fit: contain;
}

.admin-symbol-item strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-danger-button.compact {
  grid-column: 1 / -1;
  min-height: 42px;
  font-size: 14px;
}

.admin-style-slot .admin-style-slot-actions .admin-danger-button.compact {
  grid-column: auto;
  min-height: 22px !important;
  font-size: 7pt !important;
}

.admin-message {
  min-height: 22px;
  margin: 0;
  color: #475569;
  font-weight: 700;
}

.admin-message.success {
  color: #15803d;
}

.admin-message.error {
  color: #b91c1c;
}

.admin-app-install-stats {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(15, 143, 120, 0.2);
  border-radius: 14px;
  background: #f2fbf7;
  color: var(--sarko-text);
}

.admin-app-install-stats strong {
  display: block;
  color: var(--sarko-primary-dark);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
}

.admin-app-install-stats span {
  display: block;
  margin-top: 4px;
  color: var(--sarko-muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.admin-app-install-stats .admin-app-install-count {
  display: inline;
  margin-top: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.admin-app-install-stats.is-error strong {
  color: #b91c1c;
}

html[data-theme="black"] .admin-app-install-stats {
  background: rgba(8, 35, 29, 0.96);
  border-color: rgba(134, 239, 172, 0.28);
  color: #e8fff5;
}

html[data-theme="black"] .admin-app-install-stats strong {
  color: #d9fff0;
}

html[data-theme="black"] .admin-app-install-stats span {
  color: #b7d7cc;
}

html[data-theme="black"] .admin-app-install-stats .admin-app-install-count {
  color: inherit;
}

.admin-security-risk {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  background: #ffffff;
}

.admin-security-risk-head,
.admin-security-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.admin-security-risk-head strong {
  display: block;
  font-size: 15px;
  font-weight: 900;
  color: var(--sarko-text);
}

.admin-security-risk-head span,
.admin-security-main span,
.admin-security-empty {
  color: var(--sarko-muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.admin-security-action-info {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 143, 120, 0.22);
  border-radius: 9px;
  background: rgba(15, 143, 120, 0.06);
  color: var(--sarko-text);
}

.admin-security-action-info strong {
  font-size: 12px;
  font-weight: 900;
  color: #08705f;
}

.admin-security-action-info span {
  color: var(--sarko-muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
}

.admin-security-action-info b {
  color: var(--sarko-text);
}

.admin-security-risk-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.admin-security-accordion {
  margin-top: 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.72);
  overflow: hidden;
}

.admin-security-accordion-toggle {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 0;
  background: transparent;
  color: var(--sarko-text);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.admin-security-accordion-arrow {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(15, 143, 120, 0.1);
  color: #0f8f78;
  font-size: 20px;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 0.18s ease;
}

.admin-security-accordion.is-open .admin-security-accordion-arrow {
  transform: rotate(90deg);
}

.admin-security-accordion:not(.is-open) .admin-security-risk-list {
  display: none;
}

.admin-security-accordion .admin-security-risk-list {
  margin: 0;
  padding: 0 8px 8px;
}

.admin-security-row {
  min-height: 42px;
  padding: 7px 8px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: #f8fafc;
}

.admin-security-row.is-blocked {
  border-color: rgba(220, 38, 38, 0.35);
  background: #fff5f5;
}

.admin-security-main {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  overflow: hidden;
}

.admin-security-main strong {
  flex: 0 1 auto;
  min-width: 58px;
  max-width: 160px;
  overflow: hidden;
  color: var(--sarko-text);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-security-main span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-security-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.admin-security-actions .compact {
  min-height: 28px;
  padding: 5px 8px;
  border-radius: 7px;
  font-size: 10px;
  line-height: 1;
}

.admin-security-actions .is-active-security-block {
  border-color: rgba(15, 143, 120, 0.72);
  background: #0f8f78;
  color: #fff;
  box-shadow: none;
}

html[data-theme="black"] .admin-security-risk {
  border-color: rgba(134, 239, 172, 0.2);
  background: rgba(8, 35, 29, 0.96);
}

html[data-theme="black"] .admin-security-action-info {
  border-color: rgba(134, 239, 172, 0.2);
  background: rgba(20, 184, 166, 0.1);
}

html[data-theme="black"] .admin-security-action-info strong {
  color: #7dd3fc;
}

html[data-theme="black"] .admin-security-action-info span {
  color: rgba(226, 232, 240, 0.78);
}

html[data-theme="black"] .admin-security-action-info b {
  color: #ffffff;
}

html[data-theme="black"] .admin-security-row {
  border-color: rgba(134, 239, 172, 0.18);
  background: rgba(15, 23, 42, 0.72);
}

html[data-theme="black"] .admin-security-accordion {
  border-color: rgba(134, 239, 172, 0.18);
  background: rgba(15, 23, 42, 0.44);
}

@media (max-width: 760px) {
  .admin-security-risk-head,
  .admin-security-row {
    grid-template-columns: 1fr;
  }

  .admin-security-main {
    flex-wrap: wrap;
    row-gap: 2px;
  }

  .admin-security-main span {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
  }

  .admin-security-actions {
    justify-content: flex-start;
  }
}

.admin-empty {
  color: #64748b;
}

@media (max-width: 860px) {
  .admin-header,
  .admin-layout,
  .admin-style-layout {
    grid-template-columns: 1fr;
  }

  .admin-header {
    display: grid;
  }
}

@media (max-width: 560px) {
  .admin-shell {
    width: min(100% - 20px, 1180px);
    padding: 12px 0;
  }

  .admin-login,
  .admin-dashboard,
  .admin-panel {
    padding: 16px;
    border-radius: 14px;
  }

  .admin-actions {
    grid-template-columns: 1fr;
  }

  .admin-style-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.style-access-page,
.qr-page {
  min-height: 100vh;
  color: #fff7ec;
  background: #11100e;
}

.style-access-shell,
.qr-shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
}

.style-access-hero {
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 360px);
  gap: 18px;
  align-items: stretch;
}

.style-access-copy,
.style-access-preview,
.style-steps article,
.qr-card {
  border: 1px solid rgba(230, 185, 113, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.style-access-copy {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: clamp(24px, 4vw, 46px);
}

.style-access-copy h1,
.qr-card h1 {
  color: #ffffff;
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1;
}

.style-access-copy p:not(.customer-kicker),
.qr-card p {
  max-width: 680px;
  color: #d4c8b9;
  font-size: 17px;
  line-height: 1.5;
}

.style-access-button {
  width: fit-content;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  color: #17110a;
  background: linear-gradient(135deg, #f4d59f, #c28131);
  border-radius: 12px;
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
}

.style-access-note {
  padding: 12px 14px;
  color: #ffb1a8 !important;
  background: rgba(185, 28, 28, 0.14);
  border: 1px solid rgba(255, 155, 143, 0.28);
  border-radius: 12px;
}

.style-access-preview {
  min-height: 360px;
  overflow: hidden;
}

.style-access-preview img,
.style-steps img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.style-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.style-steps article {
  min-width: 0;
  overflow: hidden;
}

.style-steps img {
  height: 130px;
  display: block;
  background: #1b1815;
}

.style-steps span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin: -18px 18px 12px;
  position: relative;
  color: #17110a;
  background: #f4d59f;
  border-radius: 50%;
  font-weight: 900;
}

.style-steps h2 {
  margin: 0 18px 8px;
  color: #ffffff;
  font-size: 18px;
}

.style-steps p {
  margin: 0 18px 20px;
  color: #c7baa9;
  font-size: 14px;
  line-height: 1.45;
}

.qr-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.qr-card {
  width: min(100%, 620px);
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 36px);
}

.qr-video-box {
  min-height: 360px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #c7baa9;
  background: #070707;
  border: 1px solid rgba(230, 185, 113, 0.3);
  border-radius: 16px;
}

.qr-video-box video {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.qr-message {
  min-height: 24px;
  margin: 0;
  color: #c7baa9;
  font-weight: 800;
}

.qr-message.success {
  color: #8adea5;
}

.qr-message.error {
  color: #ff9b8f;
}

.manual-qr-form {
  display: grid;
  gap: 10px;
}

.manual-qr-form label {
  color: #f8ead0;
  font-weight: 900;
}

.manual-qr-form input {
  min-height: 52px;
  padding: 0 14px;
  color: #ffffff;
  background: #171717;
  border: 1px solid rgba(230, 185, 113, 0.32);
  border-radius: 12px;
  font: inherit;
}

.manual-qr-form button,
.qr-back-link {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  font-weight: 900;
  text-decoration: none;
}

.manual-qr-form button {
  color: #17110a;
  background: #f4d59f;
}

.qr-back-link {
  color: #f8ead0;
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
  .style-access-hero,
  .style-steps {
    grid-template-columns: 1fr;
  }

  .style-access-preview {
    min-height: 220px;
  }

  .style-steps {
    gap: 12px;
  }

  .style-steps article {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-items: center;
  }

  .style-steps img {
    grid-row: 1 / 4;
    height: 100%;
    min-height: 112px;
  }

  .style-steps span,
  .style-steps h2,
  .style-steps p {
    grid-column: 2;
  }

  .style-steps span {
    margin: 14px 16px 6px;
  }

  .style-steps h2 {
    margin: 0 16px 4px;
  }

  .style-steps p {
    margin: 0 16px 14px;
  }
}

@media (max-width: 700px) {
  .style-access-preview {
    display: none;
  }
}

@media (max-width: 560px) {
  .style-access-shell,
  .qr-shell {
    width: min(100% - 16px, 1180px);
    padding: 10px 0;
  }

  .style-access-copy,
  .qr-card {
    padding: 16px;
    border-radius: 12px;
  }

  .style-access-hero {
    min-height: auto;
    gap: 12px;
  }

  .style-access-copy {
    gap: 12px;
  }

  .style-access-copy h1,
  .qr-card h1 {
    font-size: 30px;
    line-height: 1.02;
  }

  .style-access-copy p:not(.customer-kicker),
  .qr-card p {
    font-size: 16px;
    line-height: 1.45;
  }

  .style-access-button {
    width: 100%;
    min-height: 50px;
  }

  .style-steps {
    margin-top: 12px;
  }

  .style-steps article {
    grid-template-columns: 104px minmax(0, 1fr);
    min-height: 122px;
  }

  .style-steps img {
    min-height: 122px;
  }

  .style-steps span {
    width: 30px;
    height: 30px;
    margin: 12px 12px 5px;
    font-size: 14px;
  }

  .style-steps h2 {
    margin: 0 12px 4px;
    font-size: 16px;
  }

  .style-steps p {
    margin: 0 12px 12px;
    font-size: 13px;
    line-height: 1.3;
  }

  .qr-video-box,
  .qr-video-box video {
    min-height: 300px;
  }
}

@media (max-width: 420px) {
  .style-access-copy h1,
  .qr-card h1 {
    font-size: 28px;
  }

  .style-access-copy p:not(.customer-kicker),
  .qr-card p {
    font-size: 15px;
  }

  .style-steps article {
    grid-template-columns: 96px minmax(0, 1fr);
    min-height: 118px;
  }

  .style-steps img {
    min-height: 118px;
  }

  .style-steps h2 {
    font-size: 15px;
  }

  .style-steps p {
    font-size: 12px;
  }
}

/* Unified dark tablet design, matched to barber.html */
.customer-page,
.style-access-page,
.qr-page,
.admin-page {
  color: #f8fbff;
  background:
    radial-gradient(circle at 20% 0%, rgba(47, 122, 248, 0.10), transparent 30%),
    #070c12;
}

.customer-page::before {
  background:
    linear-gradient(90deg, rgba(47, 122, 248, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(47, 122, 248, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
}

.customer-page .customer-panel,
.style-access-copy,
.style-access-preview,
.style-steps article,
.qr-card,
.admin-login,
.admin-dashboard,
.admin-panel {
  color: #f8fbff;
  background: #101822;
  border: 1px solid #223249;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.customer-page .customer-header,
.admin-selected-card,
.qr-video-box {
  border-color: #223249;
}

.customer-page .brand-icon,
.customer-page .step-title span,
.style-steps span {
  color: #09111d;
  background: linear-gradient(135deg, #ffd68a, #eba33e);
}

.customer-kicker,
.rating,
.eyebrow {
  color: #72a8ff !important;
}

.customer-page .customer-header h1,
.style-access-copy h1,
.qr-card h1,
.admin-header h1,
.admin-login h1,
.admin-panel h2,
.customer-page .step-title h2,
.style-steps h2 {
  color: #ffffff;
}

.customer-page .customer-header p:not(.customer-kicker),
.style-access-copy p:not(.customer-kicker),
.qr-card p,
.style-steps p,
.admin-login .lead,
.admin-message,
.admin-empty,
.customer-page .privacy-note,
.customer-page .loading-text,
.customer-page .image-placeholder {
  color: #a7b4c7;
}

.customer-page .customer-step,
.customer-page .select-card,
.admin-employee-item,
.admin-selected-card,
.admin-symbol-item {
  color: #f8fbff;
  background: #141d28;
  border: 1px solid #253448;
}

.customer-page .select-card:hover,
.customer-page .select-card:focus-visible,
.customer-page .select-card.is-selected,
.admin-employee-item.is-active {
  border-color: #2f7af8;
  box-shadow: 0 0 0 1px #2f7af8 inset, 0 16px 34px rgba(0, 0, 0, 0.28);
}

.customer-page .select-card.is-selected {
  background: #183b70;
}

.customer-page .avatar-circle {
  color: #09111d;
  background: linear-gradient(135deg, #ffd68a, #eba33e);
}

.customer-page .employee-card small,
.admin-employee-item span,
.admin-selected-card span {
  color: #97a8bd;
}

.customer-page .hairstyle-card strong,
.customer-page .employee-card strong,
.admin-employee-item strong,
.admin-selected-card strong {
  color: #ffffff;
}

.customer-page .name-row input,
.customer-page .camera-button,
.manual-qr-form input,
.admin-form input[type="email"],
.admin-form input[type="password"],
.admin-form input[type="tel"],
.admin-form input[type="text"],
.admin-form input[type="file"] {
  color: #ffffff;
  background: #080d14;
  border: 1px solid #2a3b52;
}

.customer-page .name-row input:focus,
.manual-qr-form input:focus,
.admin-form input:focus {
  outline: 3px solid rgba(47, 122, 248, 0.26);
  border-color: #2f7af8;
}

.customer-page .name-row input::placeholder,
.manual-qr-form input::placeholder {
  color: #738297;
}

.customer-page .camera-button,
.qr-back-link {
  color: #dce8f8;
  background: #182536;
  border-color: #31445f;
}

.customer-page .send-order-button,
.manual-qr-form button,
.admin-primary-button,
.style-access-button {
  color: #ffffff;
  background: #2874f0;
  box-shadow: 0 16px 34px rgba(40, 116, 240, 0.24);
}

.customer-page .send-order-button:hover:not(:disabled),
.customer-page .send-order-button:focus-visible:not(:disabled),
.manual-qr-form button:hover,
.manual-qr-form button:focus-visible,
.admin-primary-button:hover,
.admin-primary-button:focus-visible,
.style-access-button:hover,
.style-access-button:focus-visible {
  background: #2f7af8;
  outline: 3px solid rgba(47, 122, 248, 0.26);
}

.customer-page .send-order-button:disabled {
  color: #7b8797;
  background: #233047;
  box-shadow: none;
}

.admin-shell {
  width: min(1040px, calc(100% - 32px));
}

.admin-header {
  color: #f8fbff;
}

.admin-header p {
  color: #a7b4c7;
}

.admin-secondary-button,
.admin-link-button {
  color: #dce8f8;
  background: #182536;
  border: 1px solid #31445f;
}

.admin-secondary-button:not(.is-activate):hover,
.admin-link-button:hover {
  border-color: #2f7af8;
}

.admin-secondary-button.is-activate {
  color: #ffffff;
  background: #15975e;
  border-color: #15975e;
}

.admin-danger-button {
  color: #ffffff;
  background: #dc2626;
}

.admin-employee-item.is-disabled {
  opacity: 1;
  border-color: #3b2430;
}

.admin-employee-item.is-disabled strong {
  color: #c7d2e0;
}

.admin-employee-item.is-disabled span {
  color: #f59aa0;
}

.admin-preview-box,
.admin-symbol-preview,
.admin-symbol-item span {
  color: #8fa0b7;
  background: #080d14;
  border-color: #2a3b52;
}

.admin-preview-box {
  border-style: dashed;
}

.admin-message.success {
  color: #45d18d;
}

.admin-message.error,
.customer-page .form-message.error,
.qr-message.error,
.style-access-note {
  color: #ff9aa8 !important;
}

.customer-page .form-message.success,
.qr-message.success {
  color: #45d18d;
}

.style-access-page,
.qr-page {
  background:
    radial-gradient(circle at 35% 0%, rgba(47, 122, 248, 0.09), transparent 32%),
    #070c12;
}

.style-access-copy,
.style-access-preview,
.style-steps article,
.qr-card {
  border-color: #223249;
  background: #101822;
}

.style-access-preview,
.style-steps img,
.qr-video-box {
  background: #080d14;
}

.style-access-note {
  background: rgba(220, 38, 38, 0.14);
  border-color: rgba(248, 113, 113, 0.34);
}

.customer-page .selection-grid {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.customer-page .selection-grid::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

/* Sarko Light Theme - inspired by the Dawakrden public layout */
:root {
  --sarko-page: #f6faf8;
  --sarko-surface: #ffffff;
  --sarko-soft: #eef6f2;
  --sarko-text: #17202b;
  --sarko-muted: #64748b;
  --sarko-line: #dde8e3;
  --sarko-primary: #0f8f78;
  --sarko-primary-dark: #08705f;
  --sarko-gold: #f6be61;
  --amanj-font-famil: "Manrope", Arial, Helvetica, sans-serif;
  --sarko-danger: #dc2626;
  --sarko-shadow: 0 18px 45px rgba(15, 46, 38, 0.12);
}

html[data-theme-variant="color"] {
  --bg: #f6f8f1;
  --surface: #fffdf7;
  --text: #172019;
  --muted: #6f7668;
  --primary: #0f8f78;
  --primary-dark: #0a6d62;
  --border: #d8e2d3;
  --shadow: 0 24px 70px rgba(72, 89, 75, 0.12);
}

.customer-page,
.barber-page,
.style-access-page,
.qr-page,
.admin-page {
  font-family: var(--amanj-font-famil) !important;
  color: var(--sarko-text);
  background:
    radial-gradient(circle at 18% 0%, rgba(15, 143, 120, 0.12), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, var(--sarko-page) 48%, #eef7f3 100%) !important;
}

.customer-page::before,
.style-access-page::before,
.qr-page::before,
.admin-page::before {
  display: none;
}

.customer-page .customer-panel,
.setup-panel,
.queue-panel,
.order-detail-panel,
.style-access-copy,
.style-access-preview,
.style-steps article,
.qr-card,
.admin-login,
.admin-dashboard,
.admin-panel,
.transfer-card,
.style-modal-card,
.photo-modal-card {
  color: var(--sarko-text);
  background: var(--sarko-surface) !important;
  border: 1px solid var(--sarko-line) !important;
  box-shadow: var(--sarko-shadow);
}

.customer-page .customer-header,
.admin-header,
.queue-header,
.detail-topbar {
  border-color: var(--sarko-line) !important;
}

.customer-page .customer-header h1,
.setup-panel h1,
.activeEmployeeName,
.detailTitle,
.style-access-copy h1,
.qr-card h1,
.admin-header h1,
.admin-login h1,
.admin-panel h2,
.customer-page .step-title h2,
.style-steps h2,
.queue-header h1,
.detail-topbar h2,
.customer-page .employee-card strong,
.customer-page .hairstyle-card strong,
.admin-employee-item strong,
.admin-selected-card strong,
.setup-employee-card strong,
.queue-item strong,
.transfer-employee strong {
  color: var(--sarko-text) !important;
}

.customer-page .customer-header p:not(.customer-kicker),
.setup-panel p,
.style-access-copy p:not(.customer-kicker),
.qr-card p,
.style-steps p,
.admin-login .lead,
.admin-message,
.admin-empty,
.customer-page .privacy-note,
.customer-page .loading-text,
.customer-page .image-placeholder,
.customer-page .employee-card small,
.admin-employee-item span,
.admin-selected-card span,
.setup-employee-card small,
.queue-meta,
.queue-item small,
.queue-item em,
.detailSubtitle,
.transfer-employee small,
.dark-loading {
  color: var(--sarko-muted) !important;
}

.customer-page .brand-icon,
.customer-page .step-title span,
.style-steps span,
.setup-order-count,
.avatar-circle,
.barber-profile-avatar,
.admin-mini-avatar,
.admin-avatar-large,
.admin-avatar-placeholder,
.transfer-employee span {
  color: #10251f !important;
  background: linear-gradient(135deg, #ffd987, var(--sarko-gold)) !important;
}

.customer-page .customer-step,
.customer-page .select-card,
.admin-employee-item,
.admin-selected-card,
.admin-symbol-item,
.setup-employee-card,
.queue-item,
.transfer-employee,
.thumb-button,
.style-thumb-button {
  color: var(--sarko-text);
  background: #ffffff !important;
  border-color: var(--sarko-line) !important;
  box-shadow: 0 12px 28px rgba(15, 46, 38, 0.08);
}

.customer-page .select-card:hover,
.customer-page .select-card:focus-visible,
.customer-page .select-card.is-selected,
.admin-employee-item.is-active,
.setup-employee-card:hover,
.setup-employee-card:focus-visible,
.queue-item:hover,
.queue-item:focus-visible,
.queue-item.is-selected,
.thumb-button.is-selected,
.thumb-button:hover,
.thumb-button:focus-visible,
.style-thumb-button:hover,
.style-thumb-button:focus-visible,
.style-thumb-button.is-active {
  background: #eef9f5 !important;
  border-color: var(--sarko-primary) !important;
  box-shadow: 0 16px 34px rgba(15, 143, 120, 0.16);
}

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

.admin-advanced-colors {
  background: #ffffff;
  border: 1px solid var(--sarko-line);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(15, 46, 38, .06);
}

.admin-advanced-colors summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: var(--sarko-text);
  font-weight: 950;
  cursor: pointer;
  list-style: none;
}

.admin-advanced-colors summary::-webkit-details-marker {
  display: none;
}

.admin-advanced-colors summary::after {
  content: "+";
  margin-left: auto;
  color: var(--sarko-primary);
  font-size: 22px;
  line-height: 1;
}

.admin-advanced-colors[open] summary {
  border-bottom: 1px solid var(--sarko-line);
}

.admin-advanced-colors[open] summary::after {
  content: "-";
}

.admin-advanced-colors .admin-color-grid {
  padding: 14px;
}

.admin-design-block {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
}

.admin-design-block div {
  display: grid;
  gap: 4px;
}

.admin-design-block strong {
  color: var(--sarko-text);
  font-size: 18px;
  font-weight: 950;
}

.admin-design-block span {
  color: var(--sarko-muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.admin-theme-presets {
  display: grid;
  grid-template-columns: repeat(5, minmax(132px, 1fr));
  gap: 12px;
}

.admin-theme-presets button {
  min-height: 128px;
  display: grid;
  align-content: space-between;
  gap: 14px;
  padding: 14px;
  text-align: left;
  color: var(--sarko-text);
  background: #ffffff;
  border: 1px solid var(--sarko-line);
  border-radius: 14px;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(15, 46, 38, .06);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.admin-theme-presets button:hover,
.admin-theme-presets button:focus-visible {
  transform: translateY(-2px);
  background: #f8fffc;
  border-color: var(--sarko-primary);
  box-shadow: 0 18px 36px rgba(15, 143, 120, .16);
  outline: none;
}

.admin-theme-presets button.is-active {
  background: #eef9f5;
  border-color: var(--sarko-primary);
  box-shadow: 0 0 0 3px rgba(15, 143, 120, .13), 0 18px 36px rgba(15, 143, 120, .14);
}

.theme-card-swatches {
  display: grid;
  grid-template-columns: 1.35fr 1fr .8fr;
  gap: 6px;
  min-height: 46px;
}

.theme-card-swatches i {
  display: block;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .36);
}

.theme-card-text {
  display: grid;
  gap: 3px;
}

.theme-card-text strong {
  color: var(--sarko-text);
  font-size: 15px;
  font-weight: 950;
}

.theme-card-text small {
  color: var(--sarko-muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-theme-preview {
  --preview-primary: var(--sarko-primary);
  --preview-primary-dark: var(--sarko-primary-dark);
  --preview-accent: var(--sarko-gold);
  padding: 0;
}

.theme-preview-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--preview-primary) 12%, #ffffff), #ffffff 58%),
    #ffffff;
  border: 1px solid var(--sarko-line);
  border-radius: 16px;
  box-shadow: 0 16px 34px rgba(15, 46, 38, .08);
}

.theme-preview-top,
.theme-preview-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.theme-preview-top strong {
  display: block;
  color: var(--sarko-text);
  font-size: 18px;
  font-weight: 950;
}

.theme-preview-top small {
  color: var(--sarko-muted);
  font-size: 13px;
  font-weight: 800;
}

.theme-preview-actions span {
  display: inline-grid;
  place-items: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  font-weight: 900;
}

.admin-theme-preview-button {
  color: #ffffff;
  background: var(--preview-primary);
}

.admin-theme-preview-hover {
  color: #ffffff;
  background: var(--preview-primary-dark);
}

.admin-theme-preview-avatar {
  width: 64px;
  height: 64px;
  padding: 0 !important;
  color: #10251f;
  background: var(--preview-accent);
  border-radius: 999px !important;
  display: inline-grid;
  place-items: center;
  font-weight: 950;
  box-shadow: 0 12px 24px color-mix(in srgb, var(--preview-accent) 34%, transparent);
}

.admin-color-grid label {
  display: grid;
  gap: 10px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 14px;
}

.admin-color-field span {
  font-weight: 900;
}

.admin-color-field small {
  color: var(--sarko-muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.admin-color-grid input[type="color"] {
  width: 100%;
  height: 54px;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}

.admin-settings-panel select {
  min-height: 48px;
  padding: 0 14px;
  color: var(--sarko-text);
  background: #ffffff;
  border: 1px solid var(--sarko-line);
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
}

.admin-settings-panel textarea {
  min-height: 150px;
  font-family: Consolas, Monaco, monospace;
}

.admin-font-preview {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: var(--sarko-text);
  background: #ffffff;
  border: 1px solid var(--sarko-line);
  border-radius: 8px;
  font-size: 24px;
  font-weight: 900;
}

@media (max-width: 720px) {
  .admin-theme-presets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-theme-presets button {
    min-height: 118px;
  }

  .theme-preview-card {
    padding: 14px;
  }

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

@media (max-width: 460px) {
  .admin-theme-presets {
    grid-template-columns: 1fr;
  }
}

.customer-page .employee-card.is-paused,
.setup-employee-card.is-paused {
  background: #fff7ed !important;
  border-color: #fdba74 !important;
  box-shadow: 0 12px 28px rgba(180, 83, 9, 0.10);
}

.customer-page .employee-card.is-paused:hover,
.customer-page .employee-card.is-paused:focus-visible,
.setup-employee-card.is-paused:hover,
.setup-employee-card.is-paused:focus-visible {
  border-color: #f97316 !important;
  box-shadow: 0 14px 30px rgba(180, 83, 9, 0.14);
  transform: none;
}

.employee-status-badge {
  color: var(--sarko-primary-dark) !important;
  background: #e4f6ef !important;
  border-color: #b9e6d7 !important;
}

.employee-card.is-paused .employee-status-badge,
.setup-employee-card.is-paused .employee-status-badge {
  color: #991b1b !important;
  background: #fee2e2 !important;
  border-color: #fecaca !important;
}

.customer-page .employee-card.is-paused .avatar-circle,
.setup-employee-card.is-paused .setup-photo-placeholder {
  filter: grayscale(.78);
  opacity: .72;
}

.customer-page .name-row input,
.customer-page .camera-button,
.manual-qr-form input,
.admin-form input[type="email"],
.admin-form input[type="password"],
.admin-form input[type="tel"],
.admin-form input[type="text"],
.admin-form input[type="file"] {
  color: var(--sarko-text) !important;
  background: #ffffff !important;
  border-color: #cfded8 !important;
}

.customer-page .name-row input::placeholder,
.manual-qr-form input::placeholder {
  color: #8a98aa !important;
}

.customer-page .name-row input:focus,
.manual-qr-form input:focus,
.admin-form input:focus {
  outline: 3px solid rgba(15, 143, 120, 0.18) !important;
  border-color: var(--sarko-primary) !important;
}

.customer-page .camera-button,
.qr-back-link,
.dark-ghost-button,
.admin-secondary-button,
.admin-link-button {
  color: var(--sarko-primary-dark) !important;
  background: #eef7f3 !important;
  border-color: #cfe5dd !important;
}

.customer-page .send-order-button,
.manual-qr-form button,
.admin-primary-button,
.style-access-button,
.barber-action-button.done,
.barber-status-button.is-active {
  color: #ffffff !important;
  background: var(--sarko-primary) !important;
  box-shadow: 0 14px 30px rgba(15, 143, 120, 0.22);
}

.customer-page .send-order-button:hover:not(:disabled),
.customer-page .send-order-button:focus-visible:not(:disabled),
.manual-qr-form button:hover,
.manual-qr-form button:focus-visible,
.admin-primary-button:hover,
.admin-primary-button:focus-visible,
.style-access-button:hover,
.style-access-button:focus-visible,
.barber-action-button.done:hover,
.barber-action-button.done:focus-visible {
  background: var(--sarko-primary-dark) !important;
}

.barber-action-button.transfer,
.style-modal-button.choose {
  color: #ffffff !important;
  background: #2f73e8 !important;
}

.customer-page .send-order-button:disabled,
.barber-action-button:disabled {
  color: #8a98aa !important;
  background: #dde7ee !important;
  box-shadow: none;
}

.admin-secondary-button.is-activate {
  color: #ffffff !important;
  background: var(--sarko-primary) !important;
  border-color: var(--sarko-primary) !important;
}

.admin-danger-button,
.barber-status-button.is-inactive,
.drawing-tool-button.danger {
  color: #ffffff !important;
  background: var(--sarko-danger) !important;
}

.barber-status-switch {
  color: var(--sarko-text) !important;
  background: #ffffff !important;
  border-color: #cfe5dd !important;
  box-shadow: 0 12px 28px rgba(15, 46, 38, 0.10);
}

.barber-status-switch:hover,
.barber-status-switch:focus-visible {
  border-color: var(--sarko-primary) !important;
  box-shadow: 0 16px 34px rgba(15, 143, 120, 0.16);
}

.barber-status-switch-track {
  background: #e5edf3 !important;
  border-color: #d3dee7 !important;
}

.barber-status-switch-thumb {
  background: #ffffff !important;
}

.barber-status-switch-text strong {
  color: var(--sarko-text) !important;
}

.barber-status-switch-text small {
  color: var(--sarko-muted) !important;
}

.barber-status-switch.is-active .barber-status-switch-track {
  background: rgba(15, 143, 120, .22) !important;
  border-color: rgba(15, 143, 120, .30) !important;
}

.barber-status-switch.is-active .barber-status-switch-thumb {
  background: var(--sarko-primary) !important;
}

.barber-status-switch.is-inactive .barber-status-switch-track {
  background: #fee2e2 !important;
  border-color: #fecaca !important;
}

.barber-status-switch.is-inactive .barber-status-switch-thumb {
  background: var(--sarko-danger) !important;
}

.hairstyle-image,
.main-style-image,
.thumb-button span,
.style-thumb-button span,
.style-modal-main,
.style-access-preview,
.style-steps img,
.qr-video-box,
.admin-preview-box,
.admin-symbol-preview,
.admin-symbol-item span,
.setup-photo-placeholder,
.queue-image,
.photo-zoom-card {
  color: var(--sarko-muted) !important;
  background: #f1f6f4 !important;
  border-color: var(--sarko-line) !important;
}

.setup-photo-placeholder svg,
.queue-image svg {
  stroke: #7b8b9c !important;
}

.status-pill,
.queue-item b {
  color: var(--sarko-primary-dark) !important;
  background: #e4f6ef !important;
}

.drawing-tool-button {
  color: var(--sarko-text) !important;
  background: rgba(255, 255, 255, 0.88) !important;
  border-color: rgba(23, 32, 43, 0.18) !important;
}

.drawing-tool-button svg {
  stroke: currentColor !important;
}

.stroke-size-panel,
.shape-tool-menu {
  color: var(--sarko-text) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: var(--sarko-line) !important;
}

.photo-modal,
.photo-zoom-modal,
.style-modal,
.transfer-modal {
  background: rgba(9, 24, 19, 0.42) !important;
}

.customer-page .form-message.success,
.qr-message.success,
.admin-message.success {
  color: var(--sarko-primary-dark) !important;
}

.admin-message.error,
.customer-page .form-message.error,
.qr-message.error,
.style-access-note {
  color: #b91c1c !important;
}

.style-access-note {
  background: #fff1f2 !important;
  border-color: #fecdd3 !important;
}

@media (max-width: 720px) {
  .customer-page,
  .barber-page,
  .style-access-page,
  .qr-page,
  .admin-page {
    background: var(--sarko-page) !important;
  }

  .customer-page .customer-panel,
  .setup-panel,
  .queue-panel,
  .order-detail-panel,
  .style-access-copy,
  .style-access-preview,
  .style-steps article,
  .qr-card,
  .admin-login,
  .admin-dashboard,
  .admin-panel {
    border-radius: 20px !important;
    box-shadow: 0 10px 28px rgba(15, 46, 38, 0.10);
  }
}

/* MyBarber default placeholder logo */
.barber-setup-logo,
.barber-dashboard-logo,
.qr-display-logo,
.brand-letter-logo,
.customer-page .brand-icon.customer-brand-logo,
.style-access-preview img {
  object-fit: contain !important;
  padding: 8px !important;
  background: #eef0f2 !important;
  border: 1px solid #d6dadd !important;
  border-radius: 16px !important;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.10) !important;
}

.brand-letter-logo {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #0e8f78, #d2a23a) !important;
}

.barber-setup-logo {
  width: 120px !important;
  height: 120px !important;
  font-size: 66px !important;
}

/* Customer view: flatter structure with fewer visible containers */
.customer-page .customer-panel {
  padding: 28px 32px !important;
}

.customer-page .customer-form {
  gap: 0 !important;
}

.customer-page .customer-step {
  gap: 14px !important;
  padding: 22px 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid var(--sarko-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.customer-page .customer-step:first-child {
  border-top: 0 !important;
  padding-top: 18px !important;
}

.customer-page .send-step {
  padding-bottom: 0 !important;
}

.customer-page .selection-grid {
  gap: 10px !important;
}

.customer-page .select-card {
  min-height: 132px !important;
  padding: 10px !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

.customer-page .select-card:hover,
.customer-page .select-card:focus-visible,
.customer-page .select-card.is-selected {
  box-shadow: 0 0 0 1px var(--sarko-primary) inset !important;
  transform: none !important;
}

.customer-page .name-row input,
.customer-page .camera-button,
.customer-page .send-order-button {
  min-height: 52px !important;
  border-radius: 10px !important;
}

.customer-page .custom-style-card small {
  color: var(--sarko-muted) !important;
  font-size: 11px !important;
  line-height: 1.3 !important;
  text-align: center !important;
}

.customer-page .custom-style-card strong {
  max-width: 100% !important;
  line-height: 1.2 !important;
}

.customer-page .custom-style-icon {
  display: grid !important;
  place-items: center !important;
  min-height: 86px !important;
  color: #10251f !important;
  background: linear-gradient(135deg, #ffd987, var(--sarko-gold)) !important;
  border-radius: 8px !important;
  padding: 14px !important;
  font-size: inherit !important;
  font-weight: inherit !important;
}

.customer-page .custom-style-image-copy strong {
  color: #10251f !important;
  font-size: clamp(15px, 1.35vw, 18px) !important;
  line-height: 1.16 !important;
}

.customer-page .custom-style-image-copy small {
  color: #425466 !important;
  font-size: 11px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
}

.customer-language-switch {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 999px;
  flex: 0 0 auto;
}

.customer-language-switch button {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 42px;
  padding: 0;
  color: var(--sarko-muted);
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(15, 143, 120, .2);
  border-radius: 14px;
  font: inherit;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(15, 37, 48, .1);
  cursor: pointer;
}

.customer-language-switch button.is-active {
  color: #063f33;
  background: #d8ffc9;
  border-color: #9be6a7;
  box-shadow: inset 0 0 0 1px #9be6a7, 0 7px 16px rgba(155, 230, 167, .14);
}

.customer-language-switch .customer-language-flag {
  display: grid;
  place-items: center;
  width: 100%;
  font-size: 24px;
  line-height: 1;
}

.customer-language-switch button:focus-visible {
  outline: 3px solid rgba(15, 143, 120, 0.25);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .customer-page .customer-panel {
    padding: 20px !important;
  }

  .customer-page .customer-step {
    padding: 18px 0 !important;
  }

  .customer-language-switch {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }
}

/* Admin team view: fewer visible containers, same structure */
.admin-page .admin-layout {
  gap: 18px !important;
}

.admin-page .admin-panel[data-admin-section="team"] {
  padding: 18px !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.admin-page .admin-panel[data-admin-section="team"] + .admin-panel[data-admin-section="team"] {
  border-left: 1px solid var(--sarko-line) !important;
  border-radius: 0 !important;
}

.admin-page .admin-panel[data-admin-section="calendar"] {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: none !important;
}

.admin-page .admin-panel[data-admin-section="calendar"] .admin-calendar-shell {
  width: 100% !important;
  max-width: none !important;
}

.admin-page .admin-panel[data-admin-section="calendar"] .admin-calendar-employee-rail {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
}

.admin-page .admin-employee-list {
  gap: 8px !important;
}

.admin-page .admin-employee-item,
.admin-page .admin-selected-card {
  box-shadow: none !important;
}

.admin-page .admin-employee-item {
  padding: 12px 14px !important;
  border-radius: 10px !important;
}

.admin-page .admin-selected-card {
  padding: 14px !important;
  border-radius: 10px !important;
}

.admin-page .admin-subheading {
  margin-top: 20px !important;
  padding-top: 18px !important;
}

/* Admin styles view: remove visible outer container, keep layout */
.admin-page .admin-style-panel {
  padding: 0 !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.admin-page .admin-style-panel .admin-panel-heading,
.admin-page .admin-style-panel .admin-style-limit {
  padding: 0 2px !important;
}

.admin-page .admin-style-layout {
  gap: 18px !important;
}

.admin-page .admin-style-layout > div,
.admin-page .admin-hairstyle-form {
  padding: 16px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.admin-page .admin-style-layout > div {
  border-right: 1px solid var(--sarko-line) !important;
}

/* Admin design/security views: remove visible outer containers */
.admin-page .admin-settings-panel,
.admin-page .admin-panel[data-admin-section="security"],
.admin-page .admin-booking-panel {
  padding: 0 !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.admin-page .admin-booking-panel {
  grid-column: 1 / -1 !important;
}

.admin-page .admin-settings-panel form,
.admin-page .admin-panel[data-admin-section="security"] form {
  padding: 0 2px !important;
}

/* Admin style editor: compact editing size */
.admin-page .admin-style-preview-main {
  min-height: 0 !important;
  height: min(42vw, 330px) !important;
  max-height: 330px !important;
  border-radius: 12px !important;
}

.admin-page .admin-style-preview-main img {
  width: 100% !important;
  height: 100% !important;
  max-height: 330px !important;
  object-fit: contain !important;
}

.admin-page .admin-style-slots {
  grid-template-columns: repeat(4, minmax(92px, 1fr)) !important;
  gap: 8px !important;
}

.admin-page .admin-style-slot {
  gap: 5px !important;
  padding: 6px !important;
  border-radius: 10px !important;
}

.admin-page .admin-style-slot-preview {
  aspect-ratio: 4 / 3 !important;
  border-radius: 8px !important;
}

.admin-page .admin-style-slot-title {
  font-size: 13px !important;
  line-height: 1.1 !important;
}

.admin-page .admin-style-slot-actions {
  gap: 4px !important;
}

.admin-page .admin-style-actions {
  gap: 8px !important;
}

@media (max-width: 720px) {
  .admin-page .admin-style-preview-main {
    height: 260px !important;
  }

  .admin-page .admin-style-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Admin style editor: image editing uses full marked width */
.admin-page .admin-style-layout {
  align-items: start !important;
}

.admin-page .admin-hairstyle-form {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  column-gap: 16px !important;
}

.admin-page .admin-hairstyle-form > input[type="hidden"],
.admin-page .admin-hairstyle-form > .admin-checkbox,
.admin-page .admin-style-preview-main,
.admin-page .admin-style-slots,
.admin-page .admin-style-actions,
.admin-page #hairstyleMessage {
  grid-column: 1 / -1 !important;
}

.admin-page .admin-style-preview-main {
  height: min(46vw, 430px) !important;
  max-height: 430px !important;
}

.admin-page .admin-style-preview-main img {
  max-height: 430px !important;
}

.admin-page .admin-style-slots {
  grid-template-columns: repeat(4, minmax(120px, 1fr)) !important;
}

@media (max-width: 900px) {
  .admin-page .admin-hairstyle-form {
    grid-template-columns: 1fr !important;
  }
}

/* Admin header logo: remove visible preview container */
.admin-page .admin-logo-preview {
  position: relative !important;
  width: 250px !important;
  height: 170px !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  padding: 14px 14px 58px !important;
  color: var(--sarko-muted) !important;
  background: rgba(238, 240, 242, 0.78) !important;
  border: 1px solid var(--sarko-line) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}

.admin-page .admin-logo-preview > span {
  margin: 0 !important;
  font-size: 13px !important;
}

.admin-page .admin-logo-preview img {
  position: static !important;
  width: 205px !important;
  height: 112px !important;
  object-fit: contain !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
}

.admin-page .admin-logo-glass {
  position: absolute !important;
  left: 10px !important;
  right: 10px !important;
  bottom: 10px !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
  padding: 8px !important;
  background: rgba(255, 255, 255, 0.82) !important;
  border: 1px solid rgba(255, 255, 255, 0.75) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  backdrop-filter: blur(10px) !important;
}

/* Customer photo button: keep it aligned with the name field. */
.customer-page .name-row {
  grid-template-columns: minmax(0, 1fr) 58px !important;
  gap: 10px !important;
  align-items: stretch !important;
}

.customer-page .name-row input,
.customer-page .camera-button {
  min-height: 42px !important;
  height: 42px !important;
  border-radius: 8px !important;
}

.customer-page .camera-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 58px !important;
  padding: 0 !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

/* Barber tablet final light mode. Keep tablet view consistent with localhost desktop. */
.barber-page {
  color: var(--sarko-text) !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(15, 143, 120, 0.12), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, var(--sarko-page) 48%, #eef7f3 100%) !important;
}

.barber-page .setup-panel,
.barber-page .queue-panel,
.barber-page .order-detail-panel,
.barber-page .transfer-card {
  color: var(--sarko-text) !important;
  background: var(--sarko-surface) !important;
  border-color: var(--sarko-line) !important;
  box-shadow: var(--sarko-shadow) !important;
}

.barber-page .setup-panel h1,
.barber-page .queue-header h1,
.barber-page .detail-topbar h2,
.barber-page .setup-employee-card strong,
.barber-page .queue-item strong,
.barber-page .transfer-employee strong {
  color: var(--sarko-text) !important;
}

.barber-page .setup-panel p,
.barber-page .setup-employee-card small,
.barber-page .queue-meta,
.barber-page .queue-item small,
.barber-page .queue-item em,
.barber-page .dark-loading {
  color: var(--sarko-muted) !important;
}

.barber-page .setup-employee-card,
.barber-page .queue-item,
.barber-page .transfer-employee {
  color: var(--sarko-text) !important;
  background: #ffffff !important;
  border-color: var(--sarko-line) !important;
  box-shadow: 0 12px 28px rgba(15, 46, 38, 0.08) !important;
}

.barber-page .setup-photo-placeholder,
.barber-page .queue-image,
.barber-page .barber-profile-avatar {
  color: var(--sarko-muted) !important;
  background: #eef6f2 !important;
  border-color: var(--sarko-line) !important;
}

/* Barber tablet setup: balanced employee selection layout. */
.barber-page .barber-setup {
  align-content: center !important;
  gap: 18px !important;
  padding: clamp(18px, 3vw, 34px) !important;
}

.barber-page .setup-panel {
  width: min(100%, 760px) !important;
  min-height: 0 !important;
  padding: clamp(28px, 4vw, 42px) !important;
}

.barber-page #setupTitle {
  margin: 0 !important;
  color: #5d6d84 !important;
  font-size: 16px !important;
  font-weight: 950 !important;
  letter-spacing: .02em !important;
}

.barber-page .setup-employee-grid {
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  flex-wrap: wrap !important;
  grid-auto-columns: unset !important;
  grid-template-columns: unset !important;
  grid-template-rows: auto !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: 16px !important;
  margin-top: 24px !important;
  padding: 0 !important;
  overflow: visible !important;
  scroll-snap-type: none !important;
}

.barber-page .setup-employee-card {
  width: 176px !important;
  min-height: 176px !important;
  padding: 14px !important;
  border-radius: 16px !important;
}

.barber-page .setup-photo-placeholder {
  width: 84px !important;
  height: 84px !important;
}

.barber-page .setup-employee-card strong {
  font-size: 18px !important;
  line-height: 1.15 !important;
  text-align: center !important;
}

.barber-page .setup-employee-card small {
  font-size: 14px !important;
}

@media (max-width: 820px) {
  .barber-page .setup-panel {
    width: min(100%, 560px) !important;
  }
}

@media (max-width: 480px) {
  .barber-page .setup-employee-grid {
    width: 100% !important;
  }

  .barber-page .setup-employee-card {
    width: 100% !important;
  }
}

/* Barber tablet visual scale v19 */
.barber-page .barber-setup-logo {
  width: clamp(112px, 14vw, 170px) !important;
  height: clamp(112px, 14vw, 170px) !important;
  padding: 10px !important;
  border-radius: 18px !important;
  box-shadow: 0 22px 48px rgba(15, 46, 38, 0.18) !important;
}

.barber-page .setup-panel {
  width: min(100%, 880px) !important;
}

.barber-page .setup-employee-grid {
  gap: 20px !important;
}

.barber-page .setup-employee-card {
  width: clamp(205px, 20vw, 270px) !important;
  min-height: clamp(250px, 25vw, 320px) !important;
  padding: 20px 16px 18px !important;
  border-radius: 18px !important;
  box-shadow: 0 20px 42px rgba(15, 46, 38, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease !important;
}

.barber-page .setup-employee-card:hover,
.barber-page .setup-employee-card:focus-visible {
  transform: translateY(-6px) !important;
  box-shadow: 0 30px 58px rgba(15, 46, 38, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

.barber-page .setup-photo-placeholder {
  width: clamp(128px, 13vw, 178px) !important;
  height: clamp(128px, 13vw, 178px) !important;
  margin-bottom: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 18px 34px rgba(15, 46, 38, 0.16) !important;
}

.barber-page .setup-photo-placeholder img,
.barber-page .barber-profile-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.barber-page .setup-employee-card strong {
  font-size: clamp(22px, 2vw, 30px) !important;
  line-height: 1.05 !important;
}

.barber-page .setup-employee-card small {
  font-size: 13px !important;
}

.barber-page .barber-profile-avatar {
  width: 92px !important;
  height: 92px !important;
  overflow: hidden !important;
  box-shadow: 0 18px 34px rgba(15, 46, 38, 0.18) !important;
}

.barber-page .queue-image {
  box-shadow: 0 16px 30px rgba(15, 46, 38, 0.16) !important;
}

.barber-page .order-detail-panel {
  padding: clamp(16px, 2vw, 26px) clamp(18px, 2.4vw, 32px) !important;
}

.barber-page .detail-topbar {
  gap: 14px !important;
  margin-bottom: 8px !important;
}

.barber-page .status-pill {
  margin-bottom: 6px !important;
  padding: 5px 9px !important;
  font-size: 11px !important;
}

.barber-page .detail-topbar h2 {
  font-size: clamp(20px, 2.2vw, 30px) !important;
  line-height: 1.08 !important;
}

.barber-page .detail-topbar p:last-child {
  margin-top: 4px !important;
  font-size: clamp(13px, 1.2vw, 16px) !important;
}

.barber-page .barber-dashboard-logo {
  width: clamp(110px, 12vw, 165px) !important;
  height: clamp(76px, 8vw, 104px) !important;
  box-shadow: 0 18px 38px rgba(15, 46, 38, 0.14) !important;
}

.barber-page .order-detail {
  gap: 9px !important;
}

.barber-page .main-style-image {
  --style-image-height: clamp(500px, 68vh, 820px) !important;
  border-radius: 18px !important;
  box-shadow: 0 20px 48px rgba(15, 46, 38, 0.16) !important;
}

.barber-page .drawing-toolbar {
  top: 12px !important;
  right: 12px !important;
  gap: 6px !important;
}

.barber-page .drawing-tool-button {
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
}

.barber-page .drawing-tool-button svg {
  width: 19px !important;
  height: 19px !important;
}

.barber-page .drawing-tool-button img {
  width: 21px !important;
  height: 21px !important;
}

.barber-page .drawing-tool-button.mini {
  width: 34px !important;
  height: 34px !important;
  border-radius: 9px !important;
}

.barber-page .stroke-size-panel {
  right: 46px !important;
  width: 210px !important;
  padding: 10px !important;
  border-radius: 12px !important;
}

.barber-page .shape-tool-menu {
  right: 46px !important;
  grid-template-columns: repeat(2, 36px) !important;
  gap: 6px !important;
  padding: 6px !important;
  border-radius: 12px !important;
}

.barber-page .thumb-strip {
  width: min(100%, 540px) !important;
  gap: 6px !important;
}

.barber-page .thumb-button {
  padding: 4px !important;
  border-radius: 10px !important;
}

.barber-page .thumb-button strong {
  font-size: 11px !important;
}

.barber-page .detail-actions {
  width: min(100%, 620px) !important;
  gap: 8px !important;
  justify-self: center !important;
}

.barber-page .barber-action-button {
  min-height: 40px !important;
  padding: 8px 12px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
}

@media (max-width: 980px) {
  .barber-page .main-style-image {
    --style-image-height: clamp(430px, 56vh, 700px) !important;
  }
}

/* Barber setup reset v20: restore compact 3x2 employee start screen. */
.barber-page .barber-setup-logo {
  width: 92px !important;
  height: 92px !important;
  padding: 8px !important;
  border-radius: 14px !important;
  box-shadow: 0 14px 34px rgba(15, 46, 38, 0.10) !important;
}

.barber-page .setup-panel {
  width: min(100%, 760px) !important;
}

.barber-page .setup-employee-grid {
  gap: 16px !important;
  margin-top: 24px !important;
  justify-content: center !important;
}

.barber-page .setup-employee-card {
  width: 176px !important;
  min-height: 176px !important;
  padding: 14px !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 28px rgba(15, 46, 38, 0.08) !important;
  transform: none !important;
}

.barber-page .setup-employee-card:hover,
.barber-page .setup-employee-card:focus-visible {
  transform: none !important;
  box-shadow: 0 16px 34px rgba(15, 143, 120, 0.16) !important;
}

.barber-page .setup-photo-placeholder {
  width: 84px !important;
  height: 84px !important;
  margin-bottom: 0 !important;
  box-shadow: none !important;
}

.barber-page .setup-employee-card strong {
  font-size: 18px !important;
  line-height: 1.15 !important;
}

.barber-page .setup-employee-card small {
  font-size: 14px !important;
}

/* Barber setup v21: show up to 8 employees in two rows with larger photos. */
.barber-page .setup-panel {
  width: min(100%, 980px) !important;
}

.barber-page .setup-employee-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 194px)) !important;
  justify-content: center !important;
  gap: 18px !important;
  margin-top: 26px !important;
}

.barber-page .setup-employee-card {
  width: 194px !important;
  min-height: 194px !important;
  padding: 15px !important;
}

.barber-page .setup-photo-placeholder {
  width: 92px !important;
  height: 92px !important;
}

.barber-page .setup-employee-card strong {
  font-size: 20px !important;
}

.barber-page .setup-employee-card small {
  font-size: 15px !important;
}

@media (max-width: 920px) {
  .barber-page .setup-panel {
    width: min(100%, 760px) !important;
    padding: 28px 20px !important;
  }

  .barber-page .setup-employee-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .barber-page .setup-employee-card {
    width: auto !important;
    min-height: 164px !important;
    padding: 11px 8px !important;
  }

  .barber-page .setup-photo-placeholder {
    width: 72px !important;
    height: 72px !important;
  }

  .barber-page .setup-employee-card strong {
    font-size: 15px !important;
  }

  .barber-page .setup-employee-card small {
    font-size: 12px !important;
  }
}

/* Tablet admin area: final home for kiosk/tablet setup inside the real admin. */
.admin-page .admin-tablet-panel {
  padding: 0 !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.admin-page .admin-tablet-note {
  margin: 8px 0 0 !important;
  color: var(--sarko-muted) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}

.admin-page .admin-tablet-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin-top: 18px !important;
}

.admin-page .admin-tablet-card,
.admin-page .admin-tablet-control {
  padding: 18px !important;
  background: #ffffff !important;
  border: 1px solid var(--sarko-line) !important;
  border-radius: 8px !important;
  box-shadow: 0 12px 28px rgba(15, 46, 38, 0.08) !important;
}

.admin-page .admin-tablet-card h3,
.admin-page .admin-tablet-control h3 {
  margin: 0 0 8px !important;
  color: var(--sarko-text) !important;
  font-size: 18px !important;
}

.admin-page .admin-tablet-card p,
.admin-page .admin-tablet-control p {
  margin: 0 0 12px !important;
  color: var(--sarko-muted) !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}

.admin-page .admin-tablet-card code {
  display: block !important;
  padding: 10px 12px !important;
  color: var(--sarko-primary-dark) !important;
  background: #eef7f3 !important;
  border: 1px solid #cfe5dd !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  white-space: normal !important;
}

.admin-page .admin-tablet-card a {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 40px !important;
  padding: 0 14px !important;
  color: #ffffff !important;
  background: var(--sarko-primary) !important;
  border-radius: 8px !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}

.admin-page .admin-tablet-card a:hover,
.admin-page .admin-tablet-card a:focus-visible {
  background: var(--sarko-primary-dark) !important;
  outline: none !important;
}

.admin-page .admin-tablet-control {
  margin-top: 14px !important;
}

.admin-page .admin-tablet-control-accordion {
  margin-top: 14px !important;
}

.admin-page .admin-tablet-control-body {
  min-width: 0 !important;
}

.admin-page .admin-tablet-control-body .admin-tablet-control-head {
  align-items: center !important;
}

.admin-page .admin-tablet-control-body .admin-tablet-actions {
  margin: 0 !important;
}

.admin-page .admin-tablet-control-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 14px !important;
}

.admin-page .admin-tablet-head-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  flex: 0 0 auto !important;
  flex-wrap: nowrap !important;
}

.admin-page .admin-tablet-head-actions .admin-secondary-button {
  min-height: 36px !important;
  min-width: 120px !important;
  padding: 0 14px !important;
  font-size: 14px !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}

.admin-page .admin-barber-code-control {
  display: grid !important;
  gap: 14px !important;
}

.admin-page .admin-barber-code-value {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 112px !important;
  min-height: 58px !important;
  padding: 0 18px !important;
  border-radius: 12px !important;
  background: #eef7f3 !important;
  border: 1px solid #bfe1d8 !important;
  color: #0f7662 !important;
  font-size: 30px !important;
  font-weight: 950 !important;
  letter-spacing: 7px !important;
  line-height: 1 !important;
}

html[data-theme="black"] .admin-page .admin-barber-code-value,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-page .admin-barber-code-value {
  background: rgba(31, 41, 55, 0.96) !important;
  border-color: rgba(94, 241, 188, 0.38) !important;
  color: #5ef1bc !important;
}

.admin-page .admin-tablet-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin: 12px 0 !important;
  }

.admin-page .admin-tablet-schedule {
  width: min(370px, 100%) !important;
  margin: 16px 0 0 auto !important;
  padding: 14px !important;
  background: #f8fbfa !important;
  border: 1px solid var(--sarko-line) !important;
  border-radius: 8px !important;
}

.admin-page .admin-tablet-schedule-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
}

.admin-page .admin-tablet-schedule-head strong {
  display: block !important;
  color: var(--sarko-text) !important;
  font-size: 15px !important;
  font-weight: 900 !important;
}

.admin-page .admin-tablet-schedule-head span {
  display: block !important;
  margin-top: 2px !important;
  color: var(--sarko-muted) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.admin-page .admin-toggle-switch {
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  min-height: 38px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--sarko-muted) !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

.admin-page .admin-toggle-switch-track {
  width: 54px !important;
  height: 30px !important;
  display: block !important;
  padding: 3px !important;
  box-sizing: border-box !important;
  background: #dbe7e3 !important;
  border: 1px solid #c7d8d3 !important;
  border-radius: 999px !important;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease !important;
}

.admin-page .admin-toggle-switch-thumb {
  width: 22px !important;
  height: 22px !important;
  display: block !important;
  background: #ffffff !important;
  border-radius: 50% !important;
  box-shadow: 0 7px 16px rgba(15, 46, 38, .18) !important;
  transition: transform .18s ease !important;
}

.admin-page .admin-toggle-switch.is-active {
  color: var(--sarko-primary-dark) !important;
}

.admin-page .admin-toggle-switch.is-active .admin-toggle-switch-track {
  background: var(--sarko-primary) !important;
  border-color: var(--sarko-primary) !important;
  box-shadow: 0 12px 26px rgba(15, 143, 120, .20) !important;
}

.admin-page .admin-toggle-switch.is-active .admin-toggle-switch-thumb {
  transform: translateX(24px) !important;
}

.admin-page .admin-tablet-schedule-times {
  display: grid !important;
  grid-template-columns: 1fr 1fr auto !important;
  gap: 10px !important;
  align-items: end !important;
  margin-top: 12px !important;
}

.admin-page .admin-tablet-schedule-times label {
  display: grid !important;
  gap: 5px !important;
  color: var(--sarko-text) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.admin-page .admin-tablet-schedule-times input {
  min-height: 42px !important;
  box-sizing: border-box !important;
  padding: 0 10px !important;
  border: 1px solid var(--sarko-line) !important;
  border-radius: 8px !important;
  color: var(--sarko-text) !important;
  background: #ffffff !important;
  font-weight: 900 !important;
}

.admin-page .admin-tablet-schedule-times .admin-secondary-button {
  min-height: 42px !important;
}

@media (max-width: 720px) {
  .admin-page .admin-tablet-schedule {
    margin-right: 0 !important;
  }

  .admin-page .admin-tablet-schedule-times {
    grid-template-columns: 1fr !important;
  }
}

.admin-page .admin-tablet-brightness {
    display: grid !important;
    grid-template-columns: minmax(180px, 1fr) auto !important;
    gap: 10px 14px !important;
    align-items: center !important;
    margin: 14px 0 !important;
    padding: 14px !important;
    background: #f8fbfa !important;
    border: 1px solid var(--sarko-line) !important;
    border-radius: 8px !important;
  }

.admin-page .admin-tablet-brightness label {
    grid-column: 1 / -1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    color: var(--sarko-text) !important;
    font-weight: 900 !important;
  }

.admin-page .admin-tablet-brightness strong {
    color: var(--sarko-primary-dark) !important;
    font-size: 18px !important;
  }

.admin-page .admin-tablet-brightness input[type="range"] {
    width: 100% !important;
    accent-color: var(--sarko-primary) !important;
  }

  .admin-page .admin-tablet-actions button:disabled {
    cursor: not-allowed !important;
    opacity: .58 !important;
    box-shadow: none !important;
  }

.admin-page .admin-tablet-list {
  display: grid !important;
  gap: 12px !important;
  margin: 14px 0 !important;
}

.admin-page .admin-tablet-row {
  display: grid !important;
  gap: 12px !important;
  padding: 14px !important;
  background: #ffffff !important;
  border: 1px solid var(--sarko-line) !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 24px rgba(15, 46, 38, 0.07) !important;
}

.admin-page .admin-tablet-row.is-offline {
  background: #fff7f7 !important;
  border-color: #f1b7b7 !important;
}

.admin-page .admin-tablet-fields {
  display: grid !important;
  grid-template-columns: minmax(140px, 1.1fr) minmax(160px, 1fr) 90px 90px !important;
  gap: 10px !important;
  align-items: end !important;
}

.admin-page .admin-tablet-fields label {
  display: grid !important;
  gap: 6px !important;
  color: var(--sarko-muted) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

.admin-page .admin-tablet-fields input[type="text"],
.admin-page .admin-tablet-fields input[type="number"] {
  min-height: 42px !important;
  width: 100% !important;
  padding: 0 12px !important;
  color: var(--sarko-text) !important;
  background: #ffffff !important;
  border: 1px solid #cfded8 !important;
  border-radius: 8px !important;
  font: inherit !important;
}

.admin-page .admin-tablet-check {
  min-height: 42px !important;
  grid-template-columns: auto 1fr !important;
  align-items: center !important;
  color: var(--sarko-text) !important;
}

.admin-page .admin-tablet-row-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  width: 100% !important;
  align-items: stretch !important;
}

.admin-page .admin-tablet-row-actions .admin-tablet-command-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 124px !important;
  min-height: 44px !important;
  padding: 0 16px !important;
  font-size: 14px !important;
  line-height: 1.15 !important;
  text-align: center !important;
  white-space: normal !important;
}

.admin-page .admin-tablet-single-brightness {
  flex: 1 1 220px !important;
  min-width: 220px !important;
  display: grid !important;
  gap: 6px !important;
  padding: 8px 10px !important;
  color: var(--sarko-text) !important;
  background: #f7fbf9 !important;
  border: 1px solid #cfe2dc !important;
  border-radius: 8px !important;
}

.admin-page .admin-tablet-single-brightness span {
  display: flex !important;
  justify-content: space-between !important;
  gap: 10px !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.admin-page .admin-tablet-single-brightness input[type="range"] {
  width: 100% !important;
  min-width: 0 !important;
}

.admin-page .admin-tablet-row-actions button:disabled {
  cursor: not-allowed !important;
  opacity: .46 !important;
  box-shadow: none !important;
}

.admin-page .admin-tablet-status,
.admin-page .admin-tablet-empty {
  margin: 0 !important;
  color: var(--sarko-muted) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

@media (max-width: 980px) {
  .admin-page .admin-tablet-grid {
    grid-template-columns: 1fr !important;
  }

  .admin-page .admin-tablet-fields {
    grid-template-columns: 1fr !important;
  }

  .admin-page .admin-tablet-control-head {
    flex-direction: column !important;
  }

  .admin-page .admin-tablet-head-actions {
    width: 100% !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
  }
}

/* QR display tablet layout */
.qr-display-page .qr-display-panel {
  position: relative !important;
  overflow: hidden !important;
}

.qr-display-page .qr-display-copy {
  display: grid !important;
  gap: 22px !important;
  align-content: center !important;
}

.qr-display-page .qr-display-logo {
  width: clamp(104px, 10vw, 136px) !important;
  height: clamp(104px, 10vw, 136px) !important;
  padding: 10px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(15, 37, 48, 0.12) !important;
  border-radius: 24px !important;
  box-shadow: 0 18px 42px rgba(15, 37, 48, 0.16) !important;
}

.qr-display-page .customer-kicker {
  margin: 12px 0 0 !important;
  color: #6a94e8 !important;
  font-size: clamp(13px, 1.2vw, 18px) !important;
  font-weight: 950 !important;
  letter-spacing: .03em !important;
  text-transform: uppercase !important;
}

.qr-display-page .qr-display-instructions {
  max-width: 520px !important;
  margin: 0 !important;
  color: rgba(31, 41, 55, 0.74) !important;
  font-size: clamp(18px, 1.85vw, 25px) !important;
  font-weight: 650 !important;
  line-height: 1.55 !important;
}

.qr-display-page .qr-display-panel h1 {
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 800 !important;
}

.qr-display-page .qr-display-action {
  display: grid !important;
  gap: 18px !important;
  justify-items: center !important;
  align-content: center !important;
  min-width: 0 !important;
}

.qr-display-page .qr-display-language-control {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  z-index: 3 !important;
  width: 220px !important;
  overflow: hidden !important;
}

.qr-display-page .qr-display-language-switch {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 14px !important;
  width: 220px !important;
  max-width: 220px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior-x: contain !important;
  scroll-snap-type: x mandatory !important;
  scroll-padding-inline: 77px !important;
  scrollbar-width: none !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%) !important;
  mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%) !important;
}

.qr-display-page .qr-display-language-control.is-recentering .qr-display-language-switch {
  animation: qrLanguageRecenter .58s cubic-bezier(.2, .84, .24, 1) both !important;
}

@keyframes qrLanguageRecenter {
  0% {
    transform: translateX(var(--qr-language-recenter-x, 52px)) scale(.98);
  }

  62% {
    transform: translateX(calc(var(--qr-language-recenter-x, 52px) * -0.12)) scale(1.01);
  }

  100% {
    transform: translateX(0) scale(1);
  }
}

.qr-display-page .qr-display-language-switch::-webkit-scrollbar {
  display: none !important;
}

.qr-display-page .qr-display-language-switch button {
  flex: 0 0 66px !important;
  width: 66px !important;
  height: 46px !important;
  min-height: 46px !important;
  color: #111827 !important;
  background: rgba(255, 255, 255, .9) !important;
  border: 0 !important;
  border-radius: 14px !important;
  font: inherit !important;
  font-weight: 950 !important;
  text-align: center !important;
  padding: 0 !important;
  cursor: pointer !important;
  scroll-snap-align: center !important;
  box-shadow: 0 8px 20px rgba(15, 37, 48, .1) !important;
}

.qr-display-page .qr-display-language-switch button.is-disabled {
  cursor: default !important;
  opacity: .64 !important;
  filter: blur(.2px) saturate(.78) grayscale(.12) !important;
}

.qr-display-page .qr-display-language-switch button span {
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  color: inherit !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
}

.qr-display-page .qr-display-language-switch .qr-language-flag {
  height: 100% !important;
  font-size: 28px !important;
}

.qr-display-page .qr-language-kurdistan-flag {
  display: block !important;
  width: 42px !important;
  height: 28px !important;
  object-fit: cover !important;
  border: 0 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  background: transparent !important;
}

.qr-display-page .qr-display-language-switch button.is-active {
  background: #d8ffc9 !important;
  color: #063f33 !important;
  box-shadow: inset 0 0 0 1px #9be6a7, 0 7px 16px rgba(155, 230, 167, .14) !important;
}

.qr-display-page .qr-display-scan-label {
  width: min(100%, 450px) !important;
  min-height: 68px !important;
  display: grid !important;
  grid-template-columns: auto auto !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 18px !important;
  color: #ffffff !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), transparent 44%),
    linear-gradient(135deg, rgba(5, 95, 70, 0.94), rgba(3, 44, 35, 0.96)) !important;
  border: 1px solid rgba(112, 246, 181, 0.44) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  font-size: clamp(20px, 2vw, 28px) !important;
  font-weight: 950 !important;
}

.qr-display-page .qr-display-scan-label svg {
  width: 34px !important;
  height: 34px !important;
  color: #9dffb9 !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2.2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

@media (orientation: landscape) and (min-width: 860px) {
  .qr-display-page .qr-display-panel {
    width: min(1280px, calc(100vw - 96px)) !important;
    min-height: min(660px, calc(100vh - 160px)) !important;
    grid-template-columns: minmax(360px, 0.82fr) minmax(480px, 1fr) !important;
    gap: clamp(70px, 9vw, 128px) !important;
    padding: clamp(52px, 5vw, 76px) !important;
  }

  .qr-display-page .qr-display-copy {
    max-width: 560px !important;
    align-self: center !important;
  }

  .qr-display-page .qr-display-panel h1 {
    max-width: 540px !important;
    font-size: clamp(4rem, 5.8vw, 6.25rem) !important;
    line-height: 1.02 !important;
    overflow-wrap: normal !important;
  }

  .qr-display-page .qr-display-subtitle {
    max-width: 320px !important;
    font-size: clamp(1.35rem, 2vw, 1.6rem) !important;
    line-height: 1.2 !important;
  }

  .qr-display-page .qr-display-code {
    width: min(530px, 39vw, 62vh) !important;
    justify-self: end !important;
    padding: clamp(16px, 1.4vw, 26px) !important;
  }
}

@media (max-width: 859px), (orientation: portrait) {
  .qr-display-page .qr-display-panel {
    padding-top: 36px !important;
  }

  .qr-display-page .qr-display-language-control {
    width: 160px !important;
  }

  .qr-display-page .qr-display-instructions {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }
}

/* Admin tablet tab layout fix */
.admin-page .admin-panel.admin-tablet-panel {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: visible !important;
}

.admin-page .admin-tablet-panel .admin-panel-heading,
.admin-page .admin-tablet-control,
.admin-page .admin-tablet-list,
.admin-page .admin-tablet-row,
.admin-page .admin-tablet-fields,
.admin-page .admin-tablet-row-actions,
.admin-page .admin-tablet-single-brightness {
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.admin-page .admin-tablet-control {
  width: 100% !important;
}

.admin-page .admin-tablet-fields {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
  align-items: end !important;
}

.admin-page .admin-tablet-fields label,
.admin-page .admin-tablet-fields input,
.admin-page .admin-tablet-fields select,
.admin-page .admin-tablet-fields strong {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
}

.admin-page .admin-tablet-fields select {
  width: 100% !important;
  min-height: 42px !important;
  color: var(--sarko-text) !important;
  background: #ffffff !important;
  border: 1px solid #cfded8 !important;
  border-radius: 8px !important;
}

.admin-page .admin-tablet-row-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: start !important;
  align-items: center !important;
}

.admin-page .admin-tablet-row-actions button,
.admin-page .admin-tablet-actions button {
  flex: 0 1 auto !important;
  min-width: 124px !important;
  max-width: 100% !important;
  white-space: normal !important;
}

.admin-page .admin-tablet-brightness {
  grid-template-columns: minmax(0, 1fr) auto !important;
}

@media (min-width: 981px) {
  .admin-page .admin-tablet-panel {
    padding-right: 0 !important;
  }

  .admin-page .admin-tablet-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 720px) {
  .admin-page .admin-tablet-fields,
  .admin-page .admin-tablet-row-actions,
  .admin-page .admin-tablet-brightness,
  .admin-page .admin-tablet-single-brightness {
    grid-template-columns: 1fr !important;
  }
}

/* Final mobile QR scanner overrides */
.qr-page {
  min-height: 100svh !important;
}

.qr-page .qr-shell {
  width: min(100% - 28px, 560px) !important;
}

.qr-page .qr-card {
  gap: 18px !important;
  max-width: 560px !important;
  padding: clamp(18px, 4vw, 28px) !important;
  border-radius: 28px !important;
  box-shadow: 0 24px 70px rgba(15, 46, 38, 0.14) !important;
}

.qr-scan-header {
  display: grid;
  gap: 8px;
  text-align: center;
}

.qr-scan-header .customer-kicker {
  justify-self: center;
  margin: 0;
}

.qr-scan-header h1 {
  margin: 0;
  font-size: clamp(31px, 8vw, 44px) !important;
  line-height: 1.02 !important;
  letter-spacing: 0 !important;
}

.qr-scan-header p:not(.customer-kicker) {
  max-width: 35rem;
  margin: 0 auto;
  font-size: clamp(15px, 4vw, 17px) !important;
  line-height: 1.45 !important;
}

.qr-page .qr-video-box {
  position: relative !important;
  min-height: 0 !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  max-height: min(58svh, 430px) !important;
  overflow: hidden !important;
  border: 1px solid rgba(15, 143, 120, 0.28) !important;
  border-radius: 26px !important;
  background: linear-gradient(rgba(8, 13, 20, 0.18), rgba(8, 13, 20, 0.18)), #08110f !important;
  box-shadow: inset 0 0 0 999px rgba(4, 10, 9, 0.05) !important;
}

.qr-page .qr-video-box::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 50%;
  height: 2px;
  background: rgba(15, 143, 120, 0.78);
  box-shadow: 0 0 22px rgba(15, 143, 120, 0.38);
  transform: translateY(-50%);
  pointer-events: none;
}

.qr-page .qr-video-box video {
  min-height: 100% !important;
  object-fit: cover !important;
}

.qr-scan-corner {
  position: absolute;
  width: 46px;
  height: 46px;
  border-color: #ffffff;
  pointer-events: none;
}

.qr-scan-corner.top-left {
  top: 18px;
  left: 18px;
  border-top: 4px solid;
  border-left: 4px solid;
  border-radius: 13px 0 0 0;
}

.qr-scan-corner.top-right {
  top: 18px;
  right: 18px;
  border-top: 4px solid;
  border-right: 4px solid;
  border-radius: 0 13px 0 0;
}

.qr-scan-corner.bottom-left {
  bottom: 18px;
  left: 18px;
  border-bottom: 4px solid;
  border-left: 4px solid;
  border-radius: 0 0 0 13px;
}

.qr-scan-corner.bottom-right {
  right: 18px;
  bottom: 18px;
  border-right: 4px solid;
  border-bottom: 4px solid;
  border-radius: 0 0 13px 0;
}

.qr-page #qrPlaceholder {
  position: relative;
  z-index: 1;
  width: min(78%, 300px);
  padding: 14px 16px;
  color: #eaf8f3 !important;
  background: rgba(8, 13, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  backdrop-filter: blur(8px);
}

.qr-scan-actions {
  display: grid;
  gap: 10px;
}

.qr-page .qr-start-camera-button {
  width: 100%;
  min-height: 60px;
  border-radius: 18px;
  font-size: 17px;
}

.qr-page .qr-message {
  min-height: 22px;
  text-align: center;
  font-size: 14px;
  line-height: 1.35;
}

.qr-page .manual-qr-form {
  gap: 10px;
  padding: 14px;
  border: 1px solid #d9e8e2;
  border-radius: 20px;
  background: #f6fbf8;
}

.qr-page .manual-qr-form label {
  font-size: 14px !important;
}

.qr-page .manual-qr-form input,
.qr-page .manual-qr-form button,
.qr-page .qr-back-link {
  min-height: 52px;
  border-radius: 15px !important;
}

.qr-page .qr-back-link {
  text-decoration: none;
}

@media (max-width: 720px) {
  .qr-page {
    display: block !important;
    padding: max(12px, env(safe-area-inset-top)) 12px max(16px, env(safe-area-inset-bottom)) !important;
  }

  .qr-page .qr-shell {
    width: 100% !important;
    min-height: auto !important;
    padding: 0 !important;
  }

  .qr-page .qr-card {
    min-height: calc(100svh - 28px);
    align-content: start;
    padding: 18px 14px !important;
  }

  .qr-page .qr-video-box {
    max-height: min(52svh, 390px) !important;
  }
}

@media (max-width: 380px) {
  .qr-scan-header h1 {
    font-size: 29px !important;
  }

  .qr-scan-header p:not(.customer-kicker) {
    font-size: 14px !important;
  }

  .qr-page .qr-card {
    gap: 14px !important;
    padding: 14px 12px !important;
  }

  .qr-scan-corner {
    width: 36px;
    height: 36px;
  }
}

/* Admin security statistics: one combined, native SVG pie chart for all metrics. */
.admin-page .admin-statistics-grid {
  display: block;
  margin-top: 14px;
}

.admin-page .admin-statistics-visual {
  min-width: 0;
  padding: 16px;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 12px;
  background: #f8fafc;
  box-shadow: 0 7px 20px rgba(15, 23, 42, 0.04);
}

.admin-page .admin-statistics-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-page .admin-statistics-chart-head > div:first-child {
  min-width: 0;
}

.admin-page .admin-statistics-chart-head h3 {
  margin: 0;
  color: var(--sarko-text);
  font-size: 16px !important;
  font-weight: 950;
  line-height: 1.25 !important;
}

.admin-page .admin-statistics-chart-head p {
  margin: 4px 0 0;
  color: var(--sarko-muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
}

.admin-page .admin-statistics-period-switch {
  display: inline-grid;
  grid-template-columns: repeat(4, auto);
  flex: 0 0 auto;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  background: #ffffff;
}

.admin-page .admin-statistics-period-button {
  min-width: 70px;
  min-height: 32px;
  padding: 6px 10px;
  border: 0;
  border-radius: 7px;
  color: #475569;
  background: transparent;
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
}

.admin-page .admin-statistics-period-button:hover {
  color: #075f50;
  background: rgba(15, 143, 120, 0.09);
}

.admin-page .admin-statistics-period-button.is-active {
  color: #ffffff;
  background: #0f8f78;
  box-shadow: 0 3px 9px rgba(15, 143, 120, 0.2);
}

.admin-page .admin-statistics-period-button:focus-visible {
  outline: 2px solid #0f8f78;
  outline-offset: 2px;
}

.admin-page .admin-statistics-chart-layout {
  display: grid;
  grid-template-columns: minmax(300px, 1.35fr) minmax(235px, 0.65fr);
  align-items: center;
  gap: 18px;
  margin-top: 10px;
}

.admin-page .admin-statistics-chart-figure {
  min-width: 0;
  margin: 0;
  text-align: center;
}

.admin-page .admin-statistics-chart {
  display: block;
  width: min(100%, 560px);
  height: auto;
  margin: 0 auto;
  overflow: visible;
}

.admin-page .admin-statistics-slice {
  stroke: #ffffff;
  stroke-width: 2;
  stroke-linejoin: round;
  transition: filter 160ms ease, opacity 160ms ease;
}

.admin-page .admin-statistics-slice:hover {
  filter: brightness(1.06);
}

.admin-page .admin-statistics-slice-label {
  fill: #ffffff;
  stroke: rgba(15, 23, 42, 0.42);
  stroke-width: 3px;
  paint-order: stroke fill;
  font-size: 13px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.admin-page .admin-statistics-callout-line {
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.admin-page .admin-statistics-callout-label {
  fill: var(--sarko-text);
  font-size: 12px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.admin-page .admin-statistics-empty-circle {
  fill: rgba(148, 163, 184, 0.08);
  stroke: rgba(148, 163, 184, 0.42);
  stroke-width: 2;
  stroke-dasharray: 5 5;
}

.admin-page .admin-statistics-empty-zero {
  fill: var(--sarko-text);
  font-size: 34px;
  font-weight: 950;
}

.admin-page .admin-statistics-empty-label {
  fill: var(--sarko-muted);
  font-size: 12px;
  font-weight: 850;
}

.admin-page .admin-statistics-chart-figure figcaption {
  max-width: 470px;
  margin: -2px auto 0;
  color: var(--sarko-muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
}

.admin-page .admin-statistics-legend {
  min-width: 0;
  padding-left: 18px;
  border-left: 1px solid rgba(148, 163, 184, 0.3);
}

.admin-page .admin-statistics-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.admin-page .admin-statistics-total span {
  color: var(--sarko-muted);
  font-size: 11px;
  font-weight: 850;
}

.admin-page .admin-statistics-total strong {
  color: var(--sarko-text);
  font-size: 23px;
  font-weight: 950;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.admin-page .admin-statistics-legend ul {
  display: grid;
  gap: 5px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.admin-page .admin-statistics-legend-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 38px;
  padding: 6px 8px;
  box-sizing: border-box;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: #ffffff;
}

.admin-page .admin-statistics-legend-swatch {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: var(--admin-stat-color);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.1);
}

.admin-page .admin-statistics-legend-label {
  min-width: 0;
  color: var(--sarko-text);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.admin-page .admin-statistics-legend-value {
  color: var(--sarko-text);
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.admin-page .admin-statistics-legend-item small {
  min-width: 42px;
  color: var(--sarko-muted);
  font-size: 9px;
  font-weight: 750;
  line-height: 1;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

html[data-theme="black"] .admin-page .admin-statistics-visual {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.76);
  box-shadow: none;
}

html[data-theme="black"] .admin-page .admin-statistics-period-switch,
html[data-theme="black"] .admin-page .admin-statistics-legend-item {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.42);
}

html[data-theme="black"] .admin-page .admin-statistics-period-button {
  color: rgba(226, 232, 240, 0.82);
}

html[data-theme="black"] .admin-page .admin-statistics-period-button:hover {
  color: #ffffff;
  background: rgba(45, 212, 191, 0.12);
}

html[data-theme="black"] .admin-page .admin-statistics-period-button.is-active {
  color: #052e2b;
  background: #5eead4;
}

html[data-theme="black"] .admin-page .admin-statistics-chart-head h3,
html[data-theme="black"] .admin-page .admin-statistics-callout-label,
html[data-theme="black"] .admin-page .admin-statistics-empty-zero,
html[data-theme="black"] .admin-page .admin-statistics-total strong,
html[data-theme="black"] .admin-page .admin-statistics-legend-label,
html[data-theme="black"] .admin-page .admin-statistics-legend-value {
  color: #f8fafc;
  fill: #f8fafc;
}

html[data-theme="black"] .admin-page .admin-statistics-chart-head p,
html[data-theme="black"] .admin-page .admin-statistics-chart-figure figcaption,
html[data-theme="black"] .admin-page .admin-statistics-empty-label,
html[data-theme="black"] .admin-page .admin-statistics-total span,
html[data-theme="black"] .admin-page .admin-statistics-legend-item small {
  color: rgba(226, 232, 240, 0.76);
  fill: rgba(226, 232, 240, 0.76);
}

html[data-theme="black"] .admin-page .admin-statistics-slice {
  stroke: rgba(2, 6, 23, 0.78);
}

html[data-theme="black"] .admin-page .admin-statistics-legend,
html[data-theme="black"] .admin-page .admin-statistics-total {
  border-color: rgba(148, 163, 184, 0.22);
}

@media (max-width: 820px) {
  .admin-page .admin-statistics-chart-head {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .admin-page .admin-statistics-period-switch {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    box-sizing: border-box;
  }

  .admin-page .admin-statistics-period-button {
    min-width: 0;
  }

  .admin-page .admin-statistics-chart-layout {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .admin-page .admin-statistics-legend {
    padding: 14px 0 0;
    border-top: 1px solid rgba(148, 163, 184, 0.3);
    border-left: 0;
  }
}

@media (max-width: 600px) {
  .admin-page .admin-statistics-visual {
    padding: 12px;
  }

  .admin-page .admin-statistics-period-switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .admin-page .admin-statistics-period-button {
    min-height: 34px;
    padding: 6px 4px;
    font-size: 9px;
  }

  .admin-page .admin-statistics-chart {
    width: 100%;
  }

  .admin-page .admin-statistics-chart-figure figcaption {
    margin-top: -8px;
  }
}

@media (max-width: 390px) {
  .admin-page .admin-statistics-legend-item {
    grid-template-columns: 11px minmax(0, 1fr) auto;
  }

  .admin-page .admin-statistics-legend-item small {
    grid-column: 2 / -1;
    min-width: 0;
    text-align: right;
  }
}

/* Compact customer mobile flow */
@media (max-width: 720px) {
  .customer-page {
    padding: 8px !important;
  }

  .customer-page .customer-panel {
    width: min(100%, 430px) !important;
    padding: 12px 14px 16px !important;
    border-radius: 18px !important;
  }

  .customer-page .customer-header {
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    gap: 10px 12px !important;
    margin-bottom: 10px !important;
  }

  .customer-page .customer-header h1,
  .customer-page .customer-header p:not(.customer-kicker) {
    display: none !important;
  }

  .customer-page .customer-kicker {
    margin: 0 !important;
    font-size: 10px !important;
    line-height: 1.1 !important;
  }

  .customer-page .brand-icon.customer-brand-logo {
    width: 42px !important;
    height: 42px !important;
    flex-basis: 42px !important;
    border-radius: 12px !important;
  }

  .customer-page .customer-language-switch {
    grid-column: 1 / -1 !important;
    justify-content: flex-start !important;
    width: auto !important;
    margin-top: 4px !important;
  }

  .customer-page .customer-form {
    gap: 0 !important;
  }

  .customer-page .customer-step {
    gap: 8px !important;
    padding: 12px 0 !important;
  }

  .customer-page .customer-step:first-child {
    padding-top: 8px !important;
  }

  .customer-page .step-title {
    gap: 0 !important;
  }

  .customer-page .step-title span {
    display: none !important;
  }

  .customer-page .step-title h2 {
    font-size: 15px !important;
    line-height: 1.2 !important;
  }

  .customer-page .selection-grid {
    gap: 8px !important;
    margin: 0 -14px !important;
    padding: 0 14px 6px !important;
  }

  .customer-page .select-card {
    flex: 0 0 140px !important;
    min-height: 104px !important;
    padding: 8px !important;
    border-radius: 9px !important;
  }

  .customer-page .hairstyle-card {
    flex-basis: 150px !important;
    min-height: 138px !important;
  }

  .customer-page .hairstyle-image {
    aspect-ratio: 1.2 !important;
    border-radius: 8px !important;
  }

  .customer-page .employee-card {
    min-height: 108px !important;
  }

  .customer-page .avatar-circle {
    width: 48px !important;
    height: 48px !important;
    font-size: 16px !important;
  }

  .customer-page .select-card strong {
    font-size: 12px !important;
    line-height: 1.15 !important;
  }

  .customer-page .employee-card small,
  .customer-page .employee-status-badge {
    font-size: 10px !important;
  }

  .customer-page [aria-labelledby="step-customer"] .step-title,
  .customer-page .send-step .step-title,
  .customer-page .privacy-note {
    display: none !important;
  }

  .customer-page .name-row {
    grid-template-columns: minmax(0, 1fr) 48px !important;
    gap: 8px !important;
  }

  .customer-page .name-row input,
  .customer-page .camera-button {
    min-height: 38px !important;
    height: 38px !important;
    border-radius: 9px !important;
    font-size: 14px !important;
  }

  .customer-page .name-row input {
    padding: 0 12px !important;
  }

  .customer-page .camera-button {
    width: 48px !important;
    font-size: 0 !important;
  }

  .customer-page .camera-button::before {
    content: "Foto";
    font-size: 12px;
    font-weight: 900;
  }

  .customer-page .selected-photo-text {
    margin: 0 !important;
    font-size: 12px !important;
  }

  .customer-page .send-step {
    padding-top: 6px !important;
  }

  .customer-page .send-order-button {
    min-height: 44px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
  }

  .customer-page .form-message {
    min-height: 18px !important;
    font-size: 12px !important;
  }
}

.customer-page .employee-quick-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.customer-page .employee-quick-button {
  min-height: 34px;
  padding: 0 12px;
  color: #08705f;
  background: #eef8f4;
  border: 1px solid #bfe4d9;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.customer-page .employee-quick-button.is-active,
.customer-page .employee-quick-button:hover,
.customer-page .employee-quick-button:focus-visible {
  color: #ffffff;
  background: #0f8f78;
  border-color: #0f8f78;
  outline: none;
}

.customer-page .employee-card.is-group-selected {
  border-color: #0f8f78;
  background: #f2fbf7;
  box-shadow: 0 0 0 2px rgba(15, 143, 120, .12);
}

.customer-page .selection-grid.is-loop-ready {
  position: relative;
  display: block !important;
  overflow: hidden !important;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
  scrollbar-width: none;
}

.customer-page .selection-grid.is-loop-ready::-webkit-scrollbar {
  display: none;
}

.customer-page .selection-grid.is-loop-ready.is-dragging {
  cursor: grabbing;
}

.customer-page .customer-loop-track {
  display: flex;
  align-items: stretch;
  gap: 10px;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.customer-page .customer-loop-track .select-card {
  flex: 0 0 clamp(150px, 28vw, 220px);
  margin: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.customer-page .customer-loop-track .hairstyle-card {
  flex-basis: clamp(170px, 34vw, 260px);
}

.customer-page .customer-loop-btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 34px;
  height: 34px;
  display: none;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(14, 27, 35, .86);
  box-shadow: 0 12px 28px rgba(15, 37, 48, .22);
  font: inherit;
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.customer-page .selection-grid.is-loop-ready .customer-loop-btn {
  display: grid;
}

.customer-page .customer-loop-btn.prev {
  left: 8px;
}

.customer-page .customer-loop-btn.next {
  right: 8px;
}

.customer-page .customer-loop-btn:active {
  transform: translateY(-50%) scale(.94);
}

@media (max-width: 720px) {
  .customer-page .step-title {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  .customer-page .employee-quick-actions {
    margin-left: 0;
    gap: 5px;
  }

  .customer-page .employee-quick-button {
    min-height: 28px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 11px;
  }

  .customer-page .selection-grid.is-loop-ready {
    margin: 0 -12px !important;
    padding: 0 10px 8px !important;
  }

  .customer-page .customer-loop-track {
    gap: 8px;
  }

  .customer-page .customer-loop-track .select-card {
    flex-basis: 146px !important;
  }

  .customer-page .customer-loop-track .hairstyle-card {
    flex-basis: 154px !important;
  }

  .customer-page .customer-loop-btn {
    display: none !important;
  }
}

@media (max-width: 380px) {
  .customer-page .employee-quick-button {
    padding: 0 6px;
    font-size: 10px;
  }
}

body.customer-native-phone-view .customer-page {
  min-height: 100svh !important;
  align-items: flex-start !important;
  padding: 14px !important;
}

body.customer-native-phone-view .customer-page .customer-panel {
  width: min(calc(100vw - 28px), 900px) !important;
  min-height: calc(100svh - 28px) !important;
  padding: 18px 20px 22px !important;
  border-radius: 18px !important;
}

body.customer-native-phone-view .customer-page .customer-header {
  display: grid !important;
  grid-template-columns: 92px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 14px !important;
  margin: 0 0 12px !important;
  padding: 0 0 12px !important;
}

body.customer-native-phone-view .customer-page .brand-icon.customer-brand-logo {
  width: 86px !important;
  height: 86px !important;
  flex-basis: 86px !important;
  padding: 4px !important;
  border-radius: 16px !important;
}

body.customer-native-phone-view .customer-page .customer-header > div:not(.customer-language-switch) {
  display: block !important;
  min-width: 0 !important;
}

body.customer-native-phone-view .customer-page .customer-kicker {
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body.customer-native-phone-view .customer-page .customer-header h1,
body.customer-native-phone-view .customer-page .customer-header p:not(.customer-kicker) {
  display: none !important;
}

body.customer-native-phone-view .customer-page .customer-language-switch {
  grid-column: auto !important;
  justify-self: end !important;
  justify-content: flex-start !important;
  width: auto !important;
  margin: 0 !important;
  padding: 2px !important;
  gap: 8px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 8px !important;
}

body.customer-native-phone-view .customer-page .customer-language-switch button {
  min-width: 42px !important;
  min-height: 40px !important;
  padding: 0 !important;
  border: 1px solid rgba(155, 255, 213, .28) !important;
  border-radius: 13px !important;
  font-size: 20px !important;
  line-height: 1 !important;
  background: rgba(255, 255, 255, .06) !important;
}

body.customer-native-phone-view .customer-page .customer-language-switch button.is-active {
  color: #063f33 !important;
  background: #d8ffc9 !important;
  border-color: #9be6a7 !important;
}

body.customer-native-phone-view .customer-page .customer-language-switch .customer-language-flag {
  font-size: 22px !important;
}

body.customer-native-phone-view .customer-page .customer-form {
  gap: 0 !important;
}

body.customer-native-phone-view .customer-page .customer-step {
  gap: 12px !important;
  padding: 18px 0 !important;
  overflow: hidden !important;
}

body.customer-native-phone-view .customer-page .customer-step:first-child {
  padding-top: 4px !important;
}

body.customer-native-phone-view .customer-page .step-title {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}

body.customer-native-phone-view .customer-page .step-title span {
  display: none !important;
}

body.customer-native-phone-view .customer-page .step-title h2 {
  font-size: 22px !important;
  line-height: 1.2 !important;
}

body.customer-native-phone-view .customer-page .employee-quick-actions {
  margin-left: 0 !important;
  gap: 5px !important;
}

body.customer-native-phone-view .customer-page .employee-quick-button {
  min-height: 34px !important;
  padding: 0 12px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
}

body.customer-native-phone-view .customer-page .selection-grid.is-loop-ready {
  margin: 0 -20px !important;
  padding: 0 20px 10px !important;
}

body.customer-native-phone-view .customer-page .customer-loop-track {
  gap: 12px !important;
}

body.customer-native-phone-view .customer-page .customer-loop-track .select-card {
  flex-basis: clamp(185px, 24vw, 230px) !important;
}

body.customer-native-phone-view .customer-page .customer-loop-track .hairstyle-card {
  flex-basis: clamp(210px, 28vw, 270px) !important;
}

body.customer-native-phone-view .customer-page .customer-loop-btn {
  display: none !important;
}

body.customer-native-phone-view .customer-page .employee-card {
  min-height: 172px !important;
  align-content: start !important;
  gap: 8px !important;
  padding-top: 12px !important;
}

body.customer-native-phone-view .customer-page .employee-card .avatar-circle {
  width: 96px !important;
  height: 96px !important;
  font-size: 28px !important;
}

body.customer-native-phone-view .customer-page .employee-card .employee-queue-count {
  top: 6px !important;
  right: 6px !important;
  min-width: 30px !important;
  height: 30px !important;
  padding: 0 7px !important;
  font-size: 14px !important;
  border-width: 2px !important;
}

body.customer-native-phone-view .customer-page .employee-card strong {
  margin-top: 8px !important;
  font-size: 15px !important;
  line-height: 1.1 !important;
}

body.customer-native-phone-view .customer-page .employee-card small {
  display: none !important;
}

body.customer-native-phone-view .customer-page [aria-labelledby="step-customer"] .step-title,
body.customer-native-phone-view .customer-page .send-step .step-title,
body.customer-native-phone-view .customer-page .privacy-note {
  display: none !important;
}

body.customer-native-phone-view .customer-page .name-row {
  grid-template-columns: minmax(0, 1fr) 64px !important;
  gap: 10px !important;
}

body.customer-native-phone-view .customer-page .name-row input,
body.customer-native-phone-view .customer-page .camera-button {
  min-height: 50px !important;
  height: 50px !important;
  border-radius: 10px !important;
  font-size: 16px !important;
}

body.customer-native-phone-view .customer-page .name-row input {
  padding: 0 12px !important;
}

body.customer-native-phone-view .customer-page .camera-button {
  width: 64px !important;
  font-size: 0 !important;
}

body.customer-native-phone-view .customer-page .camera-button::before {
  content: "Foto";
  font-size: 12px;
  font-weight: 900;
}

body.customer-native-phone-view .customer-page .selected-photo-text {
  margin: 0 !important;
  font-size: 12px !important;
}

body.customer-native-phone-view .customer-page .send-step {
  padding-top: 6px !important;
}

body.customer-native-phone-view .customer-page .send-order-button {
  min-height: 56px !important;
  border-radius: 12px !important;
  font-size: 17px !important;
}

body.customer-native-phone-view .customer-page .form-message {
  min-height: 18px !important;
  font-size: 12px !important;
}

/* Mobile customer header: compact language switch and less dead space. */
@media (max-width: 720px) {
  .customer-page {
    min-height: 100svh !important;
    padding: 8px !important;
  }

  .customer-page .customer-panel {
    padding: 8px 10px 12px !important;
    border-radius: 14px !important;
  }

  .customer-page .customer-header {
    display: grid !important;
    grid-template-columns: 78px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 0 6px !important;
    padding: 0 0 6px !important;
  }

  .customer-page .brand-icon.customer-brand-logo {
    width: 72px !important;
    height: 72px !important;
    flex-basis: 72px !important;
    padding: 3px !important;
    border-radius: 14px !important;
  }

  .customer-page .customer-header > div:not(.customer-language-switch) {
    display: block !important;
    min-width: 0 !important;
  }

  .customer-page .customer-kicker {
    margin: 0 !important;
    font-size: 10px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .customer-page .customer-header h1,
  .customer-page .customer-header p:not(.customer-kicker) {
    display: none !important;
  }

  .customer-page .customer-language-switch {
    grid-column: auto !important;
    justify-self: end !important;
    justify-content: flex-start !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 8px !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 13px !important;
  }

  .customer-page .customer-language-switch button {
    min-width: 42px !important;
    min-height: 40px !important;
    padding: 0 !important;
    border: 1px solid rgba(155, 255, 213, .28) !important;
    border-radius: 13px !important;
    font-size: 20px !important;
    line-height: 1 !important;
    background: rgba(255, 255, 255, .06) !important;
  }

  .customer-page .customer-language-switch button.is-active {
    color: #063f33 !important;
    background: #d8ffc9 !important;
    border-color: #9be6a7 !important;
  }

  .customer-page .customer-language-switch .customer-language-flag {
    font-size: 22px !important;
  }

  .customer-page .customer-step:first-child {
    padding-top: 4px !important;
  }

  .customer-page .employee-card {
    min-height: 142px !important;
    align-content: start !important;
    gap: 5px !important;
    padding-top: 9px !important;
  }

  .customer-page .employee-card .avatar-circle {
    width: 78px !important;
    height: 78px !important;
    font-size: 24px !important;
  }

  .customer-page .employee-card .employee-queue-count {
    top: 6px !important;
    right: 6px !important;
    min-width: 30px !important;
    height: 30px !important;
    padding: 0 7px !important;
    font-size: 14px !important;
    border-width: 2px !important;
  }

  .customer-page .employee-card strong {
    margin-top: 6px !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
  }

  .customer-page .employee-card small {
    display: none !important;
  }
}

/* Admin public website banner */
.admin-page .admin-public-banner-manager {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d7e5df;
  border-radius: 12px;
  background: rgba(244, 250, 247, .8);
}

.admin-page .admin-public-banner-preview {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 180px;
  overflow: hidden;
  border: 1px dashed #b9cec5;
  border-radius: 10px;
  background: #ffffff;
  color: var(--sarko-muted);
  font-weight: 900;
}

.admin-page .admin-public-banner-preview img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}

/* Admin tablet touch stability */
.admin-page {
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
}

.admin-page button,
.admin-page a,
.admin-page input,
.admin-page select,
.admin-page textarea,
.admin-page label,
.admin-page [role="button"],
.admin-page [role="switch"] {
  touch-action: manipulation;
  pointer-events: auto;
}

.admin-page .admin-shell,
.admin-page .admin-dashboard,
.admin-page .admin-panel,
.admin-page .admin-layout {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.admin-page .admin-section-nav {
  display: flex;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.admin-page .admin-section-tab {
  flex: 0 0 auto;
}

.admin-page .admin-nav-reload-button {
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  .admin-page .admin-shell {
    width: 100%;
    padding: 12px;
  }

  .admin-page .admin-dashboard,
  .admin-page .admin-login {
    width: 100%;
    padding: 16px;
  }

  .admin-page .admin-header,
  .admin-page .admin-layout,
  .admin-page .admin-style-layout,
  .admin-page .admin-settings-panel form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .admin-page .admin-header-actions {
    justify-content: start;
  }
}

/* Smooth app reload overlay */
html::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  pointer-events: none;
  background: #f4fbf8;
  opacity: 0;
  transition: opacity 180ms ease;
}

html.mybarber-app-reloading::before {
  opacity: 1;
}

/* Barber tablet active selection elevation */
.barber-page .queue-item.is-selected {
  background: #effcf6 !important;
  border-color: rgba(122, 231, 180, 0.72) !important;
  color: #0f1b16 !important;
  transform: translateY(-2px);
  box-shadow:
    0 0 28px rgba(53, 209, 91, 0.34),
    0 22px 48px rgba(15, 143, 120, 0.26) !important;
}

.barber-page .queue-item.is-selected small,
.barber-page .queue-item.is-selected em {
  color: #31594c !important;
}

.barber-page .queue-item.is-selected b {
  color: #08705f !important;
}

.barber-page .queue-item.is-pressing {
  transform: translateY(2px) scale(.992) !important;
  background: #e8fff1 !important;
  border-color: rgba(34, 197, 94, 0.8) !important;
  box-shadow:
    inset 0 4px 12px rgba(15, 118, 89, 0.16),
    0 0 18px rgba(122, 231, 180, 0.28) !important;
}

.barber-page .queue-item.is-held,
.barber-page .queue-item.is-selected.is-held {
  position: relative;
  border-color: rgba(245, 158, 11, 0.98) !important;
  background: linear-gradient(180deg, #fff1b8 0%, #fff9df 100%) !important;
  color: #231b05 !important;
  transform: translateY(3px) scale(.986) !important;
  box-shadow:
    inset 0 5px 18px rgba(146, 64, 14, 0.20),
    inset 0 0 0 1px rgba(245, 158, 11, 0.36),
    0 0 0 2px rgba(251, 191, 36, 0.58),
    0 0 32px rgba(250, 204, 21, 0.54),
    0 10px 24px rgba(146, 64, 14, 0.20) !important;
}

.barber-page .queue-item.is-held::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 0;
  width: 5px;
  border-radius: 0 999px 999px 0;
  background: #f59e0b;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.72);
}

.barber-page .queue-item.is-held small,
.barber-page .queue-item.is-held em,
.barber-page .queue-item.is-selected.is-held small,
.barber-page .queue-item.is-selected.is-held em {
  color: #6f4d00 !important;
}

.barber-page .queue-item.is-held b,
.barber-page .queue-item.is-selected.is-held b {
  color: #8a5a00 !important;
}

.barber-page .queue-item.is-held b::after {
  content: " FIXIERT";
  font-weight: 900;
  letter-spacing: 0;
}

.barber-page .order-list .queue-item:first-of-type:not(.is-held) {
  background: linear-gradient(180deg, #dcfff0 0%, #f0fff7 100%) !important;
  border-color: rgba(34, 197, 94, 0.92) !important;
  color: #082f27 !important;
  box-shadow:
    inset 0 0 0 1px rgba(34, 197, 94, 0.22),
    0 0 0 2px rgba(134, 239, 172, 0.34),
    0 18px 42px rgba(22, 163, 74, 0.28) !important;
}

.barber-page .order-list .queue-item:first-of-type:not(.is-held) small,
.barber-page .order-list .queue-item:first-of-type:not(.is-held) em {
  color: #1f6b5b !important;
}

.barber-page .order-list .queue-item:first-of-type:not(.is-held) b {
  color: #047857 !important;
}

.barber-page .thumb-button.is-selected {
  background: #f0fff7 !important;
  border-color: rgba(122, 231, 180, 0.72) !important;
  color: #0f1b16 !important;
  transform: translateY(-3px);
  box-shadow:
    0 0 24px rgba(53, 209, 91, 0.34),
    0 20px 44px rgba(15, 143, 120, 0.26) !important;
}

.barber-page .thumb-button.is-selected span {
  border-color: rgba(122, 231, 180, 0.55) !important;
  background: #ffffff !important;
}

/* Barber tablet detail view v30: use more visual space for the selected style. */
.barber-page .order-detail-panel {
  min-height: 100vh !important;
}

.barber-page .detail-topbar {
  margin-bottom: 4px !important;
}

.barber-page .order-detail {
  min-height: calc(100vh - 126px) !important;
  align-content: start !important;
  justify-items: center !important;
  gap: 8px !important;
}

.barber-page .main-style-image {
  --style-image-height: clamp(430px, 66vh, 760px) !important;
  width: min(100%, 62vw, calc(var(--style-image-height) * var(--style-image-ratio))) !important;
  height: var(--style-image-height) !important;
}

.barber-page .thumb-strip {
  width: min(100%, 690px) !important;
}

.barber-page .thumb-button span {
  aspect-ratio: 5 / 3 !important;
}

.barber-page .detail-actions {
  width: min(100%, 700px) !important;
}

@media (max-width: 980px) {
  .barber-page .order-detail {
    min-height: auto !important;
  }

  .barber-page .main-style-image {
    --style-image-height: clamp(360px, 58vh, 620px) !important;
    width: min(100%, calc(var(--style-image-height) * var(--style-image-ratio))) !important;
  }
}

/* Barber tablet view v31: keep profile text clear and use right-side space better. */
.barber-page .barber-profile {
  grid-template-columns: 58px minmax(0, 1fr) !important;
  grid-template-areas:
    "avatar kicker"
    "avatar name" !important;
  column-gap: 18px !important;
  align-items: center !important;
}

.barber-page .barber-profile .barber-kicker {
  grid-area: kicker !important;
  min-width: 0 !important;
  margin: 0 0 4px !important;
  padding-left: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.barber-page .barber-profile h1 {
  grid-area: name !important;
  min-width: 0 !important;
  margin: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.barber-page .barber-profile-avatar {
  grid-area: avatar !important;
  position: relative !important;
  z-index: 1 !important;
}

.barber-page .order-detail-panel {
  padding-left: clamp(20px, 2.2vw, 34px) !important;
  padding-right: clamp(12px, 1.2vw, 18px) !important;
}

.barber-page .order-detail {
  justify-items: center !important;
}

.barber-page .main-style-image {
  width: min(100%, 68vw, calc(var(--style-image-height) * var(--style-image-ratio))) !important;
}

.barber-page .thumb-strip,
.barber-page .detail-actions {
  width: min(100%, 760px) !important;
}

@media (max-width: 980px) {
  .barber-page .main-style-image {
    width: min(100%, calc(var(--style-image-height) * var(--style-image-ratio))) !important;
  }
}

/* Barber tablet view v32: reserve real avatar space and widen the work area. */
.barber-page .barber-dashboard {
  grid-template-columns: minmax(340px, 380px) minmax(0, 1fr) !important;
}

.barber-page .queue-panel {
  padding-left: 22px !important;
  padding-right: 22px !important;
}

.barber-page .barber-profile {
  grid-template-columns: 92px minmax(0, 1fr) !important;
  min-height: 92px !important;
  column-gap: 14px !important;
}

.barber-page .barber-profile-avatar {
  width: 82px !important;
  height: 82px !important;
  border-radius: 14px !important;
}

.barber-page .barber-profile .barber-kicker,
.barber-page .barber-profile h1 {
  transform: none !important;
  padding-left: 0 !important;
  max-width: 100% !important;
}

.barber-page .barber-profile h1 {
  font-size: clamp(24px, 2.2vw, 32px) !important;
  line-height: 1.02 !important;
}

.barber-page .order-detail-panel {
  padding-left: clamp(24px, 2.5vw, 38px) !important;
  padding-right: clamp(8px, 0.8vw, 12px) !important;
}

.barber-page .main-style-image {
  width: min(100%, 72vw, calc(var(--style-image-height) * var(--style-image-ratio))) !important;
}

.barber-page .thumb-strip,
.barber-page .detail-actions {
  width: min(100%, 820px) !important;
}

/* Barber tablet view v34: fixed 90% display scale for more breathing room. */
@media (min-width: 981px) {
  .barber-page {
    width: 111.1112vw !important;
    min-height: 111.1112vh !important;
    transform: scale(.90) !important;
    transform-origin: top left !important;
  }

  body:has(.barber-page) {
    overflow: hidden !important;
  }
}

/* Barber queue scroll v1: keep the tablet chrome fixed and scroll only the order list. */
.barber-page .queue-panel {
  max-height: 111.1112vh !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.barber-page .queue-header,
.barber-page .queue-meta {
  flex: 0 0 auto !important;
}

.barber-page .order-list {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: calc(111.1112vh - 318px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
  padding-right: 4px !important;
}

.barber-page .order-list::-webkit-scrollbar {
  width: 8px;
}

.barber-page .order-list::-webkit-scrollbar-track {
  background: rgba(15, 143, 120, 0.08);
  border-radius: 999px;
}

.barber-page .order-list::-webkit-scrollbar-thumb {
  background: rgba(15, 143, 120, 0.34);
  border-radius: 999px;
}

.barber-page .barber-appointments-panel {
  flex: 0 0 auto !important;
  margin-top: 12px !important;
}

@media (max-width: 980px) {
  .barber-page .queue-panel {
    max-height: 100vh !important;
  }

  .barber-page .order-list {
    max-height: calc(100vh - 330px) !important;
  }
}


.style-access-preview-card {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.style-placeholder-image {
  width: min(100%, 520px);
  height: auto;
  display: block;
}

.style-placeholder-text {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  margin: 0;
  padding: 14px 16px;
  color: #ffffff !important;
  background: rgba(16, 24, 32, .86);
  border-radius: 14px;
  font-size: clamp(18px, 2.3vw, 28px);
  font-weight: 950;
  line-height: 1.16;
  text-align: center;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .22);
}

@media (max-width: 720px) {
  .style-access-preview-card {
    min-height: 320px;
  }

  .style-placeholder-text {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 12px 14px;
  }
}

.admin-design-logo-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--sarko-line, #d7e4de);
  border-radius: 12px;
  background: #f7fbf9;
}

.admin-design-top-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 10px;
  align-items: stretch;
  padding: 10px;
  border: 1px solid var(--sarko-line, #d7e4de);
  border-radius: 12px;
  background: #f7fbf9;
}

.admin-design-top-control .admin-language-control,
.admin-design-top-control .admin-design-logo-control {
  min-height: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
}

.admin-design-logo-control.admin-design-logo-compact {
  grid-template-columns: minmax(0, 1fr) 84px auto;
  gap: 10px;
}

.admin-design-logo-compact .admin-design-logo-preview {
  width: 84px;
  height: 84px;
  min-height: 84px;
}

.admin-design-logo-compact .admin-design-logo-actions {
  align-content: center;
  justify-content: flex-end;
}

.admin-design-logo-control strong {
  display: block;
  font-size: 0.98rem;
  color: #06151f;
}

.admin-design-logo-control span {
  display: block;
  margin-top: 4px;
  font-size: 0.84rem;
  color: #5d6f7b;
}

.admin-design-logo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-banner-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.admin-banner-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(15, 143, 120, 0.18);
  border-radius: 8px;
  background: #ffffff;
}

.admin-banner-preview {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 92px;
  overflow: hidden;
  border: 1px dashed rgba(15, 143, 120, 0.25);
  border-radius: 8px;
  background: rgba(15, 143, 120, 0.05);
}

.admin-banner-preview img {
  width: 100%;
  height: 100%;
  min-height: 92px;
  object-fit: cover;
}

.admin-banner-preview span {
  margin: 0;
  color: #5d7180;
  font-weight: 800;
}

.admin-hours-services-control {
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(280px, 1fr);
  gap: 12px;
  align-items: start;
}

.admin-hours-column,
.admin-services-column {
  min-width: 0;
}

.admin-services-column {
  display: grid;
}

.admin-services-column textarea {
  min-height: 238px;
  resize: vertical;
}

.admin-website-services-editor {
  display: grid;
  gap: 10px;
  margin: 0 0 10px;
  padding: 12px;
  border: 1px solid rgba(15, 143, 120, 0.18);
  border-radius: 10px;
  background: rgba(15, 143, 120, 0.04);
}

.admin-website-services-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-website-services-head strong,
.admin-website-services-head span {
  display: block;
}

.admin-website-services-head strong {
  color: #0f172a;
  font-size: 14px;
  line-height: 1.2;
}

.admin-website-services-head span {
  margin-top: 3px;
  color: #5d7180;
  font-size: 12px;
  line-height: 1.35;
}

.admin-website-service-rows {
  display: grid;
  gap: 8px;
}

.admin-website-service-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(130px, 0.8fr) auto;
  gap: 8px;
  align-items: end;
}

.admin-website-service-row label {
  display: grid;
  gap: 4px;
  margin: 0;
  color: #40556a;
  font-size: 12px;
  font-weight: 800;
}

.admin-website-service-row input {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(15, 143, 120, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: #122033;
  font: 800 13px/1.1 Inter, Arial, sans-serif;
}

.admin-website-service-row [data-website-service-remove] {
  min-height: 38px;
  padding: 0 12px;
}

.admin-hours-grid {
  display: grid;
  grid-template-columns: 52px minmax(92px, 128px) minmax(92px, 128px) minmax(108px, 132px);
  gap: 7px 8px;
  align-items: center;
  border: 1px solid rgba(15, 143, 120, 0.18);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(15, 143, 120, 0.04);
}

.admin-hours-head {
  color: #5d7180;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-hours-day {
  font-weight: 800;
}

.admin-hours-time {
  width: 100%;
  min-height: 36px;
  padding: 6px 8px;
  font-size: 0.9rem;
}

.admin-hours-closed {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  margin: 0;
  color: #394b59;
  font-size: 0.9rem;
  font-weight: 700;
}

.admin-hours-closed input {
  width: 16px;
  height: 16px;
}

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

.admin-appointment-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(15, 143, 120, 0.18);
  border-radius: 8px;
  background: #ffffff;
}

.admin-appointment-card strong,
.admin-appointment-card span {
  display: block;
}

.admin-appointment-card span,
.admin-appointment-card p,
.admin-appointment-empty {
  color: #5d7180;
}

.admin-appointment-card p {
  margin: 8px 0 0;
}

.admin-appointment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-appointment-status {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 8px;
  background: rgba(15, 143, 120, 0.1);
  color: #08705f;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.admin-appointment-archive {
  display: grid;
  gap: 16px;
}

.admin-archive-year,
.admin-archive-month {
  display: grid;
  gap: 8px;
}

.admin-archive-year {
  padding: 10px;
  border: 1px solid rgba(15, 143, 120, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.admin-archive-year > header,
.admin-archive-month > header,
.admin-archive-day > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-archive-year > header {
  padding: 0;
}

.admin-archive-year > header.is-open {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(20, 32, 51, 0.1);
}

.admin-archive-month {
  padding: 8px 0 8px 12px;
  border-left: 3px solid rgba(15, 143, 120, 0.16);
  border-bottom: 1px solid rgba(20, 32, 51, 0.08);
}

.admin-archive-month > header {
  padding: 0;
}

.admin-archive-day {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(15, 143, 120, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.admin-archive-day > header {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(20, 32, 51, 0.1);
}

.admin-archive-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.admin-archive-toggle > span:last-child {
  display: grid;
  gap: 1px;
}

.admin-archive-caret {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(15, 143, 120, 0.1);
  color: #08705f;
  font-size: 20px;
  line-height: 1;
  transition: transform 0.18s ease;
}

.admin-archive-toggle[aria-expanded="true"] .admin-archive-caret {
  transform: rotate(90deg);
}

.admin-archive-year header > div,
.admin-archive-month header > div,
.admin-archive-day header > div {
  display: grid;
  gap: 2px;
}

.admin-archive-year header strong {
  font-size: 18px;
  color: #142033;
}

.admin-archive-month header strong,
.admin-archive-day header strong {
  font-size: 16px;
  color: #142033;
}

.admin-archive-year header span,
.admin-archive-month header span,
.admin-archive-day header span {
  color: #5d7180;
  font-size: 13px;
  font-weight: 800;
}

.admin-archive-month-list,
.admin-archive-day-list,
.admin-archive-item-list {
  display: grid;
  gap: 8px;
}

.admin-archive-month-list.is-hidden,
.admin-archive-day-list.is-hidden {
  display: none;
}

.admin-archive-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 10px;
  border-radius: 8px;
  background: #ffffff;
}

.admin-archive-item strong,
.admin-archive-item span {
  display: block;
}

.admin-archive-item span,
.admin-archive-item p {
  color: #5d7180;
}

.admin-archive-item p {
  margin: 6px 0 0;
}

.admin-archive-delete-button,
.admin-archive-day > header .admin-secondary-button {
  min-height: 36px;
  padding: 0 12px;
  color: #9f1239;
  border-color: rgba(225, 29, 72, 0.22);
  background: rgba(255, 241, 242, 0.86);
  font-size: 13px;
}

html[data-theme="black"] .admin-hours-grid {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

html[data-theme="black"] .admin-appointment-card {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="black"] .admin-banner-card {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="black"] .admin-banner-preview {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
}

html[data-theme="black"] .admin-appointment-card span,
html[data-theme="black"] .admin-appointment-card p,
html[data-theme="black"] .admin-appointment-empty {
  color: #c5ced8;
}

html[data-theme="black"] .admin-hours-head,
html[data-theme="black"] .admin-hours-closed {
  color: #c5ced8;
}

@media (max-width: 640px) {
  .admin-design-top-control,
  .admin-design-logo-control.admin-design-logo-compact,
  .admin-hours-services-control {
    grid-template-columns: 1fr;
  }

  .admin-design-logo-compact .admin-design-logo-preview {
    width: 100%;
    max-width: 150px;
    justify-self: start;
  }

  .admin-hours-grid {
    grid-template-columns: minmax(34px, 0.5fr) minmax(82px, 1fr) minmax(82px, 1fr);
  }

  .admin-hours-head:nth-child(4),
  .admin-hours-closed {
    grid-column: 1 / -1;
  }

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

  .admin-appointment-actions {
    justify-content: flex-start;
  }

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

.admin-panel-note {
  margin: 4px 0 0;
  color: #5d7180;
  font-size: 0.86rem;
  line-height: 1.35;
}

.admin-booking-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
  margin: 10px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.admin-booking-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 330px;
  min-height: 56px;
  padding: 10px 16px 10px 12px;
  border: 1px solid #b7e0d4;
  border-radius: 14px;
  color: #006f60;
  background: #edf9f5;
  box-shadow: 0 10px 28px rgba(15, 143, 120, 0.10);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.admin-booking-toggles {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  max-width: 330px;
}

.admin-booking-toggles .admin-booking-toggle {
  width: 100%;
}

.admin-website-maintenance-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  margin: 8px 0 16px;
}

.admin-website-maintenance-row .admin-booking-toggle {
  width: min(330px, 100%);
}

.admin-website-open-button {
  min-height: 46px;
  padding-inline: 18px;
  text-decoration: none;
}

.admin-page .admin-settings-panel[data-admin-section="design"] [data-design-static-section="publication"] {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.admin-page .admin-settings-panel[data-admin-section="design"] [data-design-static-section="publication"] .admin-design-accordion-summary {
  padding-inline: 0 !important;
}

.admin-page .admin-settings-panel[data-admin-section="design"] [data-design-static-section="publication"] .admin-design-accordion-body {
  padding-inline: 0 !important;
}

.admin-page .admin-settings-panel[data-admin-section="design"] .admin-publication-control {
  grid-template-columns: minmax(0, 1fr) minmax(430px, 520px) !important;
  align-items: stretch !important;
}

.admin-page .admin-settings-panel[data-admin-section="design"] .admin-publication-control .admin-website-maintenance-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 184px !important;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.admin-page .admin-settings-panel[data-admin-section="design"] .admin-publication-control .admin-website-maintenance-row .admin-booking-toggle {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  min-height: 58px !important;
  min-width: 0 !important;
  max-width: none !important;
}

.admin-page .admin-settings-panel[data-admin-section="design"] .admin-publication-control .admin-website-open-button {
  width: 100% !important;
  min-height: 46px !important;
}

.admin-page .admin-settings-panel[data-admin-section="design"] .admin-publication-control .admin-website-maintenance-row .admin-booking-toggle > span:not(.admin-booking-toggle-dot) {
  display: block !important;
  min-width: 0;
}

.admin-page .admin-settings-panel[data-admin-section="design"] .admin-publication-control .admin-website-maintenance-row .admin-booking-toggle strong,
.admin-page .admin-settings-panel[data-admin-section="design"] .admin-publication-control .admin-website-maintenance-row .admin-booking-toggle small {
  display: block !important;
  white-space: normal !important;
}

@media (max-width: 980px) {
  .admin-page .admin-settings-panel[data-admin-section="design"] .admin-publication-control {
    grid-template-columns: 1fr !important;
  }

  .admin-page .admin-settings-panel[data-admin-section="design"] .admin-publication-control .admin-website-maintenance-row {
    grid-template-columns: 1fr !important;
  }
}

.admin-booking-toggle:hover,
.admin-booking-toggle:focus-visible {
  border-color: #0f8f78;
  box-shadow: 0 14px 34px rgba(15, 143, 120, 0.16);
  outline: none;
}

.admin-booking-toggle-dot {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #0f8f78;
}

.admin-booking-toggle-dot::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 22px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.22);
  transition: left 0.2s ease;
}

.admin-booking-toggle strong,
.admin-booking-toggle small {
  display: block;
}

.admin-booking-toggle strong {
  font-size: 14px;
  line-height: 1.2;
}

.admin-booking-toggle small {
  margin-top: 2px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.25;
}

.admin-booking-toggle.is-off {
  border-color: #fecaca;
  color: #991b1b;
  background: #fff1f2;
  box-shadow: 0 10px 28px rgba(220, 38, 38, 0.08);
}

.admin-booking-toggle.is-off .admin-booking-toggle-dot {
  background: #dc2626;
}

.admin-booking-toggle.is-off .admin-booking-toggle-dot::after {
  left: 6px;
}

.admin-booking-subtab {
  min-width: 138px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(15, 143, 120, 0.2);
  border-bottom-color: transparent;
  border-radius: 8px 8px 0 0;
  background: rgba(255, 255, 255, 0.62);
  color: #52657a;
  font-weight: 850;
  cursor: pointer;
}

.admin-booking-subtab.is-active {
  border-color: #0f8f78;
  border-bottom-color: #0f8f78;
  background: #0f8f78;
  color: #ffffff;
}

.admin-booking-subpanel {
  min-height: 520px;
  padding: 22px;
  border: 1px solid rgba(15, 143, 120, 0.2);
  border-radius: 0 8px 8px 8px;
  background: rgba(255, 255, 255, 0.54);
}

.admin-booking-subpanel.is-hidden {
  display: none;
}

.admin-booking-inner-heading h3,
.admin-booking-box h4,
.admin-empty-state h3 {
  margin: 0;
}

.admin-booking-manager {
  display: grid;
  gap: 14px;
}

.admin-booking-box {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(15, 143, 120, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
}

.admin-booking-box-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-booking-box-head p,
.admin-booking-help {
  margin: 4px 0 0;
  color: #5d7180;
  font-size: 0.82rem;
  line-height: 1.35;
}

.admin-booking-category-list,
.admin-booking-service-list {
  display: grid;
  gap: 10px;
}

.admin-booking-category-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(220px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
}

.admin-booking-category-row label,
.admin-booking-service-fields label {
  display: grid;
  gap: 5px;
  min-width: 0;
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-booking-category-row input[type="text"],
.admin-booking-service-fields input,
.admin-booking-service-fields select {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid rgba(15, 143, 120, 0.32);
  border-radius: 8px;
  background: #effbf5;
  color: #142033;
  font: inherit;
}

.admin-booking-check {
  display: inline-flex !important;
  grid-auto-flow: column;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  min-height: 40px;
  font-weight: 800;
}

.admin-booking-check input {
  width: 17px;
  height: 17px;
}

.admin-booking-service-row {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 12px 12px 14px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
}

.admin-booking-service-row + .admin-booking-service-row {
  border-top-color: rgba(20, 32, 51, 0.28);
}

.admin-booking-service-fields {
  display: grid;
  grid-template-columns: minmax(130px, 0.75fr) minmax(170px, 1fr) minmax(220px, 1.15fr) minmax(86px, 0.38fr) minmax(86px, 0.38fr) auto;
  gap: 10px;
  align-items: end;
}

.admin-booking-service-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.admin-booking-service-barbers {
  display: grid;
  gap: 6px;
}

.admin-booking-service-remove {
  min-height: 40px;
  padding: 0 14px;
  align-self: start;
  font-size: 14px;
}

.admin-booking-barber-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-booking-barber-check {
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid rgba(15, 143, 120, 0.28);
  border-radius: 8px;
  background: #effbf5;
}

.admin-booking-row-actions {
  display: flex;
  justify-content: flex-end;
}

.admin-calendar-shell,
.admin-calendar-main,
.admin-calendar-form,
.admin-calendar-board,
.admin-calendar-entry-list {
  display: grid;
  gap: 14px;
}

.admin-calendar-heading,
.admin-calendar-monthbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-calendar-title-stack {
  display: grid;
  gap: 8px;
  justify-items: center;
  min-width: 0;
}

.admin-calendar-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(15, 143, 120, 0.18);
  border-radius: 999px;
  background: rgba(239, 251, 245, 0.86);
}

.admin-calendar-view-toggle button {
  min-height: 30px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: #006f60;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.admin-calendar-view-toggle button.is-active {
  color: #ffffff;
  background: #0f8f78;
  box-shadow: 0 6px 16px rgba(15, 143, 120, 0.18);
}

.admin-calendar-heading .admin-secondary-button,
.admin-calendar-monthbar .admin-secondary-button,
.admin-calendar-form .admin-primary-button,
.admin-calendar-form .admin-secondary-button {
  min-height: 54px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: center;
}

#employeeCalendarSaveButton {
  min-width: 126px;
  min-height: 46px;
  padding: 9px 16px;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

.admin-page .admin-primary-button,
.admin-page .admin-secondary-button,
.admin-page .admin-danger-button,
.admin-page .admin-link-button {
  font-family: "Manrope", Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.admin-calendar-employee-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  overflow: visible;
  padding: 2px 0 8px;
}

.admin-calendar-employee {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 70px;
  padding: 10px;
  border: 1px solid rgba(15, 143, 120, 0.18);
  border-radius: 8px;
  background: #ffffff;
  color: #102033;
  text-align: left;
  cursor: pointer;
}

.admin-calendar-employee.is-active {
  border-color: #0f8f78;
  background: #e9f8f3;
  box-shadow: 0 10px 24px rgba(15, 143, 120, 0.12);
}

.admin-calendar-employee.is-disabled {
  opacity: 0.58;
}

.admin-calendar-employee-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 50%;
  background: #dcefe9;
  color: #0b6f60;
  font-weight: 900;
}

.admin-calendar-employee-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-calendar-employee strong,
.admin-calendar-employee small {
  display: block;
}

.admin-calendar-employee small {
  color: #64748b;
  font-size: 12px;
}

@media (max-width: 760px) {
  .admin-calendar-employee-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .admin-calendar-employee-rail {
    grid-template-columns: 1fr;
  }
}

.admin-calendar-main {
  grid-template-columns: minmax(240px, 0.38fr) minmax(0, 1fr);
  align-items: start;
}

.admin-calendar-form,
.admin-calendar-board {
  padding: 14px;
  border: 1px solid rgba(15, 143, 120, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.admin-calendar-form h4 {
  margin: 0;
}

.admin-calendar-form label {
  display: grid;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 850;
}

.admin-calendar-form input,
.admin-calendar-form select {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid rgba(15, 143, 120, 0.32);
  border-radius: 8px;
  background: #effbf5;
  color: #142033;
  font: inherit;
}

.admin-calendar-time-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.admin-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(62px, 1fr));
  gap: 8px;
}

.admin-calendar-grid.is-year-view {
  grid-template-columns: repeat(3, minmax(190px, 1fr));
  gap: 12px;
}

.admin-calendar-year-month {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(15, 143, 120, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.admin-calendar-year-month h4 {
  margin: 0;
  font-size: 14px;
  line-height: 1.15;
  text-transform: capitalize;
}

.admin-calendar-year-month.is-collapsed-past {
  min-height: 48px;
  align-content: center;
  gap: 2px;
  padding: 9px 10px;
  background: rgba(248, 250, 252, 0.78);
  color: #94a3b8;
}

.admin-calendar-year-month.is-collapsed-past h4 {
  color: #64748b;
}

.admin-calendar-year-month.is-collapsed-past span {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}

.admin-calendar-mini-weekdays,
.admin-calendar-mini-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}

.admin-calendar-mini-weekdays span {
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.admin-calendar-selection-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 143, 120, 0.14);
  border-radius: 8px;
  background: rgba(239, 251, 245, 0.75);
}

.admin-calendar-selection-tools p {
  margin: 0;
  color: #52657a;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.admin-calendar-selection-tools .admin-secondary-button {
  min-height: 36px;
  padding: 8px 12px;
  white-space: nowrap;
}

.admin-calendar-mark-actions {
  display: grid;
  gap: 8px;
  min-width: 190px;
}

.admin-calendar-mark-actions .admin-secondary-button {
  width: 100%;
}

.admin-calendar-day {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  align-content: start;
  gap: 2px;
  min-width: 0;
  min-height: 84px;
  padding: 8px;
  overflow: hidden;
  border: 1px solid rgba(15, 143, 120, 0.14);
  border-radius: 8px;
  background: #ffffff;
  color: #102033;
  text-align: left;
  cursor: pointer;
}

.admin-calendar-day.is-mini {
  place-items: center;
  min-height: 30px;
  padding: 2px;
  border-radius: 6px;
  text-align: center;
}

.admin-calendar-day.is-mini span {
  margin: 0;
  font-size: 12px;
  line-height: 1;
}

.admin-calendar-day.is-mini small,
.admin-calendar-day.is-mini .admin-calendar-holiday,
.admin-calendar-day.is-mini .admin-calendar-closed-label {
  display: none;
}

@media (max-width: 720px) {
  .admin-calendar-selection-tools {
    align-items: stretch;
    flex-direction: column;
  }
}

.admin-calendar-day.is-empty {
  background: transparent;
  border: 0;
}

.admin-calendar-day strong,
.admin-calendar-day span,
.admin-calendar-day small {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  line-height: 1.15;
  text-overflow: ellipsis;
}

.admin-calendar-day strong {
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.admin-calendar-day span {
  margin-top: 1px;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.05;
  white-space: nowrap;
}

.admin-calendar-day small {
  margin-top: 2px;
  color: #52657a;
  font-size: 11px;
  font-weight: 850;
}

.admin-calendar-day.is-selected {
  border-color: #0f8f78;
  box-shadow: 0 0 0 2px rgba(15, 143, 120, 0.12);
}

.admin-calendar-day.is-holiday {
  border-color: #2563eb;
  background: #eff6ff;
}

.admin-calendar-day.is-closed {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #64748b;
  cursor: not-allowed;
}

.admin-calendar-day.is-closed span,
.admin-calendar-day.is-closed small {
  color: #64748b;
}

.admin-calendar-day .admin-calendar-closed-label {
  margin-top: 3px;
  color: #64748b;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.1;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
}

.admin-calendar-day.is-closed:not(.has-status) {
  opacity: 0.78;
}

.admin-calendar-day.is-past {
  border-color: #d8e1ea;
  background: #f8fafc;
  color: #94a3b8;
  cursor: not-allowed;
  opacity: 0.58;
}

.admin-calendar-day.is-past strong,
.admin-calendar-day.is-past span,
.admin-calendar-day.is-past small {
  color: #94a3b8;
}

.admin-calendar-day.is-past.has-status {
  border-color: #e5e7eb;
  background: #f8fafc;
}

.admin-calendar-day .admin-calendar-holiday {
  display: -webkit-box;
  max-height: 26px;
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.18;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.admin-calendar-day small + .admin-calendar-holiday {
  max-height: 13px;
  -webkit-line-clamp: 1;
}

.admin-calendar-day.is-holiday.has-status .admin-calendar-holiday {
  max-height: 13px;
  -webkit-line-clamp: 1;
  color: #1d4ed8;
}

.admin-calendar-day.is-vacation,
.admin-calendar-entry.is-vacation {
  border-color: #f59e0b;
  background: #fff7ed;
}

.admin-calendar-day.is-off,
.admin-calendar-entry.is-off {
  border-color: #ef4444;
  background: #fff1f2;
}

.admin-calendar-day.is-pause,
.admin-calendar-entry.is-pause {
  border-color: #64748b;
  background: #f1f5f9;
}

.admin-calendar-day.is-available,
.admin-calendar-entry.is-available {
  border-color: #0f8f78;
  background: #ecfdf5;
}

.admin-calendar-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(15, 143, 120, 0.14);
  border-radius: 8px;
}

.admin-calendar-entry span {
  display: block;
  margin-top: 3px;
  color: #52657a;
  font-size: 0.82rem;
}

.admin-empty-state {
  padding: 28px;
  border: 1px dashed rgba(15, 143, 120, 0.24);
  border-radius: 8px;
  background: rgba(15, 143, 120, 0.04);
}

.admin-empty-state p {
  margin: 8px 0 0;
  color: #5d7180;
}

html[data-theme="black"] .admin-panel-note,
html[data-theme="black"] .admin-booking-box-head p,
html[data-theme="black"] .admin-booking-help,
html[data-theme="black"] .admin-empty-state p {
  color: #c5ced8;
}

html[data-theme="black"] .admin-booking-subnav,
html[data-theme="black"] .admin-booking-box,
html[data-theme="black"] .admin-booking-service-row,
html[data-theme="black"] .admin-booking-subpanel,
html[data-theme="black"] .admin-empty-state,
html[data-theme="black"] .admin-calendar-form,
html[data-theme="black"] .admin-calendar-board,
html[data-theme="black"] .admin-calendar-employee,
html[data-theme="black"] .admin-calendar-year-month,
html[data-theme="black"] .admin-calendar-day,
html[data-theme="black"] .admin-calendar-entry {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

html[data-theme="black"] .admin-calendar-view-toggle {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="black"] .admin-calendar-view-toggle button {
  color: #cbd5e1;
}

html[data-theme="black"] .admin-calendar-view-toggle button.is-active {
  color: #ffffff;
  background: #0f8f78;
}

html[data-theme="black"] .admin-calendar-year-month.is-collapsed-past {
  background: rgba(255, 255, 255, 0.035) !important;
  color: #6f7882;
}

html[data-theme="black"] .admin-calendar-year-month.is-collapsed-past h4,
html[data-theme="black"] .admin-calendar-year-month.is-collapsed-past span {
  color: #6f7882 !important;
}

html[data-theme="black"] .admin-booking-category-row input[type="text"],
html[data-theme="black"] .admin-booking-service-fields input,
html[data-theme="black"] .admin-booking-service-fields select,
html[data-theme="black"] .admin-calendar-form input,
html[data-theme="black"] .admin-calendar-form select {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #f5f7fb;
}

html[data-theme="black"] .admin-calendar-employee,
html[data-theme="black"] .admin-calendar-day,
html[data-theme="black"] .admin-calendar-entry {
  color: #f5f7fb;
}

html[data-theme="black"] .admin-booking-barber-check {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 980px) {
  .admin-booking-category-row,
  .admin-booking-service-fields {
    grid-template-columns: 1fr 1fr;
  }

  .admin-calendar-grid.is-year-view {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 640px) {
  .admin-booking-box-head,
  .admin-booking-inner-heading {
    align-items: stretch;
  }

  .admin-booking-category-row,
  .admin-booking-service-fields,
  .admin-calendar-main {
    grid-template-columns: 1fr;
  }

  .admin-booking-subtab {
    flex: 1 1 150px;
  }

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

  .admin-calendar-grid.is-year-view {
    grid-template-columns: 1fr;
  }

  .admin-calendar-heading,
  .admin-calendar-monthbar,
  .admin-calendar-entry {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-calendar-title-stack {
    justify-items: stretch;
  }

  .admin-calendar-view-toggle {
    justify-content: center;
  }
}


.admin-no-style-control {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--sarko-line, #d7e4de);
  border-radius: 12px;
  background: #f7fbf9;
}

.admin-no-style-control strong {
  display: block;
  font-size: 0.98rem;
  color: #06151f;
}

.admin-no-style-control > div:first-child span {
  display: block;
  margin-top: 4px;
  font-size: 0.84rem;
  line-height: 1.35;
  color: #5d6f7b;
}

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

.admin-no-style-card {
  display: grid;
  min-width: 0;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(15, 143, 120, .18);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 37, 48, .06);
}

.admin-no-style-card > strong {
  text-align: center;
  font-size: 0.78rem;
}

.admin-no-style-preview {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  border: 1px solid #d7e4de;
  border-radius: 8px;
  background: #eef6f2;
  color: #6b7a8a;
  font-weight: 900;
  font-size: 0.82rem;
}

.admin-no-style-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 680px) {
  .admin-no-style-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

html[data-theme="black-gold"] .admin-no-style-control,
html[data-theme="black-gold"] .admin-no-style-card {
  color: #fff8e6 !important;
  background: rgba(13, 11, 8, 0.9) !important;
  border-color: rgba(221, 176, 76, 0.32) !important;
}

html[data-theme="black-gold"] .admin-no-style-control strong,
html[data-theme="black-gold"] .admin-no-style-card > strong {
  color: #fff8e6 !important;
}

html[data-theme="black-gold"] .admin-no-style-control > div:first-child span {
  color: rgba(255, 248, 230, 0.7) !important;
}

html[data-theme="black-gold"] .admin-no-style-preview {
  color: rgba(255, 248, 230, 0.72) !important;
  background: rgba(8, 7, 5, 0.78) !important;
  border-color: rgba(221, 176, 76, 0.28) !important;
}

html[data-theme="black"] .admin-no-style-control,
html[data-theme="black"] .admin-no-style-card {
  color: #edf7f2 !important;
  background: rgba(9, 16, 18, 0.9) !important;
  border-color: rgba(119, 255, 190, 0.18) !important;
}

html[data-theme="black"] .admin-no-style-control strong,
html[data-theme="black"] .admin-no-style-card > strong {
  color: #edf7f2 !important;
}

html[data-theme="black"] .admin-no-style-control > div:first-child span {
  color: rgba(237, 247, 242, 0.66) !important;
}

html[data-theme="black"] .admin-no-style-preview {
  color: rgba(237, 247, 242, 0.72) !important;
  background: rgba(5, 11, 12, 0.78) !important;
  border-color: rgba(119, 255, 190, 0.16) !important;
}
.admin-language-control {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--sarko-line, #d7e4de);
  border-radius: 12px;
  background: #f7fbf9;
}

.admin-language-control strong {
  display: block;
  font-size: 0.98rem;
  color: #06151f;
}

.admin-language-control span {
  display: block;
  margin-top: 4px;
  font-size: 0.84rem;
  color: #5d6f7b;
}

.admin-language-current,
.admin-language-close,
.admin-language-option {
  border: 1px solid rgba(15, 143, 120, .22);
  background: #ecf8f4;
  color: #006b5a;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.admin-language-current {
  min-width: 74px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(15, 143, 120, .12);
}

.admin-language-current::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
}

.admin-language-current span {
  margin: 0;
  color: inherit;
  font-size: 0.98rem;
}

.admin-language-save-button {
  grid-column: 2;
  justify-self: stretch;
  min-height: 38px;
}

.admin-language-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  width: min(320px, 100%);
  padding: 12px;
  border: 1px solid rgba(15, 143, 120, .2);
  border-radius: 16px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 24px 60px rgba(15, 37, 48, .18);
}

.admin-language-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.admin-language-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  line-height: 1;
}

.admin-language-options {
  display: grid;
  gap: 8px;
  width: 100%;
  max-height: 340px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding-right: 2px;
}

.admin-language-options::-webkit-scrollbar {
  width: 6px;
}

.admin-language-options::-webkit-scrollbar-thumb {
  background: rgba(15, 143, 120, .28);
  border-radius: 999px;
}

.admin-language-option {
  width: 100%;
  min-height: 46px;
  display: grid;
  grid-template-columns: 42px 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(15, 143, 120, .12);
  border-radius: 12px;
  text-align: left;
  padding: 7px 10px;
  box-shadow: 0 8px 20px rgba(15, 37, 48, .1);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.admin-language-option span {
  display: grid;
  place-items: center;
  width: 100%;
  margin: 0;
  color: inherit;
  line-height: 1;
  letter-spacing: 0;
}

.admin-language-option .admin-language-flag {
  height: 32px;
  font-size: 24px;
}

.admin-language-option .admin-language-flag.is-text {
  font-size: 0.92rem;
  font-weight: 950;
}

.admin-language-option .admin-language-label {
  display: block;
  width: auto;
  color: inherit;
  font-size: 0.92rem;
  font-weight: 950;
}

.admin-language-option small {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #5d6f7b;
  font-size: 0.8rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-language-option.is-disabled {
  cursor: default;
  opacity: .64;
  filter: blur(.2px) saturate(.78) grayscale(.12);
}

.admin-language-kurdistan-flag {
  display: block;
  width: 42px;
  height: 28px;
  object-fit: cover;
  border: 0;
  border-radius: 6px;
  box-shadow: none;
  background: transparent;
}

.admin-language-option.is-active {
  background: #d8ffc9;
  color: #063f33;
  box-shadow: inset 0 0 0 1px #9be6a7, 0 7px 16px rgba(155, 230, 167, .14);
}

.admin-language-option:active {
  transform: scale(.97);
}

.admin-header .admin-logo-preview {
  pointer-events: none;
}

@media (max-width: 680px) {
  .admin-design-logo-control,
  .admin-language-control {
    grid-template-columns: 1fr;
  }

  .admin-design-logo-actions {
    justify-content: flex-start;
  }

  .admin-language-popover {
    left: 0;
    right: 0;
    width: auto;
  }
}
/* Public workflow animation v1 */
.workflow-page {
  min-height: 100vh;
  color: #17202b;
  background:
    radial-gradient(circle at 14% 8%, rgba(15, 143, 120, .14), transparent 28%),
    linear-gradient(135deg, #f8fbf9 0%, #ffffff 44%, #eef7f3 100%);
}

.workflow-hero {
  width: min(1320px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, .82fr) minmax(620px, 1.18fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
  padding: 34px 0;
}

.workflow-copy {
  min-width: 0;
}

.workflow-copy h1 {
  margin: 0;
  font-size: clamp(44px, 5vw, 74px);
  line-height: 1;
  letter-spacing: 0;
}

.workflow-copy .lead {
  margin: 22px 0 30px;
  max-width: 620px;
  color: #526173;
  font-size: clamp(18px, 1.6vw, 23px);
  line-height: 1.48;
}

.workflow-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 620px;
}

.workflow-links .main-button {
  min-height: 58px;
  border-radius: 14px;
  font-size: 17px;
}

.workflow-stage {
  position: relative;
  min-height: 720px;
  display: grid;
  grid-template-columns: 180px minmax(210px, .65fr) minmax(390px, 1fr);
  gap: 18px;
  align-items: center;
  padding: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, .76);
  border: 1px solid #d9e8e2;
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(15, 46, 38, .14);
}

.shop-screen,
.phone-demo,
.tablet-demo {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border: 1px solid #d9e8e2;
  box-shadow: 0 18px 42px rgba(15, 46, 38, .10);
}

.shop-screen {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 18px;
  border-radius: 20px;
}

.workflow-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #f4f7f5;
  border: 1px solid #dbe7e2;
  border-radius: 14px;
}

.screen-kicker,
.phone-slide p,
.tablet-detail p {
  margin: 0;
  color: #6680ad;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.qr-card-small {
  width: 116px;
  height: 116px;
  display: grid;
  place-items: center;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #d6e2dd;
  border-radius: 12px;
}

.qr-card-small img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.scan-line {
  width: 116px;
  height: 4px;
  background: #0f8f78;
  border-radius: 999px;
  animation: workflowScan 9s ease-in-out infinite;
}

.phone-demo {
  height: 580px;
  padding: 44px 14px 18px;
  overflow: hidden;
  border-radius: 34px;
  background: #f8fbf9;
}

.phone-demo::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px solid #101820;
  border-radius: 28px;
  pointer-events: none;
}

.phone-bar {
  position: absolute;
  top: 21px;
  left: 50%;
  width: 76px;
  height: 8px;
  background: #111827;
  border-radius: 999px;
  transform: translateX(-50%);
}

.phone-slide {
  position: absolute;
  inset: 48px 18px 20px;
  display: grid;
  align-content: start;
  gap: 14px;
  opacity: 0;
  transform: translateY(18px) scale(.98);
  animation: phoneFlow 18s infinite;
}

.phone-step-2 { animation-delay: 3s; }
.phone-step-3 { animation-delay: 6s; }
.phone-step-4 { animation-delay: 9s; }
.phone-step-5 { animation-delay: 12s; }

.phone-slide > strong {
  color: #08705f;
  font-size: 17px;
  line-height: 1.2;
}

.scan-box {
  height: 250px;
  display: grid;
  place-items: center;
  background: #06100d;
  border-radius: 22px;
  box-shadow: inset 0 0 0 2px rgba(15, 143, 120, .28);
}

.scan-box span {
  width: 68%;
  height: 4px;
  background: #0f8f78;
  border-radius: 999px;
  box-shadow: 0 0 24px rgba(15, 143, 120, .72);
  animation: scanPulse 1.4s ease-in-out infinite;
}

.mini-grid {
  display: grid;
  gap: 10px;
}

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

.mini-card,
.barber-mini {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 170px;
  padding: 10px;
  color: #17202b;
  background: #ffffff;
  border: 2px solid #d9e8e2;
  border-radius: 14px;
}

.mini-card.selected,
.barber-mini.selected {
  background: #eefaf5;
  border-color: #0f8f78;
  box-shadow: 0 0 0 3px rgba(15, 143, 120, .10);
}

.mini-card img {
  width: 100%;
  height: 102px;
  object-fit: cover;
  border-radius: 10px;
}

.mini-card strong,
.barber-mini strong {
  font-size: 13px;
  text-align: center;
}

.barber-mini img {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 50%;
}

.barber-mini b {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: #ffd987;
  border: 2px solid #ffffff;
  border-radius: 999px;
}

.name-photo-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  gap: 8px;
}

.name-photo-row span,
.name-photo-row button,
.send-demo {
  min-height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-weight: 900;
}

.name-photo-row span {
  justify-content: start;
  padding: 0 14px;
  background: #ffffff;
  border: 2px solid #0f8f78;
}

.name-photo-row button {
  color: #08705f;
  background: #eef8f4;
  border: 1px solid #bfe4d9;
}

.customer-photo {
  height: 250px;
  overflow: hidden;
  border-radius: 16px;
}

.customer-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.send-demo {
  width: 100%;
  color: #ffffff;
  background: #0f8f78;
  border: 0;
  font-size: 18px;
}

.tablet-demo {
  height: 620px;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 24px;
  animation: tabletGlow 18s infinite;
}

.tablet-sidebar {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px 12px;
  background: #f4fbf8;
  border-right: 1px solid #d9e8e2;
}

.tablet-sidebar > img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 14px;
}

.tablet-sidebar > strong {
  font-size: 20px;
  line-height: 1.05;
}

.tablet-sidebar > span {
  width: max-content;
  padding: 6px 10px;
  color: #08705f;
  background: #dff6ed;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.queue-demo-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-top: 20px;
  padding: 9px;
  background: #eafff5;
  border: 1px solid #98ecc3;
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(15, 143, 120, .18);
  animation: queueArrive 18s infinite;
}

.queue-demo-card img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 10px;
}

.queue-demo-card strong,
.queue-demo-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-demo-card b {
  color: #08705f;
  font-size: 10px;
}

.tablet-detail {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 20px;
}

.tablet-detail h2 {
  justify-self: start;
  margin: 0;
  font-size: 28px;
}

.tablet-main-style {
  width: min(100%, 360px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(15, 46, 38, .12);
  animation: styleViews 18s infinite;
}

.tablet-thumbs {
  width: min(100%, 390px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.tablet-thumbs img {
  width: 100%;
  aspect-ratio: 1.2;
  object-fit: cover;
  border: 2px solid #d9e8e2;
  border-radius: 10px;
}

.tablet-actions {
  width: min(100%, 390px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.tablet-actions button {
  min-height: 42px;
  color: #ffffff;
  border: 0;
  border-radius: 10px;
  background: #2874f0;
  font-weight: 900;
}

.tablet-actions button:last-child {
  background: #0f8f78;
  animation: donePulse 18s infinite;
}

.flow-labels {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 18px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.flow-labels span {
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 0 8px;
  color: #526173;
  background: #ffffff;
  border: 1px solid #d9e8e2;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  animation: labelPulse 18s infinite;
}

.flow-labels span:nth-child(2) { animation-delay: 3s; }
.flow-labels span:nth-child(3) { animation-delay: 6s; }
.flow-labels span:nth-child(4) { animation-delay: 9s; }
.flow-labels span:nth-child(5) { animation-delay: 12s; }
.flow-labels span:nth-child(6) { animation-delay: 15s; }

@keyframes phoneFlow {
  0%, 15% { opacity: 1; transform: translateY(0) scale(1); }
  20%, 100% { opacity: 0; transform: translateY(-18px) scale(.98); }
}

@keyframes workflowScan {
  0%, 20% { transform: translateY(-48px); opacity: .35; }
  26%, 34% { transform: translateY(48px); opacity: 1; }
  40%, 100% { transform: translateY(0); opacity: .35; }
}

@keyframes scanPulse {
  0%, 100% { transform: translateY(-42px); }
  50% { transform: translateY(42px); }
}

@keyframes queueArrive {
  0%, 64% { opacity: .18; transform: translateX(-18px); }
  68%, 100% { opacity: 1; transform: translateX(0); }
}

@keyframes tabletGlow {
  0%, 66% { box-shadow: 0 18px 42px rgba(15, 46, 38, .10); }
  70%, 100% { box-shadow: 0 0 0 4px rgba(122, 231, 180, .22), 0 28px 64px rgba(15, 143, 120, .20); }
}

@keyframes styleViews {
  0%, 72% { object-position: center; }
  78%, 84% { object-position: 42% center; }
  90%, 96% { object-position: 58% center; }
}

@keyframes donePulse {
  0%, 84% { transform: none; box-shadow: none; }
  88%, 96% { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(15, 143, 120, .28); }
}

@keyframes labelPulse {
  0%, 15% { color: #ffffff; background: #0f8f78; border-color: #0f8f78; }
  20%, 100% { color: #526173; background: #ffffff; border-color: #d9e8e2; }
}

@media (max-width: 1120px) {
  .workflow-hero {
    grid-template-columns: 1fr;
  }

  .workflow-stage {
    min-height: 660px;
    grid-template-columns: 150px 210px minmax(340px, 1fr);
  }
}

@media (max-width: 820px) {
  .workflow-hero {
    width: min(100% - 24px, 520px);
    padding: 18px 0;
  }

  .workflow-links {
    grid-template-columns: 1fr;
  }

  .workflow-stage {
    min-height: 980px;
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .shop-screen {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .qr-card-small {
    width: 72px;
    height: 72px;
  }

  .scan-line {
    width: 70px;
  }

  .phone-demo,
  .tablet-demo {
    width: 100%;
    height: 430px;
  }

  .tablet-demo {
    grid-template-columns: 130px minmax(0, 1fr);
  }

  .tablet-main-style {
    width: min(100%, 210px);
  }

  .flow-labels {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .workflow-stage *,
  .workflow-stage *::before,
  .workflow-stage *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
/* End public workflow animation v1 */
/* Public workflow animation fit v2 */
@media (min-width: 821px) {
  .workflow-stage {
    grid-template-columns: 132px 178px minmax(300px, 1fr);
    gap: 12px;
    padding: 18px;
  }

  .shop-screen {
    padding: 14px 10px;
  }

  .workflow-logo {
    width: 54px;
    height: 54px;
  }

  .qr-card-small {
    width: 94px;
    height: 94px;
  }

  .scan-line {
    width: 94px;
  }

  .phone-demo {
    height: 548px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .phone-slide {
    inset-left: 16px;
    inset-right: 16px;
  }

  .scan-box {
    height: 220px;
  }

  .mini-grid.two {
    grid-template-columns: 1fr;
  }

  .mini-card,
  .barber-mini {
    min-height: 116px;
  }

  .mini-card img {
    height: 74px;
  }

  .barber-mini img {
    width: 58px;
    height: 58px;
  }

  .customer-photo {
    height: 206px;
  }

  .tablet-demo {
    height: 548px;
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .tablet-sidebar {
    padding: 12px 9px;
  }

  .tablet-sidebar > img {
    width: 52px;
    height: 52px;
  }

  .tablet-sidebar > strong {
    font-size: 16px;
  }

  .queue-demo-card {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .queue-demo-card img {
    width: 34px;
    height: 34px;
  }

  .queue-demo-card b {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .tablet-detail {
    padding: 14px 12px;
  }

  .tablet-detail h2 {
    font-size: 22px;
  }

  .tablet-main-style {
    width: min(100%, 250px);
  }

  .tablet-thumbs,
  .tablet-actions {
    width: min(100%, 280px);
  }

  .tablet-actions button {
    min-height: 38px;
    padding: 0 8px;
    font-size: 11px;
  }
}
/* End public workflow animation fit v2 */

/* Global button press feedback v1 */
:where(
  .main-button,
  .camera-button,
  .send-order-button,
  .barber-status-button,
  .dark-ghost-button,
  .drawing-tool-button,
  .thumb-button,
  .barber-action-button,
  .style-thumb-button,
  .style-modal-button,
  .photo-source-button,
  .photo-modal-button,
  .qr-start-camera-button,
  .manual-qr-form button,
  .admin-logo-button,
  .admin-primary-button,
  .admin-secondary-button,
  .admin-danger-button,
  .admin-link-button,
  .admin-upload-choice,
  .admin-theme-presets button,
  .style-access-button,
  .admin-tablet-row-actions button,
  .admin-tablet-actions button,
  .qr-display-language-switch button,
  .customer-language-switch button,
  .employee-quick-button,
  .name-photo-row button,
  .tablet-actions button
) {
  position: relative;
  transform: translateZ(0);
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    filter 140ms ease,
    border-color 140ms ease,
    background-color 140ms ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

:where(
  .main-button,
  .camera-button,
  .send-order-button,
  .barber-status-button,
  .dark-ghost-button,
  .drawing-tool-button,
  .thumb-button,
  .barber-action-button,
  .style-thumb-button,
  .style-modal-button,
  .photo-source-button,
  .photo-modal-button,
  .qr-start-camera-button,
  .manual-qr-form button,
  .admin-logo-button,
  .admin-primary-button,
  .admin-secondary-button,
  .admin-danger-button,
  .admin-link-button,
  .admin-upload-choice,
  .admin-theme-presets button,
  .style-access-button,
  .admin-tablet-row-actions button,
  .admin-tablet-actions button,
  .qr-display-language-switch button,
  .customer-language-switch button,
  .employee-quick-button,
  .name-photo-row button,
  .tablet-actions button
):hover:not(:disabled) {
  filter: brightness(1.03);
  transform: translateY(-2px) scale(1.01);
}

:where(
  .main-button,
  .camera-button,
  .send-order-button,
  .barber-status-button,
  .dark-ghost-button,
  .drawing-tool-button,
  .thumb-button,
  .barber-action-button,
  .style-thumb-button,
  .style-modal-button,
  .photo-source-button,
  .photo-modal-button,
  .qr-start-camera-button,
  .manual-qr-form button,
  .admin-logo-button,
  .admin-primary-button,
  .admin-secondary-button,
  .admin-danger-button,
  .admin-link-button,
  .admin-upload-choice,
  .admin-theme-presets button,
  .style-access-button,
  .admin-tablet-row-actions button,
  .admin-tablet-actions button,
  .qr-display-language-switch button,
  .customer-language-switch button,
  .employee-quick-button,
  .name-photo-row button,
  .tablet-actions button
):active:not(:disabled) {
  filter: brightness(0.98);
  transform: translateY(2px) scale(0.985) !important;
  box-shadow: 0 4px 12px rgba(15, 46, 38, 0.14) !important;
}

:where(
  .main-button,
  .camera-button,
  .send-order-button,
  .barber-status-button,
  .dark-ghost-button,
  .drawing-tool-button,
  .thumb-button,
  .barber-action-button,
  .style-thumb-button,
  .style-modal-button,
  .photo-source-button,
  .photo-modal-button,
  .qr-start-camera-button,
  .manual-qr-form button,
  .admin-logo-button,
  .admin-primary-button,
  .admin-secondary-button,
  .admin-danger-button,
  .admin-link-button,
  .admin-upload-choice,
  .admin-theme-presets button,
  .style-access-button,
  .admin-tablet-row-actions button,
  .admin-tablet-actions button,
  .qr-display-language-switch button,
  .customer-language-switch button,
  .employee-quick-button,
  .name-photo-row button,
  .tablet-actions button
):focus-visible {
  outline: 3px solid rgba(15, 143, 120, 0.28);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  :where(
    .main-button,
    .camera-button,
    .send-order-button,
    .barber-status-button,
    .dark-ghost-button,
    .drawing-tool-button,
    .thumb-button,
    .barber-action-button,
    .style-thumb-button,
    .style-modal-button,
    .photo-source-button,
    .photo-modal-button,
    .qr-start-camera-button,
    .manual-qr-form button,
    .admin-logo-button,
    .admin-primary-button,
    .admin-secondary-button,
    .admin-danger-button,
    .admin-link-button,
    .admin-upload-choice,
    .admin-theme-presets button,
    .style-access-button,
    .admin-tablet-row-actions button,
    .admin-tablet-actions button,
    .qr-display-language-switch button,
    .customer-language-switch button,
    .employee-quick-button,
    .name-photo-row button,
    .tablet-actions button
  ) {
    transition: none !important;
  }
}
/* End global button press feedback v1 */

/* Barber transfer popup v1 */
.barber-page .transfer-modal {
  place-items: center !important;
  padding: clamp(14px, 3vw, 28px) !important;
  overflow: hidden !important;
}

.barber-page .transfer-card {
  width: min(94vw, 560px) !important;
  max-height: min(76vh, 680px) !important;
  padding: clamp(18px, 2.4vw, 24px) !important;
  border-radius: 22px !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.barber-page .transfer-header {
  align-items: flex-start !important;
  flex: 0 0 auto !important;
  margin-bottom: 14px !important;
}

.barber-page .transfer-list {
  display: grid !important;
  gap: 10px !important;
  max-height: min(50vh, 430px) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  padding: 2px 4px 2px 0 !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.barber-page .transfer-list::-webkit-scrollbar {
  display: none !important;
}

.barber-page .transfer-employee {
  grid-template-columns: 58px minmax(0, 1fr) auto !important;
  min-height: 78px !important;
  padding: 10px 12px !important;
  gap: 12px !important;
  border-radius: 16px !important;
}

.barber-page .transfer-avatar {
  width: 58px !important;
  height: 58px !important;
}

.barber-page .transfer-avatar img,
.barber-page .transfer-avatar em {
  width: 100% !important;
  height: 100% !important;
}

.barber-page .transfer-employee strong {
  min-width: 0 !important;
  font-size: clamp(17px, 2.1vw, 22px) !important;
  line-height: 1.05 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.barber-page .transfer-employee small {
  justify-self: end !important;
  font-size: clamp(13px, 1.7vw, 18px) !important;
  white-space: nowrap !important;
}

.barber-page .transfer-employee b {
  grid-column: 2 / 4 !important;
  align-self: start !important;
  color: #13a06f !important;
  font-size: 13px !important;
}

@media (max-width: 680px) {
  .barber-page .transfer-card {
    width: min(94vw, 440px) !important;
    max-height: 82vh !important;
  }

  .barber-page .transfer-list {
    max-height: 58vh !important;
  }
}
/* End barber transfer popup v1 */

/* Barber style image auto-cycle v2 */
.barber-page .main-style-image > .main-style-layer {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  opacity: 0 !important;
  transition: opacity 4000ms cubic-bezier(0.4, 0, 0.2, 1) !important;
  will-change: opacity !important;
}

.barber-page .main-style-image > .main-style-layer.is-active {
  opacity: 1 !important;
}

.barber-page .main-style-image > .main-style-layer.is-fading-out {
  opacity: 0 !important;
}

.barber-page .main-style-image > .main-style-layer-next {
  pointer-events: none !important;
}

.barber-page #mainImagePlaceholder {
  position: relative !important;
  z-index: 1 !important;
}

.barber-page .thumb-button {
  transition:
    transform 420ms ease,
    border-color 420ms ease,
    box-shadow 520ms ease,
    background 420ms ease,
    color 420ms ease !important;
}

.barber-page .thumb-button span {
  transition:
    background 420ms ease,
    border-color 420ms ease,
    box-shadow 520ms ease !important;
}

.barber-page .thumb-button.is-selected {
  transform: translateY(-3px) scale(1.015) !important;
}

.barber-page .thumb-button.is-leaving {
  border-color: rgba(122, 231, 180, 0.38) !important;
  box-shadow:
    0 0 16px rgba(53, 209, 91, 0.18),
    0 12px 28px rgba(15, 143, 120, 0.12) !important;
}
/* End barber style image auto-cycle v2 */

/* Barber setup v22: no outer card, clean 4x2 employee tile board. */
.barber-page .barber-setup {
  align-content: center !important;
  padding: clamp(38px, 7vh, 86px) clamp(40px, 6vw, 96px) !important;
}

.barber-page .setup-panel {
  width: min(1180px, calc(100vw - 120px)) !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.barber-page #setupTitle {
  margin: 0 0 28px !important;
}

.barber-page .setup-employee-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 220px)) !important;
  grid-template-rows: repeat(2, minmax(218px, auto)) !important;
  grid-auto-flow: row !important;
  grid-auto-columns: unset !important;
  grid-auto-rows: minmax(218px, auto) !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: 28px !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 8px 44px !important;
  overflow: visible !important;
  scroll-snap-type: none !important;
  touch-action: pan-y !important;
}

.barber-page .setup-pager {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 14px !important;
  margin-top: 34px !important;
}

.barber-page .setup-pager.is-hidden {
  display: none !important;
}

.barber-page .setup-pager-button {
  width: 54px !important;
  height: 44px !important;
  display: grid !important;
  place-items: center !important;
  color: #006f5f !important;
  background: rgba(255, 255, 255, 0.78) !important;
  border: 1px solid rgba(15, 143, 120, 0.18) !important;
  border-radius: 12px !important;
  box-shadow: 0 16px 34px rgba(15, 46, 38, 0.10) !important;
  font-size: 30px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease !important;
}

.barber-page .setup-pager-button:hover,
.barber-page .setup-pager-button:focus-visible {
  transform: translateY(-4px) !important;
  background: #ffffff !important;
  box-shadow: 0 24px 44px rgba(15, 46, 38, 0.17) !important;
}

.barber-page .setup-pager-button:active {
  transform: translateY(1px) scale(0.98) !important;
}

.barber-page .setup-pager-button:disabled {
  cursor: default !important;
  opacity: 0.28 !important;
  transform: none !important;
  box-shadow: none !important;
}

.barber-page .setup-pager-label {
  min-width: 74px !important;
  color: #5d6d84 !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  text-align: center !important;
}

.barber-page .setup-employee-card {
  z-index: 1 !important;
  width: 220px !important;
  min-height: 218px !important;
  padding: 18px 14px 16px !important;
  border-radius: 18px !important;
  box-shadow:
    0 18px 32px rgba(15, 46, 38, 0.12),
    0 34px 68px rgba(15, 46, 38, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
  transform: translateZ(0) !important;
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 260ms ease, border-color 260ms ease !important;
  animation: setup-card-enter 260ms ease both !important;
}

.barber-page .setup-employee-card::after {
  content: "" !important;
  position: absolute !important;
  left: 14px !important;
  right: 14px !important;
  bottom: -34px !important;
  height: 40px !important;
  pointer-events: none !important;
  background:
    radial-gradient(ellipse at center, rgba(15, 46, 38, 0.24), rgba(15, 46, 38, 0.08) 46%, rgba(15, 46, 38, 0) 74%) !important;
  border-radius: 0 0 18px 18px !important;
  filter: blur(10px) !important;
  opacity: 0.58 !important;
  transform: scaleY(0.62) scaleX(0.92) !important;
  transition: opacity 260ms ease, transform 260ms ease, filter 260ms ease !important;
}

@keyframes setup-card-enter {
  from {
    opacity: 0;
    transform: translateX(18px) translateY(8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
  }
}

.barber-page .setup-employee-card:hover,
.barber-page .setup-employee-card:focus-visible {
  z-index: 3 !important;
  transform: translateY(-16px) scale(1.045) !important;
  border-color: rgba(15, 143, 120, 0.42) !important;
  box-shadow:
    0 28px 48px rgba(15, 46, 38, 0.16),
    0 54px 92px rgba(15, 46, 38, 0.24),
    0 0 0 5px rgba(15, 143, 120, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

.barber-page .setup-employee-card:hover::after,
.barber-page .setup-employee-card:focus-visible::after {
  opacity: 0.88 !important;
  filter: blur(14px) !important;
  transform: translateY(12px) scaleY(1) scaleX(1.18) !important;
}

.barber-page .setup-photo-placeholder {
  width: 102px !important;
  height: 102px !important;
  margin-bottom: 4px !important;
}

.barber-page .setup-employee-card strong {
  font-size: 22px !important;
  line-height: 1.08 !important;
}

.barber-page .setup-employee-card small {
  font-size: 16px !important;
}

@media (max-width: 980px) {
  .barber-page .setup-panel {
    width: min(100%, calc(100vw - 40px)) !important;
  }

  .barber-page .setup-employee-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(2, minmax(168px, auto)) !important;
    grid-auto-flow: row !important;
    grid-auto-columns: unset !important;
    grid-auto-rows: minmax(168px, auto) !important;
    gap: 12px !important;
    padding-bottom: 30px !important;
  }

  .barber-page .setup-pager {
    margin-top: 22px !important;
  }

  .barber-page .setup-employee-card {
    width: auto !important;
    min-height: 168px !important;
    padding: 12px 8px !important;
  }

  .barber-page .setup-photo-placeholder {
    width: 74px !important;
    height: 74px !important;
  }

  .barber-page .setup-employee-card strong {
    font-size: 16px !important;
  }

  .barber-page .setup-employee-card small {
    font-size: 12px !important;
  }
}

/* Global selectable black design. Controlled by shop setting design_theme. */
.admin-theme-mode-control {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 16px 0 0;
  padding: 18px;
  background: rgba(242, 250, 247, 0.78);
  border: 1px solid rgba(15, 143, 120, 0.18);
  border-radius: 12px;
}

.admin-theme-mode-control strong,
.admin-theme-mode-control span {
  display: block;
}

.admin-theme-mode-control strong {
  margin-bottom: 4px;
}

.admin-theme-mode-control span {
  color: #506178;
  font-size: 14px;
}

.admin-theme-mode-buttons {
  display: inline-flex;
  gap: 8px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 143, 120, 0.18);
  border-radius: 12px;
}

.admin-theme-mode-button {
  min-width: 92px;
  min-height: 42px;
  padding: 10px 16px;
  color: #006b5a;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.admin-theme-mode-button.is-active {
  color: #ffffff;
  background: #0f8f78;
  box-shadow: 0 14px 24px rgba(15, 143, 120, 0.22);
}

.admin-theme-mode-button:active {
  transform: translateY(1px) scale(0.98);
}

html[data-theme="black"] {
  --bg: #020403;
  --surface: #07110e;
  --text: #f4f8f6;
  --muted: #9fb2aa;
  --border: rgba(31, 82, 67, 0.52);
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.66);
  color-scheme: dark;
}

html[data-theme="black"] body,
html[data-theme="black"] .customer-page,
html[data-theme="black"] .qr-display-page,
html[data-theme="black"] .barber-page,
html[data-theme="black"] .style-access-page,
html[data-theme="black"] .qr-scan-page,
html[data-theme="black"] .admin-page {
  color: #f4f8f6 !important;
  background:
    radial-gradient(circle at 14% 8%, rgba(0, 88, 62, 0.28), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(0, 50, 38, 0.22), transparent 32%),
    linear-gradient(135deg, #000000 0%, #03100c 44%, #000302 100%) !important;
}

html[data-theme="black"] .admin-card,
html[data-theme="black"] .admin-panel,
html[data-theme="black"] .admin-form,
html[data-theme="black"] .admin-tablet-control,
html[data-theme="black"] .admin-tablet-row,
html[data-theme="black"] .admin-style-layout,
html[data-theme="black"] .admin-confirm-card,
html[data-theme="black"] .customer-panel,
html[data-theme="black"] .customer-step,
html[data-theme="black"] .customer-page .select-card,
html[data-theme="black"] .customer-page .name-row input,
html[data-theme="black"] .customer-page .camera-button,
html[data-theme="black"] .qr-display-panel,
html[data-theme="black"] .style-access-panel,
html[data-theme="black"] .qr-scan-panel,
html[data-theme="black"] .barber-page .setup-panel,
html[data-theme="black"] .barber-page .setup-employee-card,
html[data-theme="black"] .barber-page .queue-panel,
html[data-theme="black"] .barber-page .queue-header,
html[data-theme="black"] .barber-page .queue-item,
html[data-theme="black"] .barber-page .order-detail-panel,
html[data-theme="black"] .barber-page .order-detail,
html[data-theme="black"] .barber-page .empty-detail,
html[data-theme="black"] .barber-page .main-style-image,
html[data-theme="black"] .barber-page .thumb-button,
html[data-theme="black"] .barber-page .transfer-card,
html[data-theme="black"] .barber-page .transfer-modal,
html[data-theme="black"] .barber-page .barber-dashboard-logo,
html[data-theme="black"] .barber-page .barber-status-switch,
html[data-theme="black"] .barber-page .dark-ghost-button,
html[data-theme="black"] .start-card {
  color: #f4f8f6 !important;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.07), transparent 30%),
    linear-gradient(135deg, rgba(2, 8, 7, 0.98), rgba(5, 26, 20, 0.94)) !important;
  border-color: rgba(31, 95, 75, 0.58) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 34px 90px rgba(0, 0, 0, 0.62),
    0 0 42px rgba(0, 68, 50, 0.16) !important;
  backdrop-filter: blur(18px) saturate(130%);
}

html[data-theme="black"] .admin-tabs,
html[data-theme="black"] .admin-language-control,
html[data-theme="black"] .admin-theme-mode-control,
html[data-theme="black"] .admin-upload-choice,
html[data-theme="black"] .admin-selected-card,
html[data-theme="black"] .admin-style-slot,
html[data-theme="black"] .admin-language-popover,
html[data-theme="black"] .admin-hairstyle-card,
html[data-theme="black"] .admin-tablet-brightness,
html[data-theme="black"] .admin-tablet-fields input,
html[data-theme="black"] .admin-form input[type="email"],
html[data-theme="black"] .admin-form input[type="password"],
html[data-theme="black"] .admin-form input[type="tel"],
html[data-theme="black"] .admin-form input[type="text"],
html[data-theme="black"] .admin-form textarea {
  color: #f4f8f6 !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent 42%),
    rgba(3, 18, 14, 0.96) !important;
  border-color: rgba(35, 106, 83, 0.5) !important;
}

html[data-theme="black"] h1,
html[data-theme="black"] h2,
html[data-theme="black"] h3,
html[data-theme="black"] strong,
html[data-theme="black"] label,
html[data-theme="black"] .customer-page .select-card strong,
html[data-theme="black"] .barber-page .setup-employee-card strong {
  color: #ffffff !important;
}

html[data-theme="black"] p,
html[data-theme="black"] small,
html[data-theme="black"] span,
html[data-theme="black"] .lead,
html[data-theme="black"] .customer-page .customer-header p:not(.customer-kicker),
html[data-theme="black"] .customer-page .privacy-note,
html[data-theme="black"] .admin-language-control span,
html[data-theme="black"] .admin-theme-mode-control span,
html[data-theme="black"] .qr-display-subtitle {
  color: #9fb2aa !important;
}

html[data-theme="black"] .admin-primary-button,
html[data-theme="black"] .main-button,
html[data-theme="black"] .customer-page .send-order-button:not(:disabled) {
  color: #ffffff !important;
  background: linear-gradient(135deg, #008866, #004936 58%, #01271e) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 20px 44px rgba(0, 92, 67, 0.38) !important;
}

html[data-theme="black"] .admin-secondary-button,
html[data-theme="black"] .admin-language-current,
html[data-theme="black"] .admin-theme-mode-button,
html[data-theme="black"] .customer-language-switch button,
html[data-theme="black"] .qr-display-language-switch button {
  color: #dcebe6 !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), transparent 38%),
    rgba(3, 18, 14, 0.96) !important;
  border-color: rgba(35, 106, 83, 0.52) !important;
}

html[data-theme="black"] .admin-theme-mode-button.is-active,
html[data-theme="black"] .customer-language-switch button.is-active,
html[data-theme="black"] .qr-display-language-switch button.is-active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #00956d, #004b38) !important;
  border-color: #00956d !important;
}

html[data-theme="black"] .admin-theme-mode-button[data-design-theme="light"] {
  color: #063f33 !important;
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(216, 255, 201, 0.72) !important;
}

html[data-theme="black"] .admin-theme-mode-button[data-design-theme="black"] {
  color: #ffffff !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 38%),
    rgba(3, 18, 14, 0.98) !important;
  border-color: rgba(35, 106, 83, 0.7) !important;
}

html[data-theme="black"] .admin-theme-mode-button.is-active {
  box-shadow: inset 0 0 0 2px #d8ffc9 !important;
}

html[data-theme="black"] .qr-display-language-switch button.is-active {
  background: #d8ffc9 !important;
  color: #063f33 !important;
  box-shadow: inset 0 0 0 1px #9be6a7, 0 7px 16px rgba(155, 230, 167, .14) !important;
}

html[data-theme="black"] .qr-display-language-switch button:not(.is-active) {
  color: #111827 !important;
  background: rgba(255, 255, 255, .9) !important;
}

html[data-theme="black"] .qr-display-language-switch button.is-disabled {
  opacity: .64 !important;
  filter: blur(.2px) saturate(.78) grayscale(.12) !important;
}

html[data-theme="black"] .barber-page .barber-dashboard {
  background: transparent !important;
}

html[data-theme="black"] .barber-page .queue-panel {
  border-right-color: rgba(148, 163, 184, 0.18) !important;
}

html[data-theme="black"] .barber-page .queue-item.is-selected,
html[data-theme="black"] .barber-page .thumb-button.is-selected {
  background:
    linear-gradient(145deg, rgba(0, 137, 101, 0.24), rgba(1, 27, 21, 0.96)) !important;
  border-color: rgba(45, 214, 165, 0.82) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    0 26px 62px rgba(0, 107, 78, 0.28) !important;
}

html[data-theme="black"] .barber-page .drawing-tool-button,
html[data-theme="black"] .barber-page .modal-close,
html[data-theme="black"] .barber-page .setup-pager-button {
  color: #f4f8f6 !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 38%),
    rgba(4, 20, 16, 0.96) !important;
  border-color: rgba(35, 106, 83, 0.52) !important;
}

html[data-theme="black"] .barber-page .status-pill,
html[data-theme="black"] .barber-page .queue-item b,
html[data-theme="black"] .barber-page .transfer-employee b {
  color: #98ffd5 !important;
  background: rgba(0, 95, 68, 0.24) !important;
}

html[data-theme="black"] .barber-page .main-style-image img,
html[data-theme="black"] .barber-page .thumb-button img {
  background: rgba(255, 255, 255, 0.04) !important;
}

html[data-theme="black"] .barber-page .thumb-button span {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 42%),
    rgba(2, 18, 14, 0.98) !important;
  border-color: rgba(45, 161, 124, 0.3) !important;
}

html[data-theme="black"] .barber-page .thumb-button img {
  object-fit: contain !important;
}

html[data-theme="black"] .barber-page .barber-message {
  color: #98ffd5 !important;
}

html[data-theme="black"] input,
html[data-theme="black"] textarea {
  caret-color: #ffffff;
}

html[data-theme="black"] input::placeholder,
html[data-theme="black"] textarea::placeholder {
  color: #6e837b !important;
}

html[data-theme="black"] .qr-display-code {
  background: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.72) !important;
}

html[data-theme="black"] .qr-display-page .qr-display-panel {
  color: #f8fbf8 !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent 36%),
    radial-gradient(circle at 86% 18%, rgba(0, 118, 82, 0.16), transparent 38%),
    linear-gradient(135deg, rgba(5, 17, 14, 0.94), rgba(0, 25, 19, 0.9)) !important;
  border-color: rgba(115, 184, 157, 0.22) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 34px 100px rgba(0, 0, 0, 0.66),
    0 0 64px rgba(0, 96, 67, 0.16) !important;
}

html[data-theme="black"] .qr-display-page .qr-display-panel h1 {
  color: #ffffff !important;
  text-shadow: 0 2px 18px rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="black"] .qr-display-page .customer-kicker {
  color: #9fb2aa !important;
}

html[data-theme="black"] .qr-display-page .qr-display-instructions {
  color: rgba(231, 239, 235, 0.74) !important;
}

html[data-theme="black"] .qr-display-page .qr-display-logo {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="black"] .qr-display-page .qr-display-scan-label {
  color: #ffffff !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), transparent 44%),
    linear-gradient(135deg, rgba(6, 64, 49, 0.92), rgba(4, 33, 27, 0.96)) !important;
  border-color: rgba(128, 255, 183, 0.44) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 18px 44px rgba(0, 0, 0, 0.38),
    0 0 28px rgba(100, 255, 163, 0.14) !important;
}

html[data-theme="black"] .qr-display-page .qr-display-scan-label svg {
  color: #9dffb9 !important;
}

@media (max-width: 720px) {
  .admin-theme-mode-control {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-theme-mode-buttons {
    width: 100%;
  }

  .admin-theme-mode-button {
    flex: 1;
  }
}

/* Softer glossy black: remove harsh white panels in dark mode. */
html[data-theme="black"] .admin-login,
html[data-theme="black"] .admin-dashboard {
  color: #edf6f2 !important;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.045), transparent 24%),
    linear-gradient(135deg, rgba(2, 10, 8, 0.98), rgba(6, 32, 24, 0.94)) !important;
  border-color: rgba(32, 96, 76, 0.46) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 34px 90px rgba(0, 0, 0, 0.58),
    0 0 58px rgba(0, 77, 55, 0.12) !important;
}

html[data-theme="black"] .admin-header,
html[data-theme="black"] .admin-section-nav,
html[data-theme="black"] .admin-design-logo-control,
html[data-theme="black"] .admin-language-control,
html[data-theme="black"] .admin-theme-mode-control,
html[data-theme="black"] .theme-preview-card,
html[data-theme="black"] .admin-public-banner-preview,
html[data-theme="black"] .admin-preview-box,
html[data-theme="black"] .admin-symbol-preview,
html[data-theme="black"] .admin-style-preview-main,
html[data-theme="black"] .admin-style-slot-preview,
html[data-theme="black"] .photo-preview-box,
html[data-theme="black"] .style-access-preview,
html[data-theme="black"] .barber-page .setup-photo-placeholder,
html[data-theme="black"] .customer-page .employee-card,
html[data-theme="black"] .customer-page .style-card,
html[data-theme="black"] .customer-page .customer-header {
  color: #edf6f2 !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 38%),
    rgba(5, 25, 19, 0.9) !important;
  border-color: rgba(43, 112, 91, 0.42) !important;
}

html[data-theme="black"] .admin-header h1,
html[data-theme="black"] .admin-login h1,
html[data-theme="black"] .admin-dashboard h1,
html[data-theme="black"] .admin-panel h2,
html[data-theme="black"] .admin-panel h3 {
  color: #f5fbf8 !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.36);
}

html[data-theme="black"] .admin-section-tab,
html[data-theme="black"] .admin-logo-button,
html[data-theme="black"] .admin-upload-choice,
html[data-theme="black"] .admin-theme-presets button,
html[data-theme="black"] .admin-language-option {
  color: #dbece6 !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent 36%),
    rgba(4, 21, 16, 0.94) !important;
  border-color: rgba(43, 112, 91, 0.44) !important;
}

html[data-theme="black"] .admin-section-tab.is-active,
html[data-theme="black"] .admin-theme-presets button.is-active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #008965, #004534) !important;
  border-color: rgba(52, 211, 153, 0.7) !important;
}

html[data-theme="black"] .admin-language-option:not(.is-active) {
  color: #111827 !important;
  background: rgba(255, 255, 255, .9) !important;
}

html[data-theme="black"] .admin-language-option.is-disabled {
  opacity: .64 !important;
  filter: blur(.2px) saturate(.78) grayscale(.12) !important;
}

html[data-theme="black"] .admin-language-option.is-active {
  background: #d8ffc9 !important;
  color: #063f33 !important;
  box-shadow: inset 0 0 0 1px #9be6a7, 0 7px 16px rgba(155, 230, 167, .14) !important;
}

html[data-theme="black"] .customer-page .select-card.is-selected {
  color: #ffffff !important;
  background:
    linear-gradient(145deg, rgba(52, 211, 153, 0.28), rgba(4, 21, 16, 0.94)) !important;
  border-color: #7cffc6 !important;
  box-shadow:
    0 0 0 3px rgba(124, 255, 198, 0.45),
    0 18px 42px rgba(0, 0, 0, 0.54),
    0 0 32px rgba(52, 211, 153, 0.38) !important;
  transform: translateY(-2px);
}

html[data-theme="black"] .customer-page .select-card.is-selected::after {
  color: #052e24 !important;
  background: #9cffd4 !important;
  border-color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="black"] .admin-logo-preview {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent 34%),
    rgba(8, 28, 22, 0.82) !important;
  border-color: rgba(49, 119, 95, 0.42) !important;
}

html[data-theme="black"] .admin-preview-box,
html[data-theme="black"] .admin-symbol-preview,
html[data-theme="black"] .photo-preview-box,
html[data-theme="black"] .style-access-preview {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 20px 52px rgba(0, 0, 0, 0.26) !important;
}

html[data-theme="black"] .admin-danger-button,
html[data-theme="black"] .admin-logo-button.danger,
html[data-theme="black"] .barber-action-button.danger,
html[data-theme="black"] .drawing-tool-button.danger {
  background: linear-gradient(135deg, #8b1d1d, #5b0f12) !important;
  border-color: rgba(248, 113, 113, 0.42) !important;
}

/* Dark admin controls: keep staff cards and image controls readable. */
html[data-theme="black"] .admin-employee-item,
html[data-theme="black"] .admin-selected-card {
  color: #edf6f2 !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), transparent 38%),
    rgba(5, 25, 19, 0.94) !important;
  border-color: rgba(43, 112, 91, 0.48) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 18px 48px rgba(0, 0, 0, 0.28) !important;
}

html[data-theme="black"] .admin-employee-item.is-active {
  background:
    linear-gradient(145deg, rgba(0, 150, 111, 0.22), transparent 42%),
    rgba(4, 29, 22, 0.98) !important;
  border-color: rgba(57, 229, 177, 0.78) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 4px rgba(0, 150, 111, 0.18),
    0 22px 54px rgba(0, 0, 0, 0.34) !important;
}

html[data-theme="black"] .admin-employee-item.is-disabled {
  opacity: 0.82;
  background: rgba(5, 20, 16, 0.84) !important;
}

html[data-theme="black"] .admin-employee-item strong,
html[data-theme="black"] .admin-selected-card strong,
html[data-theme="black"] .admin-upload-choice strong,
html[data-theme="black"] .admin-checkbox {
  color: #f5fbf8 !important;
}

html[data-theme="black"] .admin-employee-item span,
html[data-theme="black"] .admin-selected-card span,
html[data-theme="black"] .admin-upload-choice small {
  color: #b5c8c0 !important;
}

html[data-theme="black"] .admin-active-switch {
  background: rgba(80, 102, 96, 0.46) !important;
  border-color: rgba(135, 170, 158, 0.36) !important;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.32);
}

html[data-theme="black"] .admin-active-switch.is-on {
  background: linear-gradient(135deg, #00956d, #004f3b) !important;
  border-color: rgba(57, 229, 177, 0.68) !important;
}

html[data-theme="black"] .admin-active-switch span {
  background: #f5fbf8 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.38);
}

html[data-theme="black"] .admin-upload-icon,
html[data-theme="black"] .admin-mini-avatar,
html[data-theme="black"] .admin-avatar-large,
html[data-theme="black"] .admin-avatar-placeholder {
  color: #eafff6 !important;
  background: linear-gradient(135deg, #0b6f55, #033328) !important;
}

html[data-theme="black"] .admin-preview-box,
html[data-theme="black"] .admin-style-preview-main,
html[data-theme="black"] .admin-style-slot-preview {
  color: #b5c8c0 !important;
}

html[data-theme="black"] .admin-danger-button:not(:disabled),
html[data-theme="black"] .admin-logo-button.danger:not(:disabled) {
  color: #ffffff !important;
  background: linear-gradient(135deg, #a92424, #641116) !important;
}

html[data-theme="black"] .admin-secondary-button:disabled,
html[data-theme="black"] .admin-primary-button:disabled,
html[data-theme="black"] .admin-danger-button:disabled,
html[data-theme="black"] .admin-upload-choice:disabled {
  color: #a7b8b1 !important;
  opacity: 0.58;
}

/* Dark contrast pass for barber and employee tablet views. */
html[data-theme="black"] .barber-page .barber-kicker,
html[data-theme="black"] .barber-page .detail-topbar h2,
html[data-theme="black"] .barber-page #detailTitle,
html[data-theme="black"] .barber-page .queue-header h1,
html[data-theme="black"] .barber-page .queue-item strong,
html[data-theme="black"] .barber-page .setup-panel h1,
html[data-theme="black"] .barber-page #setupTitle,
html[data-theme="black"] .barber-page .setup-employee-card strong {
  color: #f7fffb !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

html[data-theme="black"] .barber-page .queue-meta,
html[data-theme="black"] .barber-page .queue-count,
html[data-theme="black"] .barber-page #queueCount,
html[data-theme="black"] .barber-page #queueUpdated,
html[data-theme="black"] .barber-page .queue-item small,
html[data-theme="black"] .barber-page .queue-item em,
html[data-theme="black"] .barber-page .detail-topbar p,
html[data-theme="black"] .barber-page .setup-panel p,
html[data-theme="black"] .barber-page .setup-employee-card small {
  color: #d1e4dc !important;
  opacity: 1 !important;
}

html[data-theme="black"] .barber-page .queue-item {
  background:
    linear-gradient(145deg, rgba(0, 130, 96, 0.14), transparent 44%),
    rgba(4, 24, 18, 0.95) !important;
  border-color: rgba(45, 161, 124, 0.5) !important;
}

html[data-theme="black"] .barber-page .queue-item.is-selected {
  background:
    linear-gradient(145deg, rgba(0, 160, 118, 0.34), rgba(1, 27, 21, 0.98)) !important;
  border-color: rgba(98, 255, 203, 0.86) !important;
}

html[data-theme="black"] .barber-page .queue-item b,
html[data-theme="black"] .barber-page .status-pill,
html[data-theme="black"] .barber-page .transfer-employee b {
  color: #baffdf !important;
  background: rgba(0, 96, 68, 0.46) !important;
  border: 1px solid rgba(94, 241, 188, 0.34) !important;
}

html[data-theme="black"] .barber-page .setup-employee-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent 42%),
    rgba(4, 24, 18, 0.94) !important;
  border-color: rgba(45, 161, 124, 0.46) !important;
}

html[data-theme="black"] .barber-page .setup-photo-placeholder,
html[data-theme="black"] .barber-page .avatar-circle {
  color: #d7e9e2 !important;
  background:
    radial-gradient(circle at 38% 30%, rgba(20, 106, 82, 0.36), transparent 56%),
    rgba(4, 31, 24, 0.96) !important;
  border-color: rgba(76, 172, 137, 0.42) !important;
}

html[data-theme="black"] .barber-page .employee-status-badge,
html[data-theme="black"] .employee-status-badge {
  color: #063326 !important;
  background: #c8f7e4 !important;
  border: 1px solid rgba(129, 255, 210, 0.55) !important;
  text-shadow: none !important;
}

html[data-theme="black"] .barber-page .employee-card.is-paused .employee-status-badge,
html[data-theme="black"] .barber-page .setup-employee-card.is-paused .employee-status-badge,
html[data-theme="black"] .employee-card.is-paused .employee-status-badge,
html[data-theme="black"] .setup-employee-card.is-paused .employee-status-badge {
  color: #66151b !important;
  background: #ffd8dd !important;
  border-color: rgba(255, 143, 154, 0.6) !important;
}

html[data-theme="black"] .barber-page .dark-loading,
html[data-theme="black"] .barber-page .empty-detail,
html[data-theme="black"] .barber-page #mainImagePlaceholder {
  color: #d1e4dc !important;
  opacity: 1 !important;
}

/* QR display one-screen hourly refresh layout */
.qr-display-page {
  height: 100vh !important;
  min-height: 100vh !important;
  overflow: hidden !important;
}

.qr-display-page .qr-display-shell {
  height: 100vh !important;
  min-height: 100vh !important;
  padding: clamp(14px, 2.2vw, 28px) !important;
  overflow: hidden !important;
}

.qr-display-page .qr-display-panel {
  width: min(1280px, calc(100vw - 48px)) !important;
  height: min(720px, calc(100vh - 40px)) !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
}

.qr-display-page .qr-display-copy {
  gap: clamp(10px, 1.4vh, 18px) !important;
}

.qr-display-page .qr-display-logo {
  width: clamp(76px, 8.5vh, 112px) !important;
  height: clamp(76px, 8.5vh, 112px) !important;
  margin-bottom: clamp(4px, 1vh, 10px) !important;
}

.qr-display-page .customer-kicker {
  margin-top: 0 !important;
  font-size: clamp(12px, 1.35vw, 17px) !important;
}

.qr-display-page .qr-display-panel h1 {
  font-size: clamp(3.4rem, 5.2vw, 5.5rem) !important;
  line-height: .98 !important;
  margin: 0 !important;
}

.qr-display-page .qr-display-instructions {
  max-width: 500px !important;
  font-size: clamp(17px, 1.55vw, 22px) !important;
  line-height: 1.38 !important;
}

.qr-display-page .qr-display-action {
  gap: clamp(10px, 1.5vh, 16px) !important;
}

.qr-display-page .qr-display-language-control {
  width: 204px !important;
}

.qr-display-page .qr-display-language-switch {
  width: 204px !important;
  max-width: 204px !important;
  gap: 10px !important;
  scroll-padding-inline: 72px !important;
}

.qr-display-page .qr-display-language-switch button {
  flex-basis: 60px !important;
  width: 60px !important;
  height: 40px !important;
  min-height: 40px !important;
}

.qr-display-page .qr-display-language-switch .qr-language-flag {
  font-size: 24px !important;
}

.qr-display-page .qr-display-code {
  position: relative !important;
  width: min(470px, 37vw, 54vh) !important;
  padding: clamp(10px, 1.2vw, 18px) !important;
}

.qr-display-code-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 22%;
  aspect-ratio: 1 / 1;
  padding: 2px;
  border: 0;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: none;
  box-sizing: border-box;
  overflow: hidden;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.qr-display-code-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.28);
  transform-origin: center;
}

.qr-display-page .qr-display-scan-label {
  width: min(100%, 430px) !important;
  min-height: clamp(54px, 7vh, 64px) !important;
  font-size: clamp(18px, 1.8vw, 25px) !important;
}

.qr-display-page .qr-display-scan-label svg {
  width: 28px !important;
  height: 28px !important;
}

@media (orientation: landscape) and (min-width: 860px) {
  .qr-display-page .qr-display-panel {
    grid-template-columns: minmax(330px, .78fr) minmax(390px, .9fr) !important;
    gap: clamp(36px, 6vw, 82px) !important;
    padding: clamp(24px, 4vh, 46px) clamp(34px, 4.6vw, 66px) !important;
  }
}

@media (max-height: 740px) and (orientation: landscape) {
  .qr-display-page .qr-display-panel {
    height: calc(100vh - 28px) !important;
  }

  .qr-display-page .qr-display-panel h1 {
    font-size: clamp(3rem, 4.8vw, 4.8rem) !important;
  }

  .qr-display-page .qr-display-instructions {
    font-size: clamp(15px, 1.45vw, 19px) !important;
    line-height: 1.32 !important;
  }

  .qr-display-page .qr-display-code {
    width: min(430px, 36vw, 52vh) !important;
  }
}

/* QR display embedded in the admin QR tab. */
.qr-display-page.is-admin-embed {
  height: auto !important;
  min-height: 0 !important;
  overflow: auto !important;
  background: transparent !important;
}

.qr-display-page.is-admin-embed .qr-display-shell {
  height: auto !important;
  min-height: 0 !important;
  padding: 18px !important;
  overflow: visible !important;
}

.qr-display-page.is-admin-embed .qr-display-panel {
  width: 100% !important;
  max-width: 980px !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: minmax(230px, .7fr) minmax(300px, 1fr) !important;
  gap: clamp(20px, 4vw, 42px) !important;
  padding: clamp(20px, 3vw, 34px) !important;
  overflow: visible !important;
  box-shadow: none !important;
}

.qr-display-page.is-admin-embed .qr-display-logo {
  width: 74px !important;
  height: 74px !important;
  margin-bottom: 8px !important;
}

.qr-display-page.is-admin-embed .customer-kicker {
  font-size: 13px !important;
}

.qr-display-page.is-admin-embed .qr-display-panel h1 {
  font-size: clamp(36px, 5vw, 58px) !important;
  line-height: 1.02 !important;
}

.qr-display-page.is-admin-embed .qr-display-instructions {
  max-width: 360px !important;
  font-size: 15px !important;
  line-height: 1.35 !important;
}

.qr-display-page.is-admin-embed .qr-display-action {
  align-self: center !important;
}

.qr-display-page.is-admin-embed .qr-display-language-control {
  width: 190px !important;
}

.qr-display-page.is-admin-embed .qr-display-language-switch {
  width: 190px !important;
  max-width: 190px !important;
}

.qr-display-page.is-admin-embed .qr-display-code {
  position: relative !important;
  width: min(100%, 360px) !important;
  padding: 14px !important;
}

.qr-display-page.is-admin-embed .qr-display-code img {
  cursor: pointer;
}

.qr-display-page.is-admin-embed .qr-display-scan-label {
  width: min(100%, 330px) !important;
  min-height: 48px !important;
  font-size: 17px !important;
}

@media (max-width: 780px) {
  .qr-display-page.is-admin-embed .qr-display-panel {
    grid-template-columns: 1fr !important;
  }
}

/* Barber detail v38: 4:3 tablet-photo background with glass controls. */
.barber-page .order-detail-panel {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
}

.barber-page .detail-topbar,
.barber-page .empty-detail {
  position: relative !important;
  z-index: 4 !important;
}

.barber-page .order-detail {
  position: static !important;
  z-index: auto !important;
  min-height: calc(100vh - 124px) !important;
  grid-template-rows: minmax(0, 1fr) auto auto auto !important;
  align-content: end !important;
  justify-items: center !important;
  gap: 12px !important;
  padding: 0 clamp(18px, 4vw, 86px) clamp(22px, 4vh, 48px) !important;
}

.barber-page .main-style-image {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  width: 100% !important;
  height: 100% !important;
  justify-self: stretch !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
  background: #c8c8c8 !important;
}

.barber-page .main-style-image::before {
  content: "" !important;
  position: absolute !important;
  inset: -18px !important;
  z-index: 0 !important;
  pointer-events: none !important;
  background-image: var(--main-style-bg) !important;
  background-size: cover !important;
  background-position: center center !important;
  filter: blur(16px) saturate(0.95) brightness(1.02) !important;
  transform: scale(1.08) !important;
}

.barber-page .main-style-image::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  pointer-events: none !important;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.04)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 34%, rgba(0, 0, 0, 0.02)) !important;
}

.barber-page .main-style-image > .main-style-layer {
  z-index: 1 !important;
  width: 100% !important;
  height: 100% !important;
  left: 0 !important;
  top: 0 !important;
  right: auto !important;
  bottom: auto !important;
  object-fit: cover !important;
  object-position: center center !important;
  image-rendering: auto !important;
  transform: none !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

.barber-page #drawingCanvas {
  z-index: 3 !important;
  border-radius: 0 !important;
}

.barber-page #mainImagePlaceholder {
  z-index: 3 !important;
}

.barber-page .detail-topbar {
  margin-bottom: 0 !important;
}

.barber-page .status-pill,
.barber-page .barber-dashboard-logo,
.barber-page .drawing-tool-button,
.barber-page .thumb-button,
.barber-page .barber-action-button {
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.20)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 18px 44px rgba(19, 31, 45, 0.16) !important;
  backdrop-filter: blur(14px) saturate(1.18) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.18) !important;
}

.barber-page .status-pill {
  color: #087b61 !important;
}

.barber-page .barber-dashboard-logo {
  /* Fit the frame to the logo instead of shrinking it inside a wide padded card. */
  width: auto !important;
  max-width: clamp(110px, 12vw, 165px);
  padding: 0 !important;
}

.barber-page .drawing-toolbar {
  top: clamp(112px, 18vh, 188px) !important;
  right: 18px !important;
  z-index: 8 !important;
  gap: 10px !important;
}

.barber-page .drawing-tool-button {
  color: #0f172a !important;
}

.barber-page .drawing-tool-button.danger {
  color: #ffffff !important;
  background:
    linear-gradient(145deg, rgba(255, 95, 95, 0.84), rgba(215, 0, 0, 0.88)) !important;
  border-color: rgba(255, 255, 255, 0.68) !important;
}

.barber-page .stroke-size-panel,
.barber-page .shape-tool-menu {
  right: 48px !important;
  z-index: 9 !important;
  background: rgba(255, 255, 255, 0.56) !important;
  border-color: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(14px) saturate(1.18) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.18) !important;
}

.barber-page .thumb-strip,
.barber-page .detail-actions,
.barber-page .barber-message {
  position: relative !important;
  z-index: 5 !important;
}

.barber-page .thumb-strip {
  position: absolute !important;
  left: clamp(22px, 3.5vw, 58px) !important;
  top: clamp(100px, 18vh, 170px) !important;
  z-index: 6 !important;
  width: clamp(108px, 9vw, 136px) !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
  transform: none !important;
}

.barber-page .thumb-button {
  padding: 8px !important;
  border-radius: 12px !important;
  color: #111827 !important;
}

.barber-page .thumb-button span {
  aspect-ratio: 4 / 3 !important;
  background: rgba(255, 255, 255, 0.18) !important;
  border: 1px solid rgba(255, 255, 255, 0.36) !important;
  box-shadow: none !important;
}

.barber-page .thumb-button img {
  opacity: 1 !important;
  filter: none !important;
}

.barber-page .detail-actions {
  position: absolute !important;
  left: 50% !important;
  bottom: clamp(22px, 5vh, 54px) !important;
  z-index: 6 !important;
  width: min(100%, 880px) !important;
  grid-template-columns: repeat(3, minmax(0, 204px)) !important;
  justify-content: center !important;
  gap: 16px !important;
  transform: translateX(-50%) !important;
}

.barber-page .barber-action-button {
  min-height: 54px !important;
  height: 54px !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  font-family: inherit !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
}

.barber-page .barber-action-button.transfer {
  background:
    linear-gradient(145deg, rgba(61, 133, 246, 0.88), rgba(21, 96, 226, 0.86)) !important;
}

.barber-page .barber-action-button.done {
  background:
    linear-gradient(145deg, rgba(21, 166, 132, 0.88), rgba(8, 130, 104, 0.86)) !important;
}

.barber-page .barber-action-button.no-show {
  border-radius: 999px !important;
  background:
    linear-gradient(145deg, rgba(248, 80, 80, 0.92), rgba(185, 28, 28, 0.9)) !important;
}

html[data-theme="black"] .barber-page .main-style-image {
  border: 0 !important;
  background: #d9d9d9 !important;
  box-shadow: none !important;
}

html[data-theme="black"] .barber-page .status-pill,
html[data-theme="black"] .barber-page .barber-dashboard-logo,
html[data-theme="black"] .barber-page .drawing-tool-button,
html[data-theme="black"] .barber-page .thumb-button,
html[data-theme="black"] .barber-page .barber-action-button {
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.20)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 18px 44px rgba(19, 31, 45, 0.16) !important;
  backdrop-filter: blur(14px) saturate(1.18) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.18) !important;
}

html[data-theme="black"] .barber-page .status-pill {
  color: #087b61 !important;
}

html[data-theme="black"] .barber-page .drawing-tool-button {
  color: #0f172a !important;
}

html[data-theme="black"] .barber-page .drawing-tool-button.danger {
  color: #ffffff !important;
  background:
    linear-gradient(145deg, rgba(255, 95, 95, 0.84), rgba(215, 0, 0, 0.88)) !important;
}

html[data-theme="black"] .barber-page .barber-action-button.transfer {
  background:
    linear-gradient(145deg, rgba(61, 133, 246, 0.88), rgba(21, 96, 226, 0.86)) !important;
}

html[data-theme="black"] .barber-page .barber-action-button.done {
  background:
    linear-gradient(145deg, rgba(21, 166, 132, 0.88), rgba(8, 130, 104, 0.86)) !important;
}

@media (max-width: 980px) {
  .barber-page .order-detail {
    min-height: auto !important;
    padding: 0 10px 16px !important;
  }

  .barber-page .main-style-image {
    position: relative !important;
    height: clamp(380px, 62vh, 680px) !important;
    border-radius: 14px !important;
  }

  .barber-page .drawing-toolbar {
    top: 10px !important;
    right: 10px !important;
  }
}

/* Barber detail v39: full viewport, no scaled bottom strip. */
@media (min-width: 981px) {
  html:has(.barber-page),
  body:has(.barber-page) {
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    overflow: hidden !important;
    background: #ffffff !important;
  }

  .barber-page {
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    transform: none !important;
    transform-origin: top left !important;
  }

  .barber-page .barber-dashboard,
  .barber-page .queue-panel,
  .barber-page .order-detail-panel {
    height: 100vh !important;
    min-height: 100vh !important;
  }

  .barber-page .empty-detail {
    height: calc(100vh - 136px) !important;
    min-height: 0 !important;
  }

  .barber-page .order-detail-panel.is-idle-gallery-active .idle-gallery {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    border-radius: 22px !important;
  }
}

/* Sarko's Barbershop public homepage */
.sarkos-home-page {
  min-height: 100vh;
  color: #f8fafc;
  background: #090b0f;
}

.sarkos-home-page .home-shell {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(9, 11, 15, 0.95) 0%, rgba(9, 11, 15, 0.82) 42%, rgba(9, 11, 15, 0.28) 100%),
    url("../uploads/brand/sarkos-main.png") center / cover fixed;
}

.sarkos-home-page .home-hero {
  width: min(1180px, calc(100% - 40px));
  min-height: min(820px, 100vh);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.82fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(42px, 8vh, 92px) 0 36px;
}

.sarkos-home-page .home-copy {
  min-width: 0;
}

.sarkos-home-page .home-brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.sarkos-home-page .home-logo {
  width: 76px;
  height: 76px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 12px;
  padding: 8px;
}

.sarkos-home-page .brand-letter-logo.home-logo {
  display: grid;
  place-items: center;
  color: #111827;
  font-size: 34px;
  font-weight: 900;
}

.sarkos-home-page .eyebrow {
  margin: 0;
  color: #f6be61;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sarkos-home-page .home-rating {
  margin: 7px 0 0;
  color: rgba(248, 250, 252, 0.76);
  font-size: 15px;
}

.sarkos-home-page h1 {
  margin: 0;
  max-width: 760px;
  color: #ffffff;
  font-size: clamp(48px, 7vw, 94px);
  line-height: 0.95;
  letter-spacing: 0;
}

.sarkos-home-page .lead {
  margin: 24px 0 28px;
  max-width: 680px;
  color: rgba(248, 250, 252, 0.86);
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.45;
}

.sarkos-home-page .home-contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.sarkos-home-page .home-contact-strip a,
.sarkos-home-page .home-contact-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 13px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.sarkos-home-page .home-notice {
  margin: 0 0 30px;
  max-width: 620px;
  color: rgba(248, 250, 252, 0.76);
  font-size: 17px;
  line-height: 1.55;
}

.sarkos-home-page .home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.sarkos-home-page .main-button {
  min-height: 54px;
  padding: 14px 20px;
  background: #f6be61;
  color: #111827;
  border-radius: 8px;
  font-size: 16px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.sarkos-home-page .main-button:hover,
.sarkos-home-page .main-button:focus-visible {
  background: #ffd987;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.sarkos-home-page .main-button.secondary {
  width: auto;
  margin: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.sarkos-home-page .main-button.secondary:hover,
.sarkos-home-page .main-button.secondary:focus-visible {
  color: #111827;
  background: #ffffff;
}

.sarkos-home-page .home-admin-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 14px;
  color: rgba(248, 250, 252, 0.82);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.sarkos-home-page .home-admin-link:hover,
.sarkos-home-page .home-admin-link:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

.sarkos-home-page .home-preview {
  position: relative;
  min-height: 620px;
  border-radius: 8px;
}

.sarkos-home-page .home-main-photo {
  width: 100%;
  height: min(72vh, 680px);
  min-height: 520px;
  display: block;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
}

.sarkos-home-page .home-photo-card {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: min(360px, calc(100% - 36px));
  display: grid;
  gap: 5px;
  padding: 16px;
  color: #111827;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.sarkos-home-page .home-photo-card span,
.sarkos-home-page .home-photo-card small {
  color: #526173;
  font-size: 14px;
  font-weight: 800;
}

.sarkos-home-page .home-photo-card strong {
  font-size: 20px;
}

.sarkos-home-page .home-info,
.sarkos-home-page .home-system {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.sarkos-home-page .home-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0 0 54px;
}

.sarkos-home-page .home-info article,
.sarkos-home-page .home-system {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

.sarkos-home-page .home-info article {
  padding: 22px;
}

.sarkos-home-page .home-info span {
  display: block;
  margin-bottom: 10px;
  color: #0f8f78;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.sarkos-home-page .home-info strong,
.sarkos-home-page .home-system h2 {
  color: #111827;
}

.sarkos-home-page .home-info strong {
  display: block;
  font-size: 22px;
  line-height: 1.18;
}

.sarkos-home-page .home-info p {
  margin: 9px 0 0;
  color: #526173;
  font-size: 16px;
  line-height: 1.45;
}

.sarkos-home-page .home-system {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 28px;
  margin-bottom: 54px;
}

.sarkos-home-page .home-system h2 {
  margin: 8px 0 0;
  max-width: 680px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.04;
}

.sarkos-home-page .home-system-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

@media (max-width: 980px) {
  .sarkos-home-page .home-shell {
    background:
      linear-gradient(180deg, rgba(9, 11, 15, 0.92) 0%, rgba(9, 11, 15, 0.82) 58%, rgba(9, 11, 15, 0.94) 100%),
      url("../uploads/brand/sarkos-main.png") center top / cover;
  }

  .sarkos-home-page .home-hero,
  .sarkos-home-page .home-system {
    grid-template-columns: 1fr;
  }

  .sarkos-home-page .home-preview {
    min-height: 0;
  }

  .sarkos-home-page .home-main-photo {
    height: 56vh;
    min-height: 360px;
  }

  .sarkos-home-page .home-info {
    grid-template-columns: 1fr;
  }

  .sarkos-home-page .home-system-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .sarkos-home-page .home-hero,
  .sarkos-home-page .home-info,
  .sarkos-home-page .home-system {
    width: min(100% - 28px, 1180px);
  }

  .sarkos-home-page .home-hero {
    padding-top: 28px;
  }

  .sarkos-home-page .home-brand-row {
    align-items: flex-start;
  }

  .sarkos-home-page .home-logo {
    width: 62px;
    height: 62px;
  }

  .sarkos-home-page h1 {
    font-size: clamp(42px, 14vw, 62px);
  }

  .sarkos-home-page .home-actions,
  .sarkos-home-page .home-system-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .sarkos-home-page .main-button,
  .sarkos-home-page .main-button.secondary {
    width: 100%;
  }

  .sarkos-home-page .home-photo-card {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    margin-top: 0;
    gap: 2px;
    padding: 12px;
    background: rgba(15, 143, 120, 0.88);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .sarkos-home-page .home-photo-card strong {
    color: #ffffff;
    font-size: 17px;
    line-height: 1.08;
  }

  .sarkos-home-page .home-photo-card span,
  .sarkos-home-page .home-photo-card small {
    color: rgba(255, 255, 255, 0.9);
    font-size: 10px;
    line-height: 1.18;
  }

  .sarkos-home-page .home-main-photo {
    height: 128px;
    min-height: 128px;
    object-position: center 30%;
  }

  .sarkos-home-page .home-preview {
    min-height: 128px;
  }
}

/* Final customer phone overrides: keep translator and full form compact on mobile. */
@media (max-width: 720px) {
  .customer-page {
    min-height: 100svh !important;
    padding: 6px !important;
    overflow-x: hidden !important;
  }

  .customer-page .customer-panel {
    width: 100% !important;
    min-height: calc(100svh - 12px) !important;
    padding: 8px 10px 10px !important;
    border-radius: 18px !important;
  }

  .customer-page .customer-header {
    grid-template-columns: 58px minmax(0, 1fr) auto !important;
    gap: 8px !important;
    margin: 0 0 6px !important;
    padding: 0 0 6px !important;
  }

  .customer-page .brand-icon.customer-brand-logo {
    width: 52px !important;
    height: 52px !important;
    flex-basis: 52px !important;
    border-radius: 12px !important;
  }

  .customer-page .customer-header h1 {
    display: block !important;
    margin: 2px 0 0 !important;
    font-size: clamp(18px, 6vw, 24px) !important;
    line-height: .96 !important;
    max-width: 160px !important;
  }

  .customer-page .customer-header p:not(.customer-kicker) {
    display: none !important;
  }

  .customer-page .customer-language-switch {
    display: flex !important;
    max-width: 124px !important;
    gap: 5px !important;
    padding: 0 !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }

  .customer-page .customer-language-switch::-webkit-scrollbar {
    display: none !important;
  }

  .customer-page .customer-language-switch button {
    flex: 0 0 auto !important;
    min-width: 36px !important;
    width: 36px !important;
    min-height: 36px !important;
    height: 36px !important;
    border-radius: 12px !important;
    font-size: 18px !important;
  }

  .customer-page .customer-language-switch .customer-language-flag {
    font-size: 19px !important;
  }

  .customer-page .customer-form {
    gap: 6px !important;
  }

  .customer-page .customer-step {
    gap: 6px !important;
    padding: 9px 0 !important;
    border-radius: 14px !important;
  }

  .customer-page .step-title {
    gap: 7px !important;
    margin-bottom: 0 !important;
  }

  .customer-page .step-title span {
    display: grid !important;
    width: 26px !important;
    min-width: 26px !important;
    height: 26px !important;
    font-size: 13px !important;
  }

  .customer-page .step-title h2 {
    font-size: 17px !important;
    line-height: 1 !important;
  }

  .customer-page .employee-quick-actions {
    margin-left: auto !important;
  }

  .customer-page .employee-quick-button {
    min-height: 44px !important;
    padding: 0 17px !important;
    border-radius: 16px !important;
    font-size: 15px !important;
  }

  .customer-page .selection-grid,
  .customer-page .selection-grid.is-loop-ready {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .customer-page .customer-loop-track {
    display: contents !important;
  }

  .customer-page .customer-loop-btn {
    display: none !important;
  }

  .customer-page .select-card,
  .customer-page .customer-loop-track .select-card {
    width: 100% !important;
    min-width: 0 !important;
    flex-basis: auto !important;
    border-radius: 12px !important;
  }

  .customer-page .employee-card {
    min-height: 110px !important;
    padding: 8px 6px 7px !important;
    gap: 3px !important;
  }

  .customer-page .employee-card .avatar-circle {
    width: 56px !important;
    height: 56px !important;
  }

  .customer-page .employee-card strong {
    margin-top: 3px !important;
    font-size: 12px !important;
  }

  .customer-page .employee-card small {
    display: none !important;
  }

  .customer-page .employee-status-badge {
    min-height: 18px !important;
    padding: 0 8px !important;
    font-size: 10px !important;
  }

  .customer-page .hairstyle-card,
  .customer-page .customer-loop-track .hairstyle-card {
    min-height: 126px !important;
    padding: 7px !important;
    gap: 6px !important;
  }

  .customer-page .hairstyle-image,
  .customer-page .custom-style-icon {
    height: 66px !important;
    min-height: 66px !important;
    border-radius: 8px !important;
  }

  .customer-page .hairstyle-card strong {
    font-size: 11px !important;
    line-height: 1.08 !important;
  }

  .customer-page [aria-labelledby="step-customer"] .step-title,
  .customer-page .send-step .step-title,
  .customer-page .privacy-note {
    display: none !important;
  }

  .customer-page .name-row {
    grid-template-columns: minmax(0, 1fr) 58px !important;
    gap: 7px !important;
  }

  .customer-page .name-row input,
  .customer-page .camera-button {
    min-height: 42px !important;
    height: 42px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
  }

  .customer-page .camera-button {
    width: 58px !important;
    font-size: 0 !important;
  }

  .customer-page .camera-button::before {
    content: "Foto";
    font-size: 12px;
    font-weight: 900;
  }

  .customer-page .send-step {
    padding-top: 5px !important;
  }

  .customer-page .send-order-button {
    min-height: 46px !important;
    border-radius: 12px !important;
    font-size: 17px !important;
  }
}

/* MyBarber Solution public homepage mockup */
.solution-home-page {
  min-height: 100vh;
  color: #172033;
  background: #f4f7fb;
}

/* MyBarber Solution promo homepage v2 */
.solution-promo-page .solution-hero {
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 0.95fr);
  background:
    linear-gradient(120deg, rgba(7, 8, 10, 0.98), rgba(14, 18, 24, 0.9) 42%, rgba(20, 108, 95, 0.68)),
    url("../uploads/solution/salon-hero.png") center / cover;
}

.solution-promo-page .solution-kicker {
  color: #f6be61;
}

.solution-demo-stage {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: center;
}

.solution-phone-preview {
  width: min(100%, 390px);
  margin: 0 auto;
  padding: 10px;
  background: #06080c;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 34px;
  box-shadow: 0 44px 110px rgba(0, 0, 0, 0.48);
}

.solution-phone-preview img {
  width: 100%;
  height: min(72vh, 620px);
  display: block;
  object-fit: cover;
  object-position: top center;
  border-radius: 24px;
}

.solution-tablet-mockup {
  position: relative;
  width: min(100%, 680px);
  margin-left: auto;
}

.solution-tablet-frame {
  padding: 18px;
  background:
    linear-gradient(145deg, #272b31, #050607 54%, #1f242a);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 34px;
  box-shadow:
    0 44px 110px rgba(0, 0, 0, 0.5),
    inset 0 0 0 2px rgba(255, 255, 255, 0.05);
  transform: rotate(-2deg);
}

.solution-tablet-frame::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: #101820;
  border: 1px solid #3b4654;
  border-radius: 50%;
  transform: translateX(-50%);
}

.solution-tablet-screen {
  overflow: hidden;
  min-height: 470px;
  padding: 18px;
  background: #eef3f7;
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.solution-app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
  color: #ffffff;
  background: #0b332d;
  border-radius: 14px;
}

.solution-app-top span {
  color: #f6be61;
  font-weight: 900;
}

.solution-app-top strong {
  font-size: 18px;
}

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

.solution-barber-card {
  min-height: 152px;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 14px;
  background: #ffffff;
  border: 2px solid #dce2ec;
  border-radius: 16px;
  text-align: center;
}

.solution-barber-card.is-active {
  border-color: #21b38f;
  box-shadow: 0 12px 26px rgba(33, 179, 143, 0.18);
}

.solution-barber-card img {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 50%;
}

.solution-barber-card strong {
  color: #111827;
  font-size: 17px;
}

.solution-barber-card small {
  color: #0f8f78;
  font-weight: 900;
}

.solution-style-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.solution-style-row img {
  width: 100%;
  height: 118px;
  object-fit: cover;
  object-position: center top;
  background: #dde4ec;
  border-radius: 14px;
}

.solution-name-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 14px;
  align-items: center;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #dce2ec;
  border-radius: 14px;
}

.solution-name-card span,
.solution-name-card em {
  color: #647086;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.solution-name-card strong {
  color: #111827;
  font-size: 28px;
}

.solution-name-card em {
  grid-column: 1 / -1;
}

.solution-qr-demo {
  position: absolute;
  left: 0;
  bottom: 34px;
  width: 230px;
  display: grid;
  gap: 8px;
  place-items: center;
  padding: 18px;
  color: #111827;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.solution-qr-demo img {
  width: 132px;
  height: 132px;
}

.solution-qr-demo strong {
  font-size: 17px;
  line-height: 1.2;
}

.solution-qr-demo small {
  color: #647086;
  font-weight: 800;
}

.solution-shop-photo {
  width: min(1180px, calc(100% - 36px));
  margin: -18px auto 0;
}

.solution-shop-photo img {
  width: 100%;
  height: clamp(260px, 44vw, 520px);
  display: block;
  object-fit: cover;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(16, 24, 40, 0.18);
}

.solution-gallery,
.solution-style-showcase {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.solution-gallery {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  padding: 54px 0 14px;
}

.solution-gallery-card {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  background: #111827;
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(16, 24, 40, 0.18);
}

.solution-gallery-wide {
  grid-row: span 2;
}

.solution-gallery-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.solution-gallery-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(180deg, rgba(10, 12, 16, 0), rgba(10, 12, 16, 0.82));
}

.solution-gallery-card div {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 1;
  display: grid;
  gap: 7px;
  color: #ffffff;
}

.solution-gallery-card span {
  color: #f6be61;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.solution-gallery-card strong {
  max-width: 620px;
  font-size: clamp(21px, 2vw, 32px);
  line-height: 1.08;
}

.solution-style-showcase {
  padding: 8px 0 70px;
}

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

.solution-style-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  object-position: center top;
  background: #dce2ec;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(16, 24, 40, 0.14);
}

@media (max-width: 980px) {
  .solution-promo-page .solution-hero {
    grid-template-columns: 1fr;
  }

  .solution-demo-stage {
    min-height: 560px;
  }

  .solution-gallery,
  .solution-style-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .solution-gallery-wide {
    grid-row: auto;
    grid-column: 1 / -1;
  }

  .solution-tablet-mockup {
    margin: 0 auto;
  }

  .solution-tablet-screen {
    min-height: 430px;
  }

  .solution-qr-demo {
    left: 24px;
  }
}

@media (max-width: 640px) {
  .solution-demo-stage {
    min-height: 0;
  }

  .solution-phone-preview {
    width: min(100%, 330px);
    padding: 8px;
    border-radius: 28px;
  }

  .solution-phone-preview img {
    height: 520px;
    border-radius: 21px;
  }

  .solution-tablet-frame {
    padding: 10px;
    border-radius: 24px;
    transform: none;
  }

  .solution-tablet-screen {
    min-height: 0;
    padding: 12px;
    border-radius: 16px;
  }

  .solution-app-grid {
    grid-template-columns: 1fr 1fr;
  }

  .solution-barber-card {
    min-height: 128px;
    padding: 10px;
  }

  .solution-barber-card img {
    width: 58px;
    height: 58px;
  }

  .solution-style-row img {
    height: 86px;
  }

  .solution-qr-demo {
    position: static;
    width: 100%;
    margin-top: 14px;
  }

  .solution-shop-photo {
    width: min(100% - 28px, 1180px);
    margin-top: 28px;
  }

  .solution-gallery,
  .solution-style-showcase {
    width: min(100% - 28px, 1180px);
  }

  .solution-gallery,
  .solution-style-gallery {
    grid-template-columns: 1fr;
  }

  .solution-gallery-card {
    min-height: 330px;
  }
}

/* Internet tablet PNG mockup placement */
.solution-promo-page .solution-tablet-mockup {
  width: min(100%, 520px);
}

.solution-promo-page .solution-tablet-frame {
  position: relative;
  aspect-ratio: 820 / 1024;
  padding: 0;
  background: url("../uploads/solution/tablet-mockup.png") center / contain no-repeat;
  border: 0;
  border-radius: 0;
  box-shadow: 0 42px 100px rgba(0, 0, 0, 0.42);
}

.solution-promo-page .solution-tablet-frame::before {
  display: none;
}

.solution-promo-page .solution-tablet-screen {
  position: absolute;
  left: 8.4%;
  top: 7.2%;
  width: 75.4%;
  height: 79.5%;
  min-height: 0;
  padding: 12px;
  border-radius: 12px;
}

.solution-promo-page .solution-app-top {
  margin-bottom: 10px;
  padding: 10px 12px;
}

.solution-promo-page .solution-app-top strong {
  font-size: 15px;
}

.solution-promo-page .solution-app-grid {
  gap: 8px;
  margin-bottom: 8px;
}

.solution-promo-page .solution-barber-card {
  min-height: 116px;
  padding: 9px;
}

.solution-promo-page .solution-barber-card img {
  width: 54px;
  height: 54px;
}

.solution-promo-page .solution-style-row {
  gap: 7px;
  margin-bottom: 8px;
}

.solution-promo-page .solution-style-row img {
  height: 78px;
}

.solution-promo-page .solution-name-card {
  padding: 10px 12px;
}

.solution-promo-page .solution-name-card strong {
  font-size: 24px;
}

@media (max-width: 640px) {
  .solution-promo-page .solution-tablet-mockup {
    width: min(100%, 390px);
  }

  .solution-promo-page .solution-tablet-frame {
    transform: none;
  }

  .solution-promo-page .solution-tablet-screen {
    padding: 9px;
  }

  .solution-promo-page .solution-style-row img {
    height: 58px;
  }
}

.solution-home-page a {
  color: inherit;
}

.solution-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(1180px, calc(100% - 36px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  color: #ffffff;
}

.solution-wordmark,
.solution-nav {
  display: flex;
  align-items: center;
}

.solution-wordmark {
  gap: 12px;
  font-size: 18px;
  text-decoration: none;
}

.solution-wordmark span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #111827;
  background: #f6be61;
  border-radius: 8px;
  font-weight: 900;
}

.solution-nav {
  gap: 8px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.solution-nav a {
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.82);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.solution-nav a:hover,
.solution-nav a:focus-visible {
  color: #111827;
  background: #ffffff;
  outline: none;
}

.solution-hero {
  margin-top: -76px;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
  gap: clamp(28px, 4vw, 70px);
  align-items: center;
  padding: 132px max(24px, calc((100vw - 1180px) / 2)) 64px;
  color: #ffffff;
  background:
    linear-gradient(120deg, rgba(9, 11, 15, 0.96), rgba(13, 21, 30, 0.94) 45%, rgba(20, 108, 95, 0.82)),
    url("../uploads/brand/sarkos-main.png") center / cover;
}

.solution-hero-copy {
  min-width: 0;
}

.solution-kicker {
  margin: 0 0 14px;
  color: #f6be61;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.solution-hero h1,
.solution-section-head h2,
.solution-register h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.02;
}

.solution-hero h1 {
  max-width: 760px;
  font-size: clamp(46px, 6.6vw, 88px);
}

.solution-lead {
  margin: 24px 0 28px;
  max-width: 700px;
  color: rgba(248, 250, 252, 0.84);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.5;
}

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

.solution-button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  color: #111827;
  background: #f6be61;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
}

.solution-button:hover,
.solution-button:focus-visible {
  background: #ffd987;
  outline: none;
}

.solution-button-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.solution-button-ghost:hover,
.solution-button-ghost:focus-visible {
  color: #111827;
  background: #ffffff;
}

.solution-proof {
  margin-top: 26px;
}

.solution-proof span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}

.solution-device-stage {
  position: relative;
  min-height: 610px;
}

.solution-tablet,
.solution-band article,
.solution-timeline div,
.solution-form {
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(16, 24, 40, 0.22);
}

.solution-tablet {
  overflow: hidden;
  background: #101722;
  border: 14px solid #05070b;
}

.solution-tablet-bar {
  min-height: 54px;
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 0 16px;
  color: #e5e7eb;
  background: #111827;
}

.solution-tablet-bar span {
  width: 12px;
  height: 12px;
  background: #22c55e;
  border-radius: 50%;
}

.solution-tablet-bar small {
  color: #8ce7b0;
  font-weight: 900;
  text-transform: uppercase;
}

.solution-tablet img {
  width: 100%;
  height: 480px;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.solution-band,
.solution-process,
.solution-register {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

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

.solution-band article,
.solution-timeline div,
.solution-form {
  background: #ffffff;
  border: 1px solid #dce2ec;
}

.solution-band article {
  padding: 24px;
}

.solution-band span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  color: #ffffff;
  background: #146c5f;
  border-radius: 8px;
  font-weight: 900;
}

.solution-band h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.solution-band p,
.solution-timeline p,
.solution-register p,
.solution-form-note,
.solution-checklist {
  color: #647086;
  line-height: 1.55;
}

.solution-process {
  padding: 18px 0 70px;
}

.solution-section-head {
  max-width: 780px;
  margin-bottom: 28px;
}

.solution-section-head h2,
.solution-register h2 {
  color: #111827;
  font-size: clamp(34px, 4vw, 56px);
}

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

.solution-timeline div {
  min-height: 190px;
  padding: 22px;
}

.solution-timeline strong {
  display: block;
  margin-bottom: 10px;
  color: #111827;
  font-size: 20px;
  line-height: 1.2;
}

.solution-register {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 0.72fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  padding: 62px 0 84px;
  border-top: 1px solid #dce2ec;
}

.solution-register-copy {
  min-width: 0;
}

.solution-checklist {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding-left: 18px;
}

.solution-checklist li::marker {
  color: #146c5f;
}

.solution-form {
  display: grid;
  gap: 15px;
  padding: 24px;
}

.solution-form label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 14px;
  font-weight: 900;
}

.solution-form input,
.solution-form select {
  width: 100%;
  min-height: 50px;
  padding: 0 13px;
  color: #172033;
  background: #f8fafc;
  border: 1px solid #cdd5e1;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
}

.solution-form input:focus,
.solution-form select:focus {
  border-color: #146c5f;
  outline: 3px solid rgba(20, 108, 95, 0.18);
}

.solution-form .solution-button {
  width: 100%;
  margin-top: 6px;
}

.solution-form-note {
  margin: 0;
  font-size: 13px;
}

@media (max-width: 980px) {
  .solution-topbar {
    color: #ffffff;
  }

  .solution-nav {
    background: rgba(255, 255, 255, 0.86);
    border-color: #dce2ec;
  }

  .solution-nav a {
    color: #344054;
  }

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

  .solution-hero {
    min-height: auto;
    padding-top: 112px;
  }

  .solution-device-stage {
    min-height: 520px;
  }

  .solution-tablet img {
    height: 390px;
  }

  .solution-band,
  .solution-timeline {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .solution-topbar {
    position: relative;
    min-height: auto;
    padding: 16px 0;
    align-items: flex-start;
    color: #ffffff;
  }

  .solution-wordmark strong {
    max-width: 130px;
    line-height: 1.1;
  }

  .solution-nav {
    display: none;
  }

  .solution-hero {
    margin-top: -82px;
    padding: 112px 18px 44px;
  }

  .solution-hero h1 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .solution-actions,
  .solution-proof {
    display: grid;
    grid-template-columns: 1fr;
  }

  .solution-button {
    width: 100%;
  }

  .solution-device-stage {
    min-height: 0;
  }

  .solution-tablet {
    border-width: 9px;
  }

  .solution-tablet-bar {
    grid-template-columns: 12px 1fr;
  }

  .solution-tablet-bar small {
    display: none;
  }

  .solution-tablet img {
    height: 300px;
  }

  .solution-band,
  .solution-process,
  .solution-register {
    width: min(100% - 28px, 1180px);
  }

  .solution-band,
  .solution-timeline {
    grid-template-columns: 1fr;
  }

  .solution-band {
    padding: 36px 0;
  }

  .solution-register {
    padding: 44px 0 56px;
  }
}

/* Final mobile carousel correction: keep many employees/styles in one compact row. */
@media (max-width: 720px) {
  .customer-page .selection-grid.is-loop-ready {
    display: block !important;
    margin: 0 -10px !important;
    padding: 0 10px 4px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
  }

  .customer-page .customer-loop-track {
    display: flex !important;
    align-items: stretch !important;
    gap: 7px !important;
  }

  .customer-page .customer-loop-track .select-card {
    flex: 0 0 calc((100vw - 34px) / 2) !important;
    scroll-snap-align: start !important;
  }

  .customer-page .customer-loop-track .hairstyle-card {
    flex-basis: calc((100vw - 34px) / 2) !important;
  }
}

@media (max-width: 390px), (max-height: 760px) {
  .customer-page .customer-panel {
    padding: 6px 8px 8px !important;
  }

  .customer-page .customer-header {
    grid-template-columns: 50px minmax(0, 1fr) auto !important;
    gap: 7px !important;
  }

  .customer-page .brand-icon.customer-brand-logo {
    width: 46px !important;
    height: 46px !important;
  }

  .customer-page .customer-header h1 {
    font-size: 18px !important;
  }

  .customer-page .customer-language-switch {
    max-width: 112px !important;
    gap: 4px !important;
  }

  .customer-page .customer-language-switch button {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    border-radius: 10px !important;
  }

  .customer-page .customer-step {
    padding: 7px 0 !important;
  }

  .customer-page .step-title span {
    width: 22px !important;
    min-width: 22px !important;
    height: 22px !important;
    font-size: 12px !important;
  }

  .customer-page .step-title h2 {
    font-size: 15px !important;
  }

  .customer-page .employee-quick-button {
    min-height: 38px !important;
    padding: 0 14px !important;
    font-size: 14px !important;
  }

  .customer-page .employee-card {
    min-height: 96px !important;
  }

  .customer-page .employee-card .avatar-circle {
    width: 48px !important;
    height: 48px !important;
  }

  .customer-page .hairstyle-card,
  .customer-page .customer-loop-track .hairstyle-card {
    min-height: 112px !important;
  }

  .customer-page .hairstyle-image,
  .customer-page .custom-style-icon {
    height: 56px !important;
    min-height: 56px !important;
  }

  .customer-page .name-row input,
  .customer-page .camera-button {
    min-height: 38px !important;
    height: 38px !important;
  }

  .customer-page .send-order-button {
    min-height: 42px !important;
    font-size: 16px !important;
  }
}

/* Absolute last customer mobile fixes v2: remove dead space, reveal images, keep flags swipeable. */
@media (max-width: 720px) {
  .customer-page {
    align-items: flex-start !important;
    min-height: 0 !important;
  }

  .customer-page .customer-panel {
    min-height: 0 !important;
    padding-bottom: 8px !important;
  }

  .customer-page .customer-language-switch {
    justify-content: flex-start !important;
    max-width: 132px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x proximity !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .customer-page .customer-language-switch button {
    scroll-snap-align: center !important;
  }

  .customer-page .customer-language-switch button.is-disabled {
    opacity: .5 !important;
    filter: grayscale(.15) !important;
  }

  .customer-page .hairstyle-card,
  .customer-page .customer-loop-track .hairstyle-card {
    min-height: 152px !important;
  }

  .customer-page .hairstyle-image,
  .customer-page .custom-style-icon {
    height: 94px !important;
    min-height: 94px !important;
    background: rgba(255, 255, 255, .92) !important;
  }

  .customer-page .hairstyle-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
  }

  .customer-page .custom-style-icon svg {
    max-height: 92% !important;
  }

  .customer-page .send-step {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
}

@media (max-width: 390px), (max-height: 760px) {
  .customer-page .hairstyle-card,
  .customer-page .customer-loop-track .hairstyle-card {
    min-height: 136px !important;
  }

  .customer-page .hairstyle-image,
  .customer-page .custom-style-icon {
    height: 80px !important;
    min-height: 80px !important;
  }
}

/* Absolute final customer mobile fixes v3: collapse empty area below submit button. */
@media (max-width: 720px) {
  html,
  body,
  .tablet-page.customer-page,
  .customer-page .customer-panel,
  .customer-page .customer-form,
  .customer-page .send-step {
    min-height: 0 !important;
  }

  .tablet-page.customer-page {
    height: auto !important;
    padding-bottom: 0 !important;
  }

  .customer-page .customer-panel {
    height: auto !important;
    padding-bottom: 6px !important;
  }

  .customer-page .customer-form {
    gap: 7px !important;
    padding-bottom: 0 !important;
  }

  .customer-page .send-step {
    margin-bottom: 0 !important;
    padding: 7px 0 0 !important;
  }

  .customer-page .form-message:empty {
    display: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* Absolute final customer mobile fixes v4: pin submit area to viewport bottom instead of leaving dead space below it. */
@media (max-width: 720px) {
  body.customer-native-phone-view,
  body.customer-native-phone-view .tablet-page.customer-page {
    min-height: 100dvh !important;
  }

  body.customer-native-phone-view .tablet-page.customer-page {
    display: flex !important;
    align-items: stretch !important;
    padding: 8px 8px 0 !important;
  }

  body.customer-native-phone-view .customer-page .customer-panel {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-height: calc(100dvh - 8px) !important;
    padding-bottom: 6px !important;
  }

  body.customer-native-phone-view .customer-page .customer-form {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    min-height: 0 !important;
    padding-bottom: 0 !important;
  }

  body.customer-native-phone-view .customer-page .send-step {
    margin-top: auto !important;
    margin-bottom: 0 !important;
    padding: 7px 0 0 !important;
  }

  body.customer-native-phone-view .customer-page .form-message:empty {
    display: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* Absolute final customer mobile browser fixes v5: apply bottom alignment to normal phone browsers too. */
@media (max-width: 720px) {
  html,
  body {
    min-height: 100dvh !important;
  }

  .tablet-page.customer-page {
    display: flex !important;
    align-items: stretch !important;
    min-height: 100dvh !important;
    height: auto !important;
    padding: 8px 8px 0 !important;
  }

  .customer-page .customer-panel {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-height: calc(100dvh - 8px) !important;
    height: auto !important;
    padding-bottom: 6px !important;
  }

  .customer-page .customer-form {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    min-height: 0 !important;
    padding-bottom: 0 !important;
  }

  .customer-page .send-step {
    margin-top: auto !important;
    margin-bottom: 0 !important;
    padding: 7px 0 0 !important;
  }

  .customer-page .form-message,
  .customer-page .form-message:empty {
    display: none !important;
    min-height: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* Absolute final customer mobile browser fixes v6: stop page directly after submit button. */
@media (max-width: 720px) {
  html,
  body,
  body.customer-native-phone-view,
  .tablet-page.customer-page,
  body.customer-native-phone-view .tablet-page.customer-page,
  .customer-page .customer-panel,
  body.customer-native-phone-view .customer-page .customer-panel,
  .customer-page .customer-form,
  body.customer-native-phone-view .customer-page .customer-form,
  .customer-page .send-step,
  body.customer-native-phone-view .customer-page .send-step {
    min-height: 0 !important;
    height: auto !important;
  }

  body {
    overflow-y: auto !important;
  }

  .tablet-page.customer-page,
  body.customer-native-phone-view .tablet-page.customer-page {
    display: block !important;
    padding: 8px 8px 0 !important;
  }

  .customer-page .customer-panel,
  body.customer-native-phone-view .customer-page .customer-panel {
    display: block !important;
    padding-bottom: 0 !important;
  }

  .customer-page .customer-form,
  body.customer-native-phone-view .customer-page .customer-form {
    display: grid !important;
    gap: 7px !important;
    padding-bottom: 0 !important;
  }

  .customer-page .send-step,
  body.customer-native-phone-view .customer-page .send-step {
    display: block !important;
    flex: none !important;
    margin: 0 !important;
    padding: 7px 0 0 !important;
  }

  .customer-page .form-message,
  .customer-page .form-message:empty,
  body.customer-native-phone-view .customer-page .form-message,
  body.customer-native-phone-view .customer-page .form-message:empty {
    display: none !important;
    min-height: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* Absolute final customer mobile browser fixes v7-final: keep submit button at the phone viewport bottom. */
@media (max-width: 720px) {
  .customer-page .customer-form,
  body.customer-native-phone-view .customer-page .customer-form {
    padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .customer-page .send-step,
  body.customer-native-phone-view .customer-page .send-step {
    position: fixed !important;
    left: 8px !important;
    right: 8px !important;
    bottom: env(safe-area-inset-bottom, 0px) !important;
    z-index: 90 !important;
    display: block !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 8px 0 !important;
    border: 0 !important;
    background: linear-gradient(180deg, rgba(0, 8, 6, 0), rgba(0, 8, 6, .92) 28%, rgba(0, 8, 6, .98)) !important;
    box-shadow: none !important;
  }

  .customer-page .send-order-button,
  body.customer-native-phone-view .customer-page .send-order-button {
    width: 100% !important;
    min-height: 56px !important;
    height: 56px !important;
    margin: 0 !important;
  }

  .customer-page .form-message,
  .customer-page .form-message:empty,
  body.customer-native-phone-view .customer-page .form-message,
  body.customer-native-phone-view .customer-page .form-message:empty {
    display: none !important;
    min-height: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* Absolute final customer mobile fixes v10-end: keep carousel lazy loading and swipe usable. */
@media (max-width: 720px), (pointer: coarse) {
  .customer-page .customer-form,
  body.customer-native-phone-view .customer-page .customer-form {
    padding-bottom: 0 !important;
    overflow: visible !important;
  }

  .customer-page .send-step,
  body.customer-native-phone-view .customer-page .send-step {
    position: static !important;
    inset: auto !important;
    z-index: auto !important;
    display: block !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 7px 0 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .customer-page .send-order-button,
  body.customer-native-phone-view .customer-page .send-order-button {
    width: 100% !important;
    min-height: 56px !important;
    height: 56px !important;
    margin: 0 !important;
  }
}

/* Absolute final customer mobile fixes v11-end: visible employee selection check. */
@media (max-width: 720px), (pointer: coarse) {
  .customer-page .employee-card.is-selected::after,
  body.customer-native-phone-view .customer-page .employee-card.is-selected::after {
    top: 86px !important;
    left: 8px !important;
    right: auto !important;
    width: 24px !important;
    height: 24px !important;
    font-size: 15px !important;
    z-index: 4 !important;
  }

  .customer-page .employee-card .employee-queue-count,
  body.customer-native-phone-view .customer-page .employee-card .employee-queue-count {
    z-index: 3 !important;
  }
}

/* Absolute final customer mobile fixes v12-end: stretch phone view to the visible screen bottom. */
@media (max-width: 720px) {
  html,
  body {
    min-height: 100svh !important;
    min-height: 100dvh !important;
  }

  .tablet-page.customer-page,
  body.customer-native-phone-view .tablet-page.customer-page {
    display: flex !important;
    align-items: stretch !important;
    min-height: 100svh !important;
    min-height: 100dvh !important;
    height: auto !important;
    padding: 8px !important;
  }

  .customer-page .customer-panel,
  body.customer-native-phone-view .customer-page .customer-panel {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-height: calc(100svh - 16px) !important;
    min-height: calc(100dvh - 16px) !important;
    height: auto !important;
    padding-bottom: 8px !important;
  }

  .customer-page .customer-form,
  body.customer-native-phone-view .customer-page .customer-form {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    min-height: 0 !important;
    padding-bottom: 0 !important;
    overflow: visible !important;
  }

  .customer-page .send-step,
  body.customer-native-phone-view .customer-page .send-step {
    position: static !important;
    inset: auto !important;
    z-index: auto !important;
    display: block !important;
    flex: 0 0 auto !important;
    margin-top: auto !important;
    margin-bottom: 0 !important;
    padding: 7px 0 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
}

/* Absolute final customer mobile fixes v13-end: make the white panel fill the phone viewport. */
@media (max-width: 720px) {
  .tablet-page.customer-page,
  body.customer-native-phone-view .tablet-page.customer-page {
    min-height: 100svh !important;
    min-height: 100dvh !important;
    height: 100svh !important;
    height: 100dvh !important;
    padding: 8px !important;
    overflow: hidden !important;
  }

  .customer-page .customer-panel,
  body.customer-native-phone-view .customer-page .customer-panel {
    min-height: 0 !important;
    height: calc(100svh - 16px) !important;
    height: calc(100dvh - 16px) !important;
    overflow: hidden !important;
  }

  .customer-page .customer-form,
  body.customer-native-phone-view .customer-page .customer-form {
    min-height: 0 !important;
  }
}

/* Absolute final customer mobile fixes v14-end: lower the marked controls and enlarge the quick button. */
@media (max-width: 720px) {
  .customer-page .employee-quick-button,
  body.customer-native-phone-view .customer-page .employee-quick-button {
    min-height: 56px !important;
    padding: 0 24px !important;
    border-radius: 20px !important;
    font-size: 18px !important;
    line-height: 1 !important;
  }

  .customer-page .customer-step:first-child,
  body.customer-native-phone-view .customer-page .customer-step:first-child {
    padding-top: 14px !important;
  }

  .customer-page .customer-step:first-child .selection-grid,
  body.customer-native-phone-view .customer-page .customer-step:first-child .selection-grid {
    margin-top: 12px !important;
  }

  .customer-page [aria-labelledby="step-hairstyle"],
  body.customer-native-phone-view .customer-page [aria-labelledby="step-hairstyle"] {
    margin-top: 20px !important;
  }

  .customer-page [aria-labelledby="step-hairstyle"] .selection-grid,
  body.customer-native-phone-view .customer-page [aria-labelledby="step-hairstyle"] .selection-grid {
    margin-top: 12px !important;
  }

  .customer-page [aria-labelledby="step-customer"],
  body.customer-native-phone-view .customer-page [aria-labelledby="step-customer"] {
    margin-top: 22px !important;
  }

  .customer-page .send-step,
  body.customer-native-phone-view .customer-page .send-step {
    padding-top: 18px !important;
  }
}

/* Absolute final customer mobile fixes v15-end: use larger media areas instead of small circular placeholders. */
@media (max-width: 720px) {
  .customer-page .employee-card,
  body.customer-native-phone-view .customer-page .employee-card {
    min-height: 150px !important;
    padding: 8px !important;
    align-content: start !important;
    gap: 6px !important;
  }

  .customer-page .employee-card .avatar-circle,
  body.customer-native-phone-view .customer-page .employee-card .avatar-circle {
    width: 100% !important;
    height: 82px !important;
    border-radius: 12px !important;
    border: 0 !important;
    background: #eef3f1 !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  .customer-page .employee-card .avatar-circle img,
  body.customer-native-phone-view .customer-page .employee-card .avatar-circle img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 28% !important;
  }

  .customer-page .employee-card strong,
  body.customer-native-phone-view .customer-page .employee-card strong {
    margin-top: 0 !important;
    font-size: 13px !important;
  }

  .customer-page .employee-status-badge,
  body.customer-native-phone-view .customer-page .employee-status-badge {
    min-height: 20px !important;
  }

  .customer-page .employee-card .employee-queue-count,
  body.customer-native-phone-view .customer-page .employee-card .employee-queue-count {
    top: 6px !important;
    right: 6px !important;
  }

  .customer-page .hairstyle-card,
  .customer-page .customer-loop-track .hairstyle-card,
  body.customer-native-phone-view .customer-page .hairstyle-card,
  body.customer-native-phone-view .customer-page .customer-loop-track .hairstyle-card {
    min-height: 170px !important;
    padding: 8px !important;
    gap: 8px !important;
  }

  .customer-page .hairstyle-image,
  .customer-page .custom-style-icon,
  body.customer-native-phone-view .customer-page .hairstyle-image,
  body.customer-native-phone-view .customer-page .custom-style-icon {
    height: 108px !important;
    min-height: 108px !important;
    border-radius: 12px !important;
    background: transparent !important;
    overflow: hidden !important;
  }

  .customer-page .hairstyle-image img,
  body.customer-native-phone-view .customer-page .hairstyle-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
  }

  .customer-page .hairstyle-card strong,
  body.customer-native-phone-view .customer-page .hairstyle-card strong {
    font-size: 13px !important;
    line-height: 1.12 !important;
  }
}

/* Absolute final customer mobile fixes v16-end: make employee queue badge a rounded div, not a tiny circle. */
@media (max-width: 720px) {
  .customer-page .employee-card .employee-queue-count,
  body.customer-native-phone-view .customer-page .employee-card .employee-queue-count {
    top: 8px !important;
    right: 8px !important;
    min-width: 40px !important;
    width: 40px !important;
    height: 30px !important;
    border-radius: 12px !important;
    border-width: 2px !important;
    font-size: 15px !important;
    line-height: 1 !important;
    box-shadow: 0 8px 18px rgba(22, 31, 28, 0.12) !important;
  }
}

/* Absolute final customer mobile fixes v17-end: show employee photos as large circles inside the card. */
@media (max-width: 720px) {
  .customer-page .employee-card,
  body.customer-native-phone-view .customer-page .employee-card {
    min-height: 140px !important;
    padding: 10px 8px 8px !important;
    align-content: start !important;
    justify-items: center !important;
    gap: 6px !important;
  }

  .customer-page .employee-card .avatar-circle,
  body.customer-native-phone-view .customer-page .employee-card .avatar-circle {
    width: 76px !important;
    height: 76px !important;
    min-width: 76px !important;
    min-height: 76px !important;
    border-radius: 50% !important;
    border: 3px solid #ffffff !important;
    background: #eef3f1 !important;
    box-shadow: 0 10px 24px rgba(22, 31, 28, 0.12) !important;
    overflow: hidden !important;
  }

  .customer-page .employee-card .avatar-circle img,
  body.customer-native-phone-view .customer-page .employee-card .avatar-circle img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  .customer-page .employee-card .employee-queue-count,
  body.customer-native-phone-view .customer-page .employee-card .employee-queue-count {
    top: 8px !important;
    right: 8px !important;
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
  }
}

/* Absolute final customer mobile fixes v18-end: remove the visible photo box and make the employee photo circle larger. */
@media (max-width: 720px) {
  .customer-page .employee-card,
  body.customer-native-phone-view .customer-page .employee-card {
    min-height: 150px !important;
    padding: 8px 8px 10px !important;
    gap: 5px !important;
  }

  .customer-page .employee-card .avatar-circle,
  body.customer-native-phone-view .customer-page .employee-card .avatar-circle {
    width: 92px !important;
    height: 92px !important;
    min-width: 92px !important;
    min-height: 92px !important;
    border-radius: 50% !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  .customer-page .employee-card .avatar-circle img,
  body.customer-native-phone-view .customer-page .employee-card .avatar-circle img {
    border-radius: 50% !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }
}

/* Absolute final customer mobile fixes v19-end: selected employee card keeps only the check mark, no highlighted border. */
@media (max-width: 720px) {
  .customer-page .employee-card.is-selected,
  body.customer-native-phone-view .customer-page .employee-card.is-selected {
    background: #ffffff !important;
    border-color: transparent !important;
    box-shadow: none !important;
    transform: none !important;
  }
}

/* Customer mobile preview v20: raised employee circles, raised styles, pressed send button and success popup. */
@media (max-width: 720px) {
  .customer-page .employee-card .avatar-circle,
  body.customer-native-phone-view .customer-page .employee-card .avatar-circle {
    width: 96px !important;
    height: 96px !important;
    min-width: 96px !important;
    min-height: 96px !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    box-shadow:
      0 0 0 6px #2f9f2a,
      0 0 0 11px #eaf8e7,
      0 16px 30px rgba(47, 159, 42, 0.28),
      0 4px 0 rgba(20, 105, 17, 0.16) !important;
  }

  .customer-page .employee-card.is-paused .avatar-circle,
  body.customer-native-phone-view .customer-page .employee-card.is-paused .avatar-circle {
    box-shadow:
      0 0 0 6px #f2a0a0,
      0 0 0 11px #fff0f0,
      0 16px 30px rgba(217, 84, 84, 0.22),
      0 4px 0 rgba(159, 50, 50, 0.14) !important;
  }

  .customer-page .employee-card .employee-status-badge,
  body.customer-native-phone-view .customer-page .employee-card .employee-status-badge {
    display: none !important;
  }

  .customer-page .select-card.is-selected::after,
  body.customer-native-phone-view .customer-page .select-card.is-selected::after {
    top: 8px !important;
    left: 8px !important;
    right: auto !important;
    width: 30px !important;
    height: 30px !important;
    color: #187f17 !important;
    background: #eaffdf !important;
    border: 3px solid #2f9f2a !important;
    box-shadow: 0 8px 16px rgba(47, 159, 42, 0.22) !important;
  }

  .customer-page .hairstyle-card,
  .customer-page .customer-loop-track .hairstyle-card,
  body.customer-native-phone-view .customer-page .hairstyle-card,
  body.customer-native-phone-view .customer-page .customer-loop-track .hairstyle-card {
    border-color: #2f9f2a !important;
    box-shadow:
      0 0 0 4px #eef9eb,
      0 15px 28px rgba(47, 159, 42, 0.18),
      0 4px 0 rgba(20, 105, 17, 0.13) !important;
  }

  .customer-page .send-step,
  body.customer-native-phone-view .customer-page .send-step {
    position: relative !important;
  }

  .customer-page .send-order-button,
  body.customer-native-phone-view .customer-page .send-order-button {
    box-shadow:
      0 0 0 3px #eef9eb,
      0 12px 22px rgba(47, 159, 42, 0.18),
      0 4px 0 rgba(20, 105, 17, 0.18) !important;
    transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease !important;
  }

  .customer-page .send-order-button:active:not(:disabled),
  body.customer-native-phone-view .customer-page .send-order-button:active:not(:disabled) {
    transform: translateY(4px) !important;
    box-shadow:
      0 0 0 3px #eef9eb,
      0 5px 10px rgba(47, 159, 42, 0.12),
      0 1px 0 rgba(20, 105, 17, 0.18) !important;
  }

  .customer-page .customer-success-popup,
  body.customer-native-phone-view .customer-page .customer-success-popup {
    position: absolute !important;
    left: 12px !important;
    right: 12px !important;
    bottom: calc(100% + 12px) !important;
    z-index: 20 !important;
    display: grid !important;
    gap: 4px !important;
    place-items: center !important;
    padding: 16px 14px !important;
    color: #0f2f27 !important;
    text-align: center !important;
    background: #ffffff !important;
    border: 3px solid #2f9f2a !important;
    border-radius: 18px !important;
    box-shadow:
      0 0 0 4px #eef9eb,
      0 18px 34px rgba(20, 45, 28, 0.24) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(14px) scale(0.97) !important;
    transition: opacity 160ms ease, transform 160ms ease !important;
  }

  .customer-page .customer-success-popup.is-visible,
  body.customer-native-phone-view .customer-page .customer-success-popup.is-visible {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
  }

  .customer-page .customer-success-popup strong,
  body.customer-native-phone-view .customer-page .customer-success-popup strong {
    display: block !important;
    font-size: 16px !important;
    line-height: 1.25 !important;
  }

  .customer-page .customer-success-popup span,
  body.customer-native-phone-view .customer-page .customer-success-popup span {
    font-size: 15px !important;
    font-weight: 700 !important;
  }

  .customer-page .customer-success-popup b,
  body.customer-native-phone-view .customer-page .customer-success-popup b {
    font-size: 28px !important;
    line-height: 1 !important;
  }
}

/* Customer mobile fix v21: hide step number bubbles on the phone layout. */
@media (max-width: 720px) {
  .customer-page .step-title > span,
  body.customer-native-phone-view .customer-page .step-title > span {
    display: none !important;
  }
}

/* Customer mobile fix v22: hide clipped left edge lines from the horizontal selection areas. */
@media (max-width: 720px) {
  .customer-page .selection-grid,
  .customer-page .selection-grid.is-loop-ready,
  body.customer-native-phone-view .customer-page .selection-grid,
  body.customer-native-phone-view .customer-page .selection-grid.is-loop-ready {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7px, #000 100%) !important;
    mask-image: linear-gradient(to right, transparent 0, #000 7px, #000 100%) !important;
  }
}

/* Customer mobile fix v23: hide employee/style section heading text on the phone layout. */
@media (max-width: 720px) {
  .customer-page [aria-labelledby="step-employee"] .step-title h2,
  .customer-page [aria-labelledby="step-hairstyle"] .step-title h2,
  body.customer-native-phone-view .customer-page [aria-labelledby="step-employee"] .step-title h2,
  body.customer-native-phone-view .customer-page [aria-labelledby="step-hairstyle"] .step-title h2 {
    display: none !important;
  }

  .customer-page [aria-labelledby="step-employee"] .step-title,
  body.customer-native-phone-view .customer-page [aria-labelledby="step-employee"] .step-title {
    justify-content: flex-end !important;
  }

  .customer-page [aria-labelledby="step-hairstyle"] .step-title,
  body.customer-native-phone-view .customer-page [aria-labelledby="step-hairstyle"] .step-title {
    display: none !important;
  }
}

/* Customer mobile fix v24: enlarge next-free button and employee photo circles. */
@media (max-width: 720px) {
  .customer-page [aria-labelledby="step-employee"] .step-title,
  body.customer-native-phone-view .customer-page [aria-labelledby="step-employee"] .step-title {
    display: block !important;
    margin-bottom: 16px !important;
  }

  .customer-page .employee-quick-actions,
  body.customer-native-phone-view .customer-page .employee-quick-actions {
    width: 100% !important;
    margin: 0 !important;
  }

  .customer-page .employee-quick-button,
  body.customer-native-phone-view .customer-page .employee-quick-button {
    width: 100% !important;
    min-height: 58px !important;
    height: 58px !important;
    padding: 0 18px !important;
    border-radius: 18px !important;
    font-size: 19px !important;
    font-weight: 900 !important;
  }

  .customer-page .employee-card,
  body.customer-native-phone-view .customer-page .employee-card {
    min-height: 170px !important;
    padding-top: 12px !important;
  }

  .customer-page .employee-card .avatar-circle,
  body.customer-native-phone-view .customer-page .employee-card .avatar-circle {
    width: 112px !important;
    height: 112px !important;
    min-width: 112px !important;
    min-height: 112px !important;
  }
}

/* Customer mobile fix v25: remove the three large vertical gaps between controls and cards. */
@media (max-width: 720px) {
  .customer-page .customer-form,
  body.customer-native-phone-view .customer-page .customer-form {
    gap: 0 !important;
  }

  .customer-page [aria-labelledby="step-employee"],
  body.customer-native-phone-view .customer-page [aria-labelledby="step-employee"] {
    gap: 0 !important;
    padding-bottom: 2px !important;
  }

  .customer-page [aria-labelledby="step-employee"] .step-title,
  body.customer-native-phone-view .customer-page [aria-labelledby="step-employee"] .step-title {
    margin-bottom: 4px !important;
  }

  .customer-page [aria-labelledby="step-employee"] .selection-grid,
  .customer-page [aria-labelledby="step-employee"] .selection-grid.is-loop-ready,
  body.customer-native-phone-view .customer-page [aria-labelledby="step-employee"] .selection-grid,
  body.customer-native-phone-view .customer-page [aria-labelledby="step-employee"] .selection-grid.is-loop-ready {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .customer-page [aria-labelledby="step-hairstyle"],
  body.customer-native-phone-view .customer-page [aria-labelledby="step-hairstyle"] {
    gap: 0 !important;
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    margin-top: 0 !important;
  }

  .customer-page [aria-labelledby="step-hairstyle"] .selection-grid,
  .customer-page [aria-labelledby="step-hairstyle"] .selection-grid.is-loop-ready,
  body.customer-native-phone-view .customer-page [aria-labelledby="step-hairstyle"] .selection-grid,
  body.customer-native-phone-view .customer-page [aria-labelledby="step-hairstyle"] .selection-grid.is-loop-ready {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .customer-page [aria-labelledby="step-customer"],
  body.customer-native-phone-view .customer-page [aria-labelledby="step-customer"] {
    padding-top: 4px !important;
    margin-top: 0 !important;
  }
}

/* Customer mobile fix v26: make the send confirmation popup visible above the bottom controls. */
@media (max-width: 720px) {
  .customer-page .customer-success-popup,
  body.customer-native-phone-view .customer-page .customer-success-popup {
    position: fixed !important;
    left: 18px !important;
    right: 18px !important;
    bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 9999 !important;
    max-width: 430px !important;
    margin: 0 auto !important;
    display: grid !important;
    gap: 5px !important;
    place-items: center !important;
    padding: 16px 14px !important;
    color: #0f2f27 !important;
    text-align: center !important;
    background: #ffffff !important;
    border: 3px solid #2f9f2a !important;
    border-radius: 18px !important;
    box-shadow:
      0 0 0 4px #eef9eb,
      0 18px 34px rgba(20, 45, 28, 0.24) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(12px) scale(0.98) !important;
  }

  .customer-page .customer-success-popup.is-visible,
  body.customer-native-phone-view .customer-page .customer-success-popup.is-visible {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
  }
}

/* Customer mobile fix v27: center the send confirmation popup on the display. */
@media (max-width: 720px) {
  .customer-page .customer-success-popup,
  body.customer-native-phone-view .customer-page .customer-success-popup {
    position: fixed !important;
    top: 50% !important;
    bottom: auto !important;
    left: 20px !important;
    right: 20px !important;
    width: auto !important;
    max-width: 390px !important;
    margin: 0 auto !important;
    transform: translateY(-50%) scale(0.98) !important;
  }

  .customer-page .customer-success-popup.is-visible,
  body.customer-native-phone-view .customer-page .customer-success-popup.is-visible {
    transform: translateY(-50%) scale(1) !important;
  }
}

/* Customer mobile fix v28: remove visible card boxes around barber and style choices. */
@media (max-width: 720px) {
  .customer-page .employee-card,
  .customer-page .hairstyle-card,
  .customer-page .customer-loop-track .employee-card,
  .customer-page .customer-loop-track .hairstyle-card,
  body.customer-native-phone-view .customer-page .employee-card,
  body.customer-native-phone-view .customer-page .hairstyle-card,
  body.customer-native-phone-view .customer-page .customer-loop-track .employee-card,
  body.customer-native-phone-view .customer-page .customer-loop-track .hairstyle-card {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }

  .customer-page .employee-card.is-selected,
  .customer-page .hairstyle-card.is-selected,
  body.customer-native-phone-view .customer-page .employee-card.is-selected,
  body.customer-native-phone-view .customer-page .hairstyle-card.is-selected {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }
}

/* Customer mobile fix v29: improve only the style image rendering, without changing the style card layout. */
@media (max-width: 720px) {
  .customer-page .hairstyle-image,
  body.customer-native-phone-view .customer-page .hairstyle-image {
    overflow: hidden !important;
  }

  .customer-page .hairstyle-image img,
  body.customer-native-phone-view .customer-page .hairstyle-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
    image-rendering: auto !important;
    transform: scale(1.08) !important;
    transform-origin: center top !important;
    backface-visibility: hidden !important;
  }
}

/* Customer mobile fix v30: hide choice card boxes in black theme and add space below employee photos. */
@media (max-width: 720px) {
  html[data-theme="black"] .customer-page .employee-card,
  html[data-theme="black"] .customer-page .hairstyle-card,
  html[data-theme="black"] .customer-page .customer-loop-track .employee-card,
  html[data-theme="black"] .customer-page .customer-loop-track .hairstyle-card,
  html[data-theme="black"] body.customer-native-phone-view .customer-page .employee-card,
  html[data-theme="black"] body.customer-native-phone-view .customer-page .hairstyle-card,
  html[data-theme="black"] body.customer-native-phone-view .customer-page .customer-loop-track .employee-card,
  html[data-theme="black"] body.customer-native-phone-view .customer-page .customer-loop-track .hairstyle-card {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }

  .customer-page .employee-card strong,
  body.customer-native-phone-view .customer-page .employee-card strong,
  html[data-theme="black"] .customer-page .employee-card strong,
  html[data-theme="black"] body.customer-native-phone-view .customer-page .employee-card strong {
    margin-top: 10px !important;
  }
}

/* Customer mobile fix v34: enlarge all employee circular photos. */
@media (max-width: 720px) {
  .customer-page .employee-card,
  body.customer-native-phone-view .customer-page .employee-card {
    min-height: 190px !important;
    padding-top: 8px !important;
  }

  .customer-page .employee-card .avatar-circle,
  body.customer-native-phone-view .customer-page .employee-card .avatar-circle {
    width: 132px !important;
    height: 132px !important;
    min-width: 132px !important;
    min-height: 132px !important;
  }

  .customer-page .employee-card strong,
  body.customer-native-phone-view .customer-page .employee-card strong {
    margin-top: 14px !important;
  }
}

/* Customer mobile fix v35: make the employee photo ring thinner while keeping the larger circle size. */
@media (max-width: 720px) {
  .customer-page .employee-card .avatar-circle,
  body.customer-native-phone-view .customer-page .employee-card .avatar-circle {
    box-shadow:
      0 0 0 1px #8df07f,
      0 20px 34px rgba(35, 71, 55, 0.18),
      0 28px 52px rgba(141, 240, 127, 0.20),
      0 5px 0 rgba(98, 203, 88, 0.10) !important;
  }

  .customer-page .employee-card.is-paused .avatar-circle,
  body.customer-native-phone-view .customer-page .employee-card.is-paused .avatar-circle {
    box-shadow:
      0 0 0 1px #f2a0a0,
      0 20px 34px rgba(35, 35, 35, 0.14),
      0 24px 44px rgba(217, 84, 84, 0.14),
      0 3px 0 rgba(159, 50, 50, 0.10) !important;
  }
}

/* Customer mobile fix v31: lighter green and subtle floating effect for visual choices. */
@media (max-width: 720px) {
  .customer-page .employee-card .avatar-circle,
  body.customer-native-phone-view .customer-page .employee-card .avatar-circle {
    box-shadow:
      0 0 0 6px #8df07f,
      0 0 0 12px #e8ffe5,
      0 18px 34px rgba(141, 240, 127, 0.34),
      0 5px 0 rgba(98, 203, 88, 0.16) !important;
    animation: customer-choice-swing 3.2s ease-in-out infinite !important;
  }

  .customer-page .employee-card.is-paused .avatar-circle,
  body.customer-native-phone-view .customer-page .employee-card.is-paused .avatar-circle {
    animation: customer-choice-swing 3.4s ease-in-out infinite !important;
  }

  .customer-page .hairstyle-image,
  body.customer-native-phone-view .customer-page .hairstyle-image {
    border: 2px solid #b8f7af !important;
    box-shadow: 0 14px 26px rgba(141, 240, 127, 0.18) !important;
    animation: none !important;
  }

  .customer-page .employee-quick-button,
  body.customer-native-phone-view .customer-page .employee-quick-button,
  .customer-page .camera-button,
  body.customer-native-phone-view .customer-page .camera-button {
    border-color: #b9efdc !important;
    background: #effdf7 !important;
    color: #007f68 !important;
  }

  .customer-page .select-card.is-selected::after,
  body.customer-native-phone-view .customer-page .select-card.is-selected::after {
    color: #168a16 !important;
    background: #eaffdf !important;
    border-color: #8df07f !important;
    box-shadow: 0 8px 16px rgba(141, 240, 127, 0.28) !important;
  }
}

@keyframes customer-choice-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes customer-choice-swing {
  0%,
  100% {
    transform: rotate(-0.55deg);
    transform-origin: 50% 0;
  }

  50% {
    transform: rotate(0.55deg);
    transform-origin: 50% 0;
  }
}

@media (max-width: 720px) and (prefers-reduced-motion: reduce) {
  .customer-page .employee-card .avatar-circle,
  .customer-page .hairstyle-image,
  body.customer-native-phone-view .customer-page .employee-card .avatar-circle,
  body.customer-native-phone-view .customer-page .hairstyle-image {
    animation: none !important;
  }
}

/* Customer mobile fix v38: visible left/right arrows inside the style image popup. */
@media (max-width: 720px) {
  .style-modal-nav {
    width: 42px !important;
    height: 42px !important;
    font-size: 34px !important;
    background: rgba(15, 143, 120, 0.92) !important;
  }

  .style-modal-nav.prev {
    left: 8px !important;
  }

  .style-modal-nav.next {
    right: 8px !important;
  }
}

/* Customer mobile fix v39: style popup changes images by swiping, no visible arrow buttons. */
.style-modal-nav {
  display: none !important;
}

#styleModalImage {
  touch-action: none !important;
  user-select: none !important;
}

#styleModalImage.is-zoomed {
  transition: none !important;
}

/* Customer mobile fix v42: larger style preview popup without moving the controls. */
@media (max-width: 720px) {
  .style-modal {
    padding: 8px !important;
  }

  .style-modal-card {
    width: min(calc(100vw - 16px), 620px) !important;
    max-height: calc(100dvh - 16px) !important;
    gap: 8px !important;
    padding: 8px !important;
  }

  .style-modal-main {
    height: min(82vw, 460px) !important;
  }
}

/* Customer mobile fix v41: stagger employee swing timing so circles do not move together. */
@media (max-width: 720px) {
  .customer-page .employee-grid .employee-card:nth-of-type(2n) .avatar-circle,
  body.customer-native-phone-view .customer-page .employee-grid .employee-card:nth-of-type(2n) .avatar-circle {
    animation-delay: -0.8s !important;
  }

  .customer-page .employee-grid .employee-card:nth-of-type(3n) .avatar-circle,
  body.customer-native-phone-view .customer-page .employee-grid .employee-card:nth-of-type(3n) .avatar-circle {
    animation-delay: -1.6s !important;
  }

  .customer-page .employee-grid .employee-card:nth-of-type(4n) .avatar-circle,
  body.customer-native-phone-view .customer-page .employee-grid .employee-card:nth-of-type(4n) .avatar-circle {
    animation-delay: -2.3s !important;
  }
}

/* Barber setup fix v40: larger employee photos on the employee tablet selection screen. */
.barber-page .setup-employee-card {
  min-height: 248px !important;
  padding-top: 18px !important;
}

.barber-page .setup-photo-placeholder {
  width: 132px !important;
  height: 132px !important;
  margin-bottom: 10px !important;
}

.barber-page .setup-photo-placeholder img,
.barber-page .setup-photo-placeholder svg {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.barber-page .setup-employee-card strong {
  margin-top: 0 !important;
}

@media (max-width: 980px) {
  .barber-page .setup-employee-card {
    min-height: 218px !important;
  }

  .barber-page .setup-photo-placeholder {
    width: 112px !important;
    height: 112px !important;
  }
}

/* Barber setup fix v41: center employee cards in complete, balanced rows. */
.barber-page .setup-panel {
  width: min(100%, 1040px) !important;
  margin-inline: auto !important;
}

.barber-page .setup-employee-grid {
  width: min(100%, 1000px) !important;
  margin: 24px auto 0 !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, 176px) !important;
  justify-content: center !important;
  justify-items: center !important;
  align-items: stretch !important;
  gap: 26px 30px !important;
  overflow: visible !important;
}

.barber-page .setup-employee-card {
  width: 176px !important;
  min-height: 248px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: center !important;
}

@media (min-width: 980px) {
  .barber-page .setup-employee-grid {
    grid-template-columns: repeat(4, 176px) !important;
  }
}

@media (min-width: 980px) {
  .barber-page .setup-employee-grid .setup-employee-card:nth-last-child(2):nth-child(4n + 1) {
    grid-column-start: 2 !important;
  }
}

@media (max-width: 760px) {
  .barber-page .setup-employee-grid {
    grid-template-columns: repeat(auto-fit, minmax(156px, 176px)) !important;
  }
}

/* Customer mobile fix v43: final override for ultra-thin employee circle border. */
@media (max-width: 720px) {
  .customer-page .employee-card .avatar-circle,
  body.customer-native-phone-view .customer-page .employee-card .avatar-circle {
    border: 0 !important;
    outline: 0 !important;
    box-shadow:
      0 0 0 1px #8df07f,
      0 20px 34px rgba(35, 71, 55, 0.18),
      0 28px 52px rgba(141, 240, 127, 0.16) !important;
  }

  .customer-page .employee-card.is-paused .avatar-circle,
  body.customer-native-phone-view .customer-page .employee-card.is-paused .avatar-circle {
    border: 0 !important;
    outline: 0 !important;
    box-shadow:
      0 0 0 1px #f2a0a0,
      0 20px 34px rgba(35, 35, 35, 0.14),
      0 24px 44px rgba(217, 84, 84, 0.12) !important;
  }
}

/* Customer mobile fast v44: lighter rendering for iPhone/Safari and all mobile browsers. */
@media (max-width: 720px) {
  html,
  body {
    overscroll-behavior-y: none;
    -webkit-overflow-scrolling: touch;
  }

  .customer-page,
  body.customer-native-phone-view .customer-page {
    -webkit-font-smoothing: antialiased;
    overscroll-behavior-y: none;
  }

  .customer-page .employee-card,
  .customer-page .hairstyle-card,
  .customer-page .customer-loop-track .employee-card,
  .customer-page .customer-loop-track .hairstyle-card,
  body.customer-native-phone-view .customer-page .employee-card,
  body.customer-native-phone-view .customer-page .hairstyle-card,
  body.customer-native-phone-view .customer-page .customer-loop-track .employee-card,
  body.customer-native-phone-view .customer-page .customer-loop-track .hairstyle-card {
    contain: layout paint style !important;
    transition: transform 100ms ease, border-color 100ms ease, background-color 100ms ease !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .customer-page .employee-card .avatar-circle,
  body.customer-native-phone-view .customer-page .employee-card .avatar-circle {
    border: 0 !important;
    outline: 0 !important;
    animation: none !important;
    box-shadow:
      0 0 0 1px #8df07f,
      0 10px 18px rgba(35, 71, 55, 0.14) !important;
  }

  .customer-page .employee-card.is-paused .avatar-circle,
  body.customer-native-phone-view .customer-page .employee-card.is-paused .avatar-circle {
    animation: none !important;
    box-shadow:
      0 0 0 1px #f2a0a0,
      0 10px 18px rgba(35, 35, 35, 0.10) !important;
  }

  .customer-page .hairstyle-image,
  body.customer-native-phone-view .customer-page .hairstyle-image {
    box-shadow: none !important;
    filter: none !important;
  }

  .customer-page .hairstyle-image img,
  .customer-page .avatar-circle img,
  body.customer-native-phone-view .customer-page .hairstyle-image img,
  body.customer-native-phone-view .customer-page .avatar-circle img {
    filter: none !important;
    transform: none !important;
    will-change: auto !important;
    opacity: 1 !important;
    transition: none !important;
  }

  .style-modal,
  .photo-modal,
  body.customer-native-phone-view .style-modal,
  body.customer-native-phone-view .photo-modal {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* Customer mobile fast v45: prevent iPhone pull-refresh flicker and resize re-render shimmer. */
@media (max-width: 720px) {
  .customer-page .employee-grid,
  .customer-page .hairstyle-grid,
  body.customer-native-phone-view .customer-page .employee-grid,
  body.customer-native-phone-view .customer-page .hairstyle-grid {
    overscroll-behavior-x: contain;
    overscroll-behavior-y: none;
  }

  .customer-page .avatar-circle,
  .customer-page .hairstyle-image,
  body.customer-native-phone-view .customer-page .avatar-circle,
  body.customer-native-phone-view .customer-page .hairstyle-image {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
}

/* Customer mobile input v46: stop iPhone Safari from zooming the whole view on name input focus. */
@media (max-width: 720px) {
  .customer-page .name-row input,
  body.customer-native-phone-view .customer-page .name-row input {
    font-size: 16px !important;
    line-height: 1.25 !important;
    transform: none !important;
    zoom: 1 !important;
    -webkit-text-size-adjust: 100% !important;
  }

  .customer-page .name-row input:focus,
  body.customer-native-phone-view .customer-page .name-row input:focus {
    font-size: 16px !important;
    transform: none !important;
    scroll-margin-bottom: 220px;
  }

  .customer-page .name-row input::placeholder,
  body.customer-native-phone-view .customer-page .name-row input::placeholder {
    font-size: 16px !important;
  }
}

/* Customer employee unavailable badge v1: explicit label on paused barber photos. */
.customer-page .employee-card .avatar-circle,
body.customer-native-phone-view .customer-page .employee-card .avatar-circle {
  position: relative;
}

.customer-page .employee-card .employee-unavailable-badge,
body.customer-native-phone-view .customer-page .employee-card .employee-unavailable-badge {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  display: none;
  max-width: 68%;
  padding: 4px 7px;
  color: #ffffff;
  background: rgba(153, 27, 27, 0.92);
  border-radius: 6px;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  transform: translateX(-50%);
  white-space: normal;
  pointer-events: none;
}

.customer-page .employee-card.is-paused .employee-unavailable-badge,
body.customer-native-phone-view .customer-page .employee-card.is-paused .employee-unavailable-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Customer queue notice v47: glass waiting hint when selected barber has a queue. */
.customer-queue-notice {
  position: fixed;
  left: 50%;
  top: 45%;
  z-index: 1500;
  min-width: 148px;
  padding: 18px 28px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.46);
  color: #007f68;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 22px 60px rgba(15, 46, 38, 0.18);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, -42%, 0) scale(0.96);
  transition: opacity 180ms ease, transform 180ms ease;
}

.customer-queue-notice.is-visible {
  opacity: 1;
  transform: translate3d(-50%, -50%, 0) scale(1);
}

.customer-queue-notice span {
  display: block;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.customer-page .employee-queue-count,
body.customer-native-phone-view .customer-page .employee-queue-count {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(77, 46, 0, 0.36) !important;
}

@media (max-width: 720px) {
  .customer-queue-notice {
    top: 42%;
    min-width: 132px;
    padding: 16px 24px;
    font-size: 22px;
  }
}

/* Customer queue badge v48: use light green instead of yellow. */
.customer-page .employee-queue-count,
body.customer-native-phone-view .customer-page .employee-queue-count {
  background: #8df07f !important;
  border-color: rgba(255, 255, 255, 0.95) !important;
  color: #ffffff !important;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.92),
    0 8px 16px rgba(47, 159, 42, 0.22) !important;
}

/* Customer queue label v49: small light-green label attached to the selected queue count. */
.customer-page .employee-card,
body.customer-native-phone-view .customer-page .employee-card {
  overflow: visible !important;
  z-index: 1;
}

.customer-page .employee-card.show-wait-label,
body.customer-native-phone-view .customer-page .employee-card.show-wait-label {
  z-index: 80 !important;
}

.customer-page .employee-card .employee-wait-label,
body.customer-native-phone-view .customer-page .employee-card .employee-wait-label {
  position: absolute;
  top: 34px;
  right: 8px;
  z-index: 120;
  padding: 6px 13px;
  border: 1px solid #76c66c;
  border-radius: 6px;
  background: #dff7d8;
  color: #2d5f27;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(47, 159, 42, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, -8px, 0) scale(0.98);
  transition: opacity 140ms ease, transform 140ms ease;
}

.customer-page .employee-card .employee-wait-label::after,
body.customer-native-phone-view .customer-page .employee-card .employee-wait-label::after {
  content: "";
  position: absolute;
  right: 18px;
  top: -6px;
  width: 10px;
  height: 10px;
  border-left: 1px solid #76c66c;
  border-top: 1px solid #76c66c;
  background: #dff7d8;
  transform: rotate(45deg);
}

.customer-page .employee-card.show-wait-label .employee-wait-label,
body.customer-native-phone-view .customer-page .employee-card.show-wait-label .employee-wait-label {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

@media (max-width: 720px) {
  .customer-page .employee-card .employee-wait-label,
  body.customer-native-phone-view .customer-page .employee-card .employee-wait-label {
    top: 38px;
    right: 4px;
    padding: 5px 11px;
    font-size: 14px;
  }

  .customer-queue-notice {
    display: none !important;
  }
}

/* Customer queue label v50: keep the small waiting label above the carousel and visible longer. */
.customer-page .customer-loop-track .employee-card.show-wait-label,
body.customer-native-phone-view .customer-page .customer-loop-track .employee-card.show-wait-label {
  isolation: isolate;
  z-index: 200 !important;
}

.customer-page .employee-card.show-wait-label .employee-queue-count,
body.customer-native-phone-view .customer-page .employee-card.show-wait-label .employee-queue-count {
  z-index: 210 !important;
}

.customer-page .employee-card.show-wait-label .employee-wait-label,
body.customer-native-phone-view .customer-page .employee-card.show-wait-label .employee-wait-label {
  z-index: 220 !important;
}

/* Customer queue label v51: make the waiting label much more glass-like. */
.customer-page .employee-card .employee-wait-label,
body.customer-native-phone-view .customer-page .employee-card .employee-wait-label {
  border-color: rgba(102, 190, 91, 0.72) !important;
  background: rgba(15, 143, 120, 0.58) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 4px rgba(0, 70, 54, 0.55) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 10px 26px rgba(47, 159, 42, 0.18) !important;
  backdrop-filter: blur(10px) saturate(1.25) brightness(1.08) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.25) brightness(1.08) !important;
}

.customer-page .employee-card .employee-wait-label::after,
body.customer-native-phone-view .customer-page .employee-card .employee-wait-label::after {
  border-color: rgba(102, 190, 91, 0.72) !important;
  background: rgba(15, 143, 120, 0.58) !important;
  backdrop-filter: blur(10px) saturate(1.25) brightness(1.08) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.25) brightness(1.08) !important;
}

/* Customer queue label v52: white text on readable green glass. */
@media (max-width: 720px) {
  .customer-page .employee-card .employee-wait-label,
  body.customer-native-phone-view .customer-page .employee-card .employee-wait-label {
    min-width: 72px;
    padding: 7px 12px;
    font-size: 15px;
  }
}

/* Customer success popup v53: barber photo, confirm, and change barber action. */
.customer-page .customer-success-popup.is-visible,
body.customer-native-phone-view .customer-page .customer-success-popup.is-visible {
  pointer-events: auto !important;
}

.customer-page .customer-success-popup,
body.customer-native-phone-view .customer-page .customer-success-popup {
  gap: 12px !important;
  padding: 22px 18px !important;
}

.customer-page .customer-success-avatar,
body.customer-native-phone-view .customer-page .customer-success-avatar {
  width: 96px !important;
  height: 96px !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  border: 2px solid #d7d7d7 !important;
  border-radius: 14px !important;
  background: #f7f7f7 !important;
  color: #0f2f27 !important;
  font-size: 26px !important;
  font-weight: 700 !important;
}

.customer-page .customer-success-avatar img,
body.customer-native-phone-view .customer-page .customer-success-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.customer-page .customer-success-change,
.customer-page .customer-success-ok,
body.customer-native-phone-view .customer-page .customer-success-change,
body.customer-native-phone-view .customer-page .customer-success-ok {
  width: min(230px, 100%) !important;
  border: 0 !important;
  border-radius: 8px !important;
  padding: 11px 14px !important;
  font: inherit !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

.customer-page .customer-success-change,
body.customer-native-phone-view .customer-page .customer-success-change {
  background: #f7b392 !important;
  color: #ffffff !important;
}

.customer-page .customer-success-ok,
body.customer-native-phone-view .customer-page .customer-success-ok {
  background: #a8d99c !important;
  color: #ffffff !important;
}

/* Customer success popup v54: use a centered dialog on desktop and mobile. */
.customer-page .customer-success-popup,
body.customer-native-phone-view .customer-page .customer-success-popup {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 10020 !important;
  width: min(360px, calc(100vw - 34px)) !important;
  max-width: 360px !important;
  margin: 0 !important;
  display: grid !important;
  justify-items: center !important;
  gap: 12px !important;
  padding: 22px 18px !important;
  color: #0f2f27 !important;
  text-align: center !important;
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid rgba(22, 145, 116, 0.22) !important;
  border-radius: 12px !important;
  box-shadow: 0 22px 70px rgba(15, 47, 39, 0.26) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translate(-50%, calc(-50% + 14px)) scale(0.98) !important;
  transition: opacity 160ms ease, transform 160ms ease !important;
}

.customer-page .customer-success-popup.is-visible,
body.customer-native-phone-view .customer-page .customer-success-popup.is-visible {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translate(-50%, -50%) scale(1) !important;
}

.customer-page .customer-success-popup.is-visible::before,
body.customer-native-phone-view .customer-page .customer-success-popup.is-visible::before {
  content: none !important;
  display: none !important;
}

/* MyBarber Solution registration v2: split address and compact customer management. */
.solution-register-page .address-grid {
  grid-template-columns: minmax(110px, .38fr) minmax(180px, 1fr);
}

.solution-admin-page {
  min-height: 100vh;
  margin: 0;
  color: #172033;
  background:
    linear-gradient(120deg, rgba(7, 8, 10, 0.82), rgba(11, 51, 45, 0.72)),
    url("../uploads/solution/salon-hero.png") center / cover fixed;
  font-family: Arial, Helvetica, sans-serif;
}

.customer-management {
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
}

.customer-management-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 22px 26px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.customer-management-head p {
  margin: 0 0 4px;
  color: #146c5f;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.customer-management-head h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1;
}

.customer-management-back {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  color: #ffffff;
  background: #146c5f;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
}

.customer-management-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.customer-management-back.secondary {
  color: #146c5f;
  background: #e7f2ef;
}

.customer-management-login {
  width: min(460px, 100%);
  display: grid;
  gap: 14px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.customer-management-login label {
  display: grid;
  gap: 8px;
  color: #344054;
  font-size: 14px;
  font-weight: 900;
}

.customer-management-login input {
  min-height: 50px;
  padding: 12px 13px;
  color: #172033;
  background: #f8fafc;
  border: 1px solid #cdd5e1;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
}

.customer-management-login button {
  min-height: 50px;
  color: #ffffff;
  background: #146c5f;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.customer-management-login p {
  margin: 0;
  color: #b42318;
  font-weight: 900;
}

.customer-management-table {
  overflow-x: auto;
  padding: 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.customer-management-row {
  min-width: 1120px;
  display: grid;
  grid-template-columns: 138px 150px 170px 260px 230px minmax(240px, 1fr) 90px;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid #dce2ec;
  font-size: 13px;
  line-height: 1.25;
}

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

.customer-management-row-head {
  color: #647086;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.customer-management-row strong {
  color: #111827;
}

.customer-management-empty {
  margin: 18px;
  color: #647086;
  font-weight: 800;
}

@media (max-width: 860px) {
  .solution-register-page .address-grid {
    grid-template-columns: 1fr;
  }

  .customer-management {
    width: min(100% - 20px, 1480px);
    padding: 10px 0;
  }

  .customer-management-head {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }
}

/* Black-gold design option, selected by design_theme=black_gold. */
.admin-theme-mode-button.gold {
  min-width: 132px;
}

.admin-theme-mode-button.gold::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff4bb, #d7a83f 52%, #8f6517);
  box-shadow: 0 0 12px rgba(215, 168, 63, 0.52);
  vertical-align: -1px;
}

html[data-theme="black"][data-theme-variant="black-gold"] {
  --sarko-primary: #d7a83f;
  --sarko-primary-dark: #8f6517;
  --sarko-gold: #f3cf72;
  --bg: #050403;
  --surface: #12100b;
  --text: #fff9e9;
  --muted: #c8b991;
  --border: rgba(215, 168, 63, 0.42);
}

html[data-theme="black"][data-theme-variant="black-gold"] body,
html[data-theme="black"][data-theme-variant="black-gold"] .customer-page,
html[data-theme="black"][data-theme-variant="black-gold"] .qr-display-page,
html[data-theme="black"][data-theme-variant="black-gold"] .barber-page,
html[data-theme="black"][data-theme-variant="black-gold"] .style-access-page,
html[data-theme="black"][data-theme-variant="black-gold"] .qr-scan-page,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-page {
  color: #fff9e9 !important;
  background: radial-gradient(circle at 14% 8%, rgba(215, 168, 63, 0.18), transparent 30%), radial-gradient(circle at 86% 12%, rgba(127, 83, 18, 0.2), transparent 34%), linear-gradient(135deg, #000000 0%, #100d08 46%, #030201 100%) !important;
}

html[data-theme="black"][data-theme-variant="black-gold"] .admin-card,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-panel,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-form,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-tablet-control,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-tablet-row,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-style-layout,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-confirm-card,
html[data-theme="black"][data-theme-variant="black-gold"] .customer-panel,
html[data-theme="black"][data-theme-variant="black-gold"] .customer-step,
html[data-theme="black"][data-theme-variant="black-gold"] .customer-page .select-card,
html[data-theme="black"][data-theme-variant="black-gold"] .qr-display-panel,
html[data-theme="black"][data-theme-variant="black-gold"] .style-access-panel,
html[data-theme="black"][data-theme-variant="black-gold"] .qr-scan-panel,
html[data-theme="black"][data-theme-variant="black-gold"] .barber-page .setup-panel,
html[data-theme="black"][data-theme-variant="black-gold"] .barber-page .setup-employee-card,
html[data-theme="black"][data-theme-variant="black-gold"] .barber-page .queue-panel,
html[data-theme="black"][data-theme-variant="black-gold"] .barber-page .queue-header,
html[data-theme="black"][data-theme-variant="black-gold"] .barber-page .queue-item,
html[data-theme="black"][data-theme-variant="black-gold"] .barber-page .order-detail-panel,
html[data-theme="black"][data-theme-variant="black-gold"] .barber-page .order-detail,
html[data-theme="black"][data-theme-variant="black-gold"] .start-card {
  background: linear-gradient(150deg, rgba(255, 244, 187, 0.09), transparent 32%), linear-gradient(135deg, rgba(10, 8, 5, 0.98), rgba(27, 21, 10, 0.95)) !important;
  border-color: rgba(215, 168, 63, 0.45) !important;
  box-shadow: inset 0 1px 0 rgba(255, 244, 187, 0.12), 0 34px 90px rgba(0, 0, 0, 0.66), 0 0 42px rgba(215, 168, 63, 0.13) !important;
}

html[data-theme="black"][data-theme-variant="black-gold"] .admin-tabs,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-language-control,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-theme-mode-control,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-upload-choice,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-selected-card,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-style-slot,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-language-popover,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-hairstyle-card,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-tablet-brightness,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-form input,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-form textarea,
html[data-theme="black"][data-theme-variant="black-gold"] .customer-page .name-row input {
  color: #fff9e9 !important;
  background: rgba(16, 13, 8, 0.94) !important;
  border-color: rgba(215, 168, 63, 0.42) !important;
}

html[data-theme="black"][data-theme-variant="black-gold"] .eyebrow,
html[data-theme="black"][data-theme-variant="black-gold"] .customer-kicker,
html[data-theme="black"][data-theme-variant="black-gold"] .qr-display-kicker,
html[data-theme="black"][data-theme-variant="black-gold"] a,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-message.ok {
  color: #f3cf72 !important;
}

html[data-theme="black"][data-theme-variant="black-gold"] p,
html[data-theme="black"][data-theme-variant="black-gold"] small,
html[data-theme="black"][data-theme-variant="black-gold"] span,
html[data-theme="black"][data-theme-variant="black-gold"] .lead,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-language-control span,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-theme-mode-control span {
  color: #c8b991 !important;
}

html[data-theme="black"][data-theme-variant="black-gold"] .admin-theme-mode-button.is-active,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-primary-button,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-secondary-button,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-logo-button,
html[data-theme="black"][data-theme-variant="black-gold"] .main-button,
html[data-theme="black"][data-theme-variant="black-gold"] .style-access-button,
html[data-theme="black"][data-theme-variant="black-gold"] .qr-scan-button,
html[data-theme="black"][data-theme-variant="black-gold"] .customer-page .send-order-button:not(:disabled),
html[data-theme="black"][data-theme-variant="black-gold"] .style-modal-button.choose,
html[data-theme="black"][data-theme-variant="black-gold"] .barber-page .barber-action-button {
  color: #1a1204 !important;
  background: linear-gradient(135deg, #fff0a8, #d7a83f 52%, #8f6517) !important;
  border-color: rgba(255, 228, 142, 0.72) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36), 0 20px 44px rgba(215, 168, 63, 0.3) !important;
}

html[data-theme="black"][data-theme-variant="black-gold"] .admin-danger-button,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-logo-button.danger {
  color: #fff7e3 !important;
  background: linear-gradient(135deg, #7f1d1d, #3f0f0f) !important;
  border-color: rgba(248, 113, 113, 0.36) !important;
}

/* Barber tablet image framing v57: keep the selected hairstyle photo full-size like the original tablet view. */
@media (min-width: 981px) and (orientation: landscape) {
  .barber-page .order-detail-panel {
    position: relative !important;
    overflow: hidden !important;
    padding: 0 !important;
  }

  .barber-page .detail-topbar {
    position: absolute !important;
    top: clamp(32px, 4vh, 48px) !important;
    left: clamp(42px, 4vw, 72px) !important;
    right: clamp(18px, 2vw, 32px) !important;
    z-index: 7 !important;
    margin: 0 !important;
  }

  .barber-page .order-detail {
    min-height: 100vh !important;
    height: 100vh !important;
    padding: 0 !important;
  }

  .barber-page .main-style-image {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
  }

  .barber-page .main-style-image > .main-style-layer {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }
}

html[data-theme="black"][data-theme-variant="black-gold"] .admin-section-tab.is-active,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-language-current,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-language-option.is-active,
html[data-theme="black"][data-theme-variant="black-gold"] .customer-page .select-card.is-selected {
  color: #1a1204 !important;
  background: linear-gradient(135deg, #fff0a8, #d7a83f 58%, #a7771e) !important;
  border-color: rgba(255, 228, 142, 0.72) !important;
}

/* Admin phone layout v1: stable Chrome/Safari mobile rendering. */
@media (max-width: 720px), (pointer: coarse) and (max-width: 900px) {
  html,
  body.admin-page {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100svh !important;
    overflow-x: hidden !important;
    -webkit-text-size-adjust: 100%;
  }

  body.admin-page {
    padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px) !important;
    background: #edf3fb !important;
  }

  .admin-page .admin-shell {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 10px !important;
  }

  .admin-page .admin-login,
  .admin-page .admin-dashboard {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 14px !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 34px rgba(23, 37, 84, 0.10) !important;
  }

  .admin-page .admin-login {
    margin-top: max(12px, env(safe-area-inset-top, 0px)) !important;
  }

  .admin-page .admin-header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: start !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
  }

  .admin-page .admin-header h1,
  .admin-page .admin-login h1 {
    font-size: clamp(28px, 9vw, 38px) !important;
    line-height: 1.05 !important;
  }

  .admin-page .eyebrow {
    margin-bottom: 6px !important;
    font-size: 12px !important;
  }

  .admin-page .lead,
  .admin-page .admin-login .lead {
    margin: 10px 0 18px !important;
    font-size: 16px !important;
    line-height: 1.35 !important;
  }

  .admin-page .admin-header-actions {
    width: auto !important;
    max-width: 132px !important;
    display: grid !important;
    justify-items: stretch !important;
    gap: 8px !important;
    margin-left: 0 !important;
  }

  .admin-page .admin-logo-manager,
  .admin-page .admin-logo-preview {
    width: 100% !important;
    max-width: 132px !important;
  }

  .admin-page .admin-logo-preview {
    height: 82px !important;
    min-height: 82px !important;
    padding: 8px !important;
    border-radius: 10px !important;
  }

  .admin-page .admin-logo-preview img {
    inset: 8px !important;
    width: calc(100% - 16px) !important;
    height: calc(100% - 16px) !important;
    object-fit: contain !important;
  }

  .admin-page .admin-logo-preview span,
  .admin-page .admin-logo-glass {
    display: none !important;
  }

  .admin-page .admin-section-nav {
    position: sticky !important;
    top: env(safe-area-inset-top, 0px) !important;
    z-index: 20 !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    margin: 0 -4px 12px !important;
    padding: 8px 4px 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x proximity !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: 10px !important;
  }

  .admin-page .admin-section-tab,
  .admin-page .admin-nav-reload-button {
    flex: 0 0 auto !important;
    min-height: 44px !important;
    padding: 0 14px !important;
    scroll-snap-align: start !important;
    white-space: nowrap !important;
    border-radius: 9px !important;
    font-size: 14px !important;
  }

  .admin-page .admin-layout,
  .admin-page .admin-style-layout,
  .admin-page .admin-settings-panel form,
  .admin-page .admin-panel[data-admin-section="security"] form {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .admin-page .admin-panel,
  .admin-page .admin-panel[data-admin-section="team"],
  .admin-page .admin-style-panel,
  .admin-page .admin-settings-panel,
  .admin-page .admin-panel[data-admin-section="security"],
  .admin-page .admin-qr-panel,
  .admin-page .admin-panel.admin-tablet-panel {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 14px !important;
    background: #f8fbff !important;
    border: 1px solid #d9e3f2 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
  }

  .admin-page .admin-panel[data-admin-section="team"] + .admin-panel[data-admin-section="team"],
  .admin-page .admin-style-layout > div {
    border-left: 0 !important;
    border-right: 0 !important;
  }

  .admin-page .admin-panel-heading,
  .admin-page .admin-tablet-control-head,
  .admin-page .admin-design-logo-control,
  .admin-page .admin-language-control,
  .admin-page .admin-theme-mode-control {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: stretch !important;
  }

  .admin-page .admin-panel h2,
  .admin-page .admin-style-layout h3,
  .admin-page .admin-tablet-card h3,
  .admin-page .admin-tablet-control h3 {
    font-size: 20px !important;
    line-height: 1.15 !important;
  }

  .admin-page .admin-form {
    gap: 10px !important;
  }

  .admin-page .admin-hairstyle-form {
    grid-template-columns: minmax(0, 1fr) !important;
    column-gap: 0 !important;
  }

  .admin-page .admin-form input[type="email"],
  .admin-page .admin-form input[type="password"],
  .admin-page .admin-form input[type="tel"],
  .admin-page .admin-form input[type="text"],
  .admin-page .admin-form input[type="file"],
  .admin-page .admin-form textarea,
  .admin-page .admin-tablet-fields input[type="text"],
  .admin-page .admin-tablet-fields input[type="number"] {
    min-height: 48px !important;
    font-size: 16px !important;
    border-radius: 10px !important;
  }

  .admin-page .admin-primary-button,
  .admin-page .admin-secondary-button,
  .admin-page .admin-danger-button,
  .admin-page .admin-link-button,
  .admin-page .admin-logo-button,
  .admin-page .admin-theme-mode-button,
  .admin-page .admin-language-current,
  .admin-page .admin-language-close,
  .admin-page .admin-language-option,
  .admin-page .admin-tablet-row-actions button,
  .admin-page .admin-tablet-actions button {
    min-height: 46px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 12px !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    white-space: normal !important;
  }

  .admin-page .admin-actions,
  .admin-page .admin-style-actions,
  .admin-page .admin-confirm-actions,
  .admin-page .admin-tablet-actions,
  .admin-page .admin-tablet-row-actions,
  .admin-page .admin-design-logo-actions,
  .admin-page .admin-theme-mode-buttons {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .admin-page .admin-employee-list,
  .admin-page .admin-hairstyle-list,
  .admin-page .admin-tablet-list {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .admin-page .admin-employee-item,
  .admin-page .admin-hairstyle-item,
  .admin-page .admin-selected-card,
  .admin-page .admin-tablet-row {
    width: 100% !important;
    min-width: 0 !important;
    padding: 10px !important;
    border-radius: 10px !important;
  }

  .admin-page .admin-hairstyle-item {
    grid-template-columns: auto 58px minmax(0, 1fr) auto !important;
    gap: 8px !important;
  }

  .admin-page .admin-hairstyle-thumb {
    width: 58px !important;
    height: 58px !important;
    border-radius: 8px !important;
  }

  .admin-page .admin-mini-avatar {
    width: 46px !important;
    height: 46px !important;
  }

  .admin-page .admin-avatar-large,
  .admin-page .admin-avatar-placeholder {
    width: 76px !important;
    height: 76px !important;
  }

  .admin-page .admin-upload-choice {
    min-height: 72px !important;
    grid-template-columns: 44px minmax(0, 1fr) !important;
    padding: 10px !important;
    text-align: left !important;
  }

  .admin-page .admin-preview-box,
  .admin-page .admin-style-preview-main {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 4 / 3 !important;
    max-height: min(62svh, 340px) !important;
    border-radius: 10px !important;
  }

  .admin-page .admin-style-preview-main img,
  .admin-page .admin-preview-box img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: contain !important;
  }

  .admin-page .admin-style-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .admin-page .admin-style-slot {
    min-width: 0 !important;
    padding: 8px !important;
    border-radius: 10px !important;
  }

  .admin-page .admin-style-slot-preview {
    aspect-ratio: 1 / 1 !important;
  }

  .admin-page .admin-style-slot-actions {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .admin-page .admin-qr-frame {
    height: min(78svh, 640px) !important;
    min-height: 420px !important;
    border-radius: 10px !important;
  }

  .admin-page .admin-language-popover,
  .admin-page .admin-confirm-card,
  .admin-page .admin-password-reset-card {
    width: min(100%, calc(100vw - 28px)) !important;
    max-width: calc(100vw - 28px) !important;
    max-height: calc(100svh - 28px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: 12px !important;
  }

  .admin-page .admin-tablet-fields,
  .admin-page .admin-tablet-row-actions,
  .admin-page .admin-tablet-brightness,
  .admin-page .admin-tablet-single-brightness {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Admin viewport guard v3: keep login/dashboard inside the visible browser width. */
.admin-page {
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

.admin-page .admin-shell {
  max-width: min(1180px, 100vw) !important;
  overflow-x: hidden !important;
}

.admin-page .admin-login,
.admin-page .admin-dashboard {
  max-width: calc(100vw - 20px) !important;
}

.admin-page .admin-login .lead,
.admin-page .admin-message,
.admin-page .admin-empty {
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
}

@media (max-width: 390px) {
  .admin-page .admin-shell {
    padding: 6px !important;
  }

  .admin-page .admin-login,
  .admin-page .admin-dashboard,
  .admin-page .admin-panel,
  .admin-page .admin-panel[data-admin-section="team"],
  .admin-page .admin-style-panel,
  .admin-page .admin-settings-panel,
  .admin-page .admin-panel[data-admin-section="security"],
  .admin-page .admin-qr-panel,
  .admin-page .admin-panel.admin-tablet-panel {
    padding: 10px !important;
  }

  .admin-page .admin-header {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .admin-page .admin-header-actions {
    max-width: 100% !important;
    width: 100% !important;
    grid-template-columns: 92px minmax(0, 1fr) !important;
    align-items: center !important;
  }

  .admin-page .admin-logo-preview {
    max-width: 92px !important;
    height: 58px !important;
    min-height: 58px !important;
  }

  .admin-page .admin-style-slots {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Admin phone layout v2: hard stop any horizontal overflow in mobile browsers. */
@media (max-width: 720px), (pointer: coarse) and (max-width: 900px) {
  .admin-page,
  .admin-page * {
    max-width: 100% !important;
  }

  .admin-page .admin-shell {
    width: 100vw !important;
    max-width: 100vw !important;
    overflow-x: clip !important;
  }

  .admin-page .admin-login,
  .admin-page .admin-dashboard {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    overflow-x: hidden !important;
  }

  .admin-page .admin-login .lead,
  .admin-page .admin-message,
  .admin-page .admin-empty,
  .admin-page .admin-panel h2,
  .admin-page .admin-panel h3,
  .admin-page .admin-employee-item,
  .admin-page .admin-hairstyle-item,
  .admin-page .admin-selected-card,
  .admin-page button,
  .admin-page a,
  .admin-page label,
  .admin-page strong,
  .admin-page span,
  .admin-page small {
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  .admin-page .admin-password-wrap {
    width: 100% !important;
    min-width: 0 !important;
  }
}
/* Admin normal vertical scroll v5: pull-refresh lock stays customer-only. */
html.admin-scroll-page,
html:has(body.admin-page),
body.admin-page {
  height: auto !important;
  min-height: 100vh !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scrollbar-gutter: stable !important;
  overscroll-behavior-x: none !important;
  overscroll-behavior-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  position: static !important;
  touch-action: pan-y !important;
}

body.admin-page .admin-shell,
body.admin-page .admin-dashboard,
body.admin-page .admin-layout,
body.admin-page .admin-panel,
body.admin-page .admin-settings-panel,
body.admin-page .admin-style-panel {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: visible !important;
}

@media (max-width: 720px), (pointer: coarse) and (max-width: 900px) {
  html:has(body.admin-page),
  body.admin-page {
    height: auto !important;
    min-height: 100dvh !important;
    max-height: none !important;
    overflow-y: auto !important;
    overscroll-behavior-y: auto !important;
    position: static !important;
    touch-action: pan-y !important;
  }

  body.admin-page .admin-shell,
  body.admin-page .admin-dashboard,
  body.admin-page .admin-layout,
  body.admin-page .admin-panel,
  body.admin-page .admin-settings-panel,
  body.admin-page .admin-style-panel {
    height: auto !important;
    max-height: none !important;
    overflow-y: visible !important;
  }
}
/* Customer mobile send tap guard: keep submit above carousel touch layers. */
.customer-page .send-step,
body.customer-native-phone-view .customer-page .send-step {
  position: relative;
  z-index: 200 !important;
}

.customer-page .send-order-button,
body.customer-native-phone-view .customer-page .send-order-button {
  position: relative;
  z-index: 201 !important;
  pointer-events: auto !important;
  touch-action: manipulation;
}

/* Customer order warning modal v1 */
.customer-order-confirm {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(10, 14, 20, 0.58);
  backdrop-filter: blur(6px);
}

.customer-order-confirm-card {
  position: relative;
  width: min(440px, calc(100vw - 36px));
  border-radius: 22px;
  background: #ffffff;
  color: #111827;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.35);
  padding: 24px;
}

.customer-order-confirm-card h2 {
  margin: 0;
  font-size: clamp(1.35rem, 7vw, 1.9rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.customer-install-heading {
  display: block;
  padding-right: 78px;
  margin-bottom: 12px;
}

.customer-install-logo {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 62px;
  height: 62px;
  padding: 6px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid rgba(15, 143, 120, 0.18);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.customer-order-confirm-card p {
  margin: 0;
  color: #374151;
  font-size: clamp(1rem, 4.8vw, 1.2rem);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.customer-privacy-card {
  display: grid;
  gap: 14px;
}

.customer-privacy-card h2 {
  color: #111827;
}

.customer-privacy-card .customer-privacy-detail {
  padding: 12px 14px;
  border: 1px solid rgba(15, 143, 120, 0.22);
  border-radius: 14px;
  background: rgba(15, 143, 120, 0.08);
  color: #334155;
  font-size: clamp(0.92rem, 4vw, 1.05rem);
}

.customer-install-dismiss-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 0;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  cursor: pointer;
}

.customer-install-dismiss-choice input {
  width: 18px;
  height: 18px;
  min-width: 18px;
  accent-color: #0f947e;
}

.customer-install-dismiss-choice span {
  min-width: 0;
}

.customer-order-confirm-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.customer-order-confirm-actions.single {
  grid-template-columns: minmax(0, 1fr);
}

.customer-order-confirm-button {
  min-height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(15, 143, 120, 0.2);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.customer-order-confirm-button.cancel {
  background: #f3f4f6;
  color: #374151;
}

.customer-order-confirm-button.ok {
  background: #0f8f78;
  color: #ffffff;
}

/* Barber no-show confirm modal v1 */
.barber-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 30000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(6px);
}

.barber-confirm-modal.is-visible {
  display: flex;
}

.barber-confirm-card {
  width: min(92vw, 460px);
  padding: 26px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.26);
  color: #17201c;
}

.barber-confirm-title {
  margin: 0 0 10px;
  color: #17201c;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 900;
}

.barber-confirm-message {
  margin: 0;
  color: #52675e;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
}

.barber-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.barber-confirm-button {
  min-width: 132px;
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  padding: 13px 18px;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.barber-confirm-button.cancel {
  background: #e8eef5;
  color: #17201c;
}

.barber-confirm-button.ok {
  background: #0f8f78;
  color: #ffffff;
}

.barber-confirm-button.ok.danger {
  background: #b91c1c;
}

.barber-confirm-button:focus-visible {
  outline: 3px solid rgba(15, 143, 120, 0.28);
  outline-offset: 3px;
}

html[data-theme="black"] .barber-confirm-card,
html[data-theme="black"][data-theme-variant="black-gold"] .barber-confirm-card {
  background: #111827;
  border-color: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
}

html[data-theme="black"] .barber-confirm-title,
html[data-theme="black"][data-theme-variant="black-gold"] .barber-confirm-title {
  color: #f8fafc;
}

html[data-theme="black"] .barber-confirm-message,
html[data-theme="black"][data-theme-variant="black-gold"] .barber-confirm-message {
  color: #cbd5e1;
}

@media (max-width: 560px) {
  .barber-confirm-card {
    padding: 22px;
  }

  .barber-confirm-actions {
    flex-direction: column-reverse;
  }

  .barber-confirm-button {
    width: 100%;
  }
}

html[data-theme="black"] .customer-order-confirm-card {
  background: #171717;
  color: #f9fafb;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

html[data-theme="black"] .customer-order-confirm-card p {
  color: #d1d5db;
}

html[data-theme="black"] .customer-privacy-card h2 {
  color: #f9fafb;
}

html[data-theme="black"] .customer-privacy-card .customer-privacy-detail {
  border-color: rgba(15, 143, 120, 0.36);
  background: rgba(15, 143, 120, 0.14);
  color: #d1d5db;
}

html[data-theme="black"] .customer-install-dismiss-choice {
  color: #e5e7eb;
}

html[data-theme="black"] .customer-order-confirm-button.cancel {
  background: #262626;
  color: #f3f4f6;
  border-color: rgba(255, 255, 255, 0.14);
}

html[data-theme="black"] .customer-install-logo {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
}

@media (max-width: 420px) {
  .customer-order-confirm {
    padding: 16px;
  }

  .customer-order-confirm-card {
    width: min(100%, calc(100vw - 28px));
    padding: 20px;
    border-radius: 20px;
  }

  .customer-order-confirm-actions {
    gap: 10px;
  }

  .customer-install-logo {
    top: 18px;
    right: 18px;
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }
}
/* Admin QR flat embed v1: remove duplicate frames around the embedded QR preview. */
.admin-page .admin-qr-panel {
  padding-bottom: 18px !important;
}

.admin-page .admin-qr-frame {
  height: clamp(500px, 64vh, 680px) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.qr-display-page.is-admin-embed .qr-display-shell {
  padding: 0 !important;
}

.qr-display-page.is-admin-embed .qr-display-panel {
  max-width: 900px !important;
  border: 0 !important;
  border-radius: 12px !important;
  padding: clamp(12px, 2vw, 22px) !important;
  background: transparent !important;
}

@media (max-width: 780px) {
  .admin-qr-frame {
    height: 820px !important;
    max-height: none !important;
    pointer-events: auto !important;
    touch-action: pan-y !important;
    overflow: hidden !important;
  }

  .qr-display-page.is-admin-embed .qr-display-panel {
    gap: 8px !important;
    padding: 8px !important;
  }

  .qr-display-page.is-admin-embed .qr-display-action {
    order: 2 !important;
  }

  .qr-display-page.is-admin-embed .qr-display-copy {
    order: 1 !important;
  }

  .qr-display-page.is-admin-embed .qr-display-logo {
    width: 48px !important;
    height: 48px !important;
    margin-bottom: 6px !important;
  }

  .qr-display-page.is-admin-embed .customer-kicker {
    font-size: 11px !important;
    line-height: 1.1 !important;
    margin-bottom: 4px !important;
  }

  .qr-display-page.is-admin-embed .qr-display-panel h1 {
    font-size: 30px !important;
    line-height: 1 !important;
    margin: 2px 0 6px !important;
  }

  .qr-display-page.is-admin-embed .qr-display-instructions {
    max-width: 290px !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    margin-bottom: 8px !important;
  }

  .qr-display-page.is-admin-embed .qr-display-language-control {
    width: 154px !important;
    margin-bottom: 6px !important;
  }

  .qr-display-page.is-admin-embed .qr-display-language-switch {
    width: 154px !important;
    max-width: 154px !important;
  }

  .qr-display-page.is-admin-embed .qr-display-language-switch button {
    width: 42px !important;
    height: 32px !important;
    min-width: 42px !important;
    font-size: 18px !important;
  }

  .qr-display-page.is-admin-embed .qr-display-code {
    width: min(100%, 58vw, 220px) !important;
    max-width: 220px !important;
    padding: 8px !important;
  }

  .qr-display-page.is-admin-embed .qr-display-scan-label {
    width: min(100%, 240px) !important;
    min-height: 40px !important;
    font-size: 13px !important;
    margin-top: 8px !important;
  }
}
/* Customer sessions accordion v1 */
.admin-page .admin-customer-session-row {
  gap: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.admin-page .admin-customer-session-summary {
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 1.2fr .5fr .55fr 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.admin-page .admin-customer-session-summary span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.admin-page .admin-customer-session-summary b {
  color: var(--sarko-muted, #64748b);
  font-size: 12px;
  line-height: 1;
}

.admin-page .admin-customer-session-summary strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.admin-page .admin-customer-session-summary em {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(15, 143, 120, .1);
  color: #08705f;
  font-style: normal;
  font-weight: 900;
  transition: transform .18s ease;
}

.admin-page .admin-customer-session-row.is-open .admin-customer-session-summary em {
  transform: rotate(180deg);
}

.admin-page .admin-customer-session-details {
  display: none;
  padding: 0 14px 14px;
}

.admin-page .admin-customer-session-row.is-open .admin-customer-session-details {
  display: block;
}

@media (max-width: 720px) {
  .admin-page .admin-customer-session-summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .admin-page .admin-customer-session-summary span:nth-child(n+3) {
    display: none;
  }
}
.admin-page .admin-customer-session-toggle-label {
  min-width: 82px;
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(15, 143, 120, .1);
  color: #08705f;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.admin-page .admin-customer-session-row.is-open .admin-customer-session-toggle-label {
  background: rgba(239, 68, 68, .12);
  color: #b91c1c;
}
.admin-page .admin-customer-session-heading {
  align-items: flex-start;
  flex-wrap: wrap;
}

.admin-page .admin-customer-session-heading > div:first-child {
  min-width: 220px;
  flex: 1 1 260px;
}

.admin-page .admin-customer-session-heading .admin-tablet-head-actions {
  flex: 1 1 280px !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  min-width: 0 !important;
}

.admin-page .admin-customer-session-heading .admin-secondary-button,
.admin-page .admin-customer-session-heading .admin-danger-button.compact {
  min-height: 42px !important;
  max-width: 100% !important;
  padding: 0 14px !important;
  font-size: 14px !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}

@media (max-width: 720px) {
  .admin-page .admin-customer-session-heading .admin-tablet-head-actions {
    justify-content: stretch !important;
  }

  .admin-page .admin-customer-session-heading .admin-secondary-button,
  .admin-page .admin-customer-session-heading .admin-danger-button.compact {
    flex: 1 1 100% !important;
  }
}
.admin-page .admin-customer-session-note {
  margin-top: 4px !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  color: #7f1d1d !important;
}
.admin-page .admin-customer-session-message {
  width: 100%;
  margin: 14px auto 0 !important;
  text-align: center !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
}

.admin-page .admin-customer-session-message.is-hidden {
  display: none !important;
}

/* Admin design panel final: remove outer wrapper box around shop customization. */
.admin-page .admin-settings-panel[data-admin-section="design"] {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.admin-page .admin-settings-panel[data-admin-section="design"] > h2 {
  margin-top: 0 !important;
}
/* Black-gold strict palette v1: only black, gold and white in admin theme. */
html[data-theme="black"][data-theme-variant="black-gold"] {
  --sarko-primary: #d8aa3d !important;
  --sarko-primary-dark: #a87918 !important;
  --sarko-gold: #f2d06b !important;
  --bg: #000000 !important;
  --surface: #070707 !important;
  --text: #ffffff !important;
  --muted: #d8d8d8 !important;
  --border: rgba(242, 208, 107, 0.55) !important;
}

html[data-theme="black"][data-theme-variant="black-gold"] body,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-page {
  color: #ffffff !important;
  background: #000000 !important;
}

html[data-theme="black"][data-theme-variant="black-gold"] .admin-dashboard,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-header,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-card,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-panel,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-form,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-tabs,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-section-nav,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-design-logo-control,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-language-control,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-theme-mode-control,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-no-style-control,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-no-style-card,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-style-slot,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-tablet-control,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-tablet-row,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-confirm-card,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-language-popover,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-hairstyle-card,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-upload-choice,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-selected-card {
  color: #ffffff !important;
  background: #070707 !important;
  border-color: rgba(242, 208, 107, 0.55) !important;
  box-shadow: none !important;
}

html[data-theme="black"][data-theme-variant="black-gold"] .admin-settings-panel[data-admin-section="design"] {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html[data-theme="black"][data-theme-variant="black-gold"] h1,
html[data-theme="black"][data-theme-variant="black-gold"] h2,
html[data-theme="black"][data-theme-variant="black-gold"] h3,
html[data-theme="black"][data-theme-variant="black-gold"] strong,
html[data-theme="black"][data-theme-variant="black-gold"] label,
html[data-theme="black"][data-theme-variant="black-gold"] p,
html[data-theme="black"][data-theme-variant="black-gold"] small,
html[data-theme="black"][data-theme-variant="black-gold"] span {
  color: #ffffff !important;
}

html[data-theme="black"][data-theme-variant="black-gold"] .eyebrow,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-message.ok,
html[data-theme="black"][data-theme-variant="black-gold"] a {
  color: #f2d06b !important;
}

html[data-theme="black"][data-theme-variant="black-gold"] .admin-form input,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-form textarea,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-form select {
  color: #ffffff !important;
  background: #000000 !important;
  border-color: rgba(242, 208, 107, 0.65) !important;
  box-shadow: none !important;
}

html[data-theme="black"][data-theme-variant="black-gold"] .admin-primary-button,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-secondary-button,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-logo-button,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-danger-button,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-logo-button.danger,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-section-tab.is-active,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-language-current,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-language-option.is-active,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-theme-mode-button.is-active {
  color: #000000 !important;
  background: linear-gradient(135deg, #fff7c2 0%, #f2d06b 48%, #b8861e 100%) !important;
  border-color: #f2d06b !important;
  box-shadow: none !important;
}

html[data-theme="black"][data-theme-variant="black-gold"] .admin-section-tab,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-theme-mode-button,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-language-option,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-language-current:not(.is-active) {
  color: #ffffff !important;
  background: #000000 !important;
  border-color: rgba(242, 208, 107, 0.55) !important;
  box-shadow: none !important;
}

html[data-theme="black"][data-theme-variant="black-gold"] .admin-no-style-preview,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-style-slot-preview,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-logo-preview,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-avatar-placeholder,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-mini-avatar,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-avatar-large {
  background: #ffffff !important;
  border-color: rgba(242, 208, 107, 0.65) !important;
  box-shadow: none !important;
}
/* Admin black-white strict palette v1: remove gold from the black theme UI. */
html[data-theme="black"][data-theme-variant="black-gold"] {
  --sarko-primary: #ffffff !important;
  --sarko-primary-dark: #ffffff !important;
  --sarko-gold: #ffffff !important;
  --bg: #000000 !important;
  --surface: #050505 !important;
  --text: #ffffff !important;
  --muted: #d7d7d7 !important;
  --border: rgba(255, 255, 255, 0.42) !important;
}

html[data-theme="black"][data-theme-variant="black-gold"] body,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-page {
  color: #ffffff !important;
  background: #000000 !important;
}

html[data-theme="black"][data-theme-variant="black-gold"] .admin-dashboard,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-header,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-card,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-panel,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-form,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-tabs,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-section-nav,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-design-logo-control,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-language-control,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-theme-mode-control,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-no-style-control,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-no-style-card,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-style-slot,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-tablet-control,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-tablet-row,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-confirm-card,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-language-popover,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-hairstyle-card,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-upload-choice,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-selected-card {
  color: #ffffff !important;
  background: #050505 !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  box-shadow: none !important;
}

html[data-theme="black"][data-theme-variant="black-gold"] h1,
html[data-theme="black"][data-theme-variant="black-gold"] h2,
html[data-theme="black"][data-theme-variant="black-gold"] h3,
html[data-theme="black"][data-theme-variant="black-gold"] strong,
html[data-theme="black"][data-theme-variant="black-gold"] label,
html[data-theme="black"][data-theme-variant="black-gold"] p,
html[data-theme="black"][data-theme-variant="black-gold"] small,
html[data-theme="black"][data-theme-variant="black-gold"] span,
html[data-theme="black"][data-theme-variant="black-gold"] .eyebrow,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-message.ok,
html[data-theme="black"][data-theme-variant="black-gold"] a {
  color: #ffffff !important;
}

html[data-theme="black"][data-theme-variant="black-gold"] .admin-form input,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-form textarea,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-form select,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-section-tab,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-theme-mode-button,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-language-option,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-language-current:not(.is-active) {
  color: #ffffff !important;
  background: #000000 !important;
  border-color: rgba(255, 255, 255, 0.42) !important;
  box-shadow: none !important;
}

html[data-theme="black"][data-theme-variant="black-gold"] .admin-primary-button,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-secondary-button,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-logo-button,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-danger-button,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-logo-button.danger,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-section-tab.is-active,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-language-current,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-language-option.is-active,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-theme-mode-button.is-active {
  color: #000000 !important;
  background: #ffffff !important;
  border-color: #ffffff !important;
  box-shadow: none !important;
}

html[data-theme="black"][data-theme-variant="black-gold"] .admin-theme-mode-button.gold::before {
  background: #ffffff !important;
  box-shadow: none !important;
}

html[data-theme="black"][data-theme-variant="black-gold"] .admin-no-style-preview,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-style-slot-preview,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-logo-preview,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-avatar-placeholder,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-mini-avatar,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-avatar-large {
  background: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  box-shadow: none !important;
}
/* Admin black-white gray contours v1: light gray borders, no gold outlines. */
html[data-theme="black"][data-theme-variant="black-gold"] {
  --border: #cfcfcf !important;
}

html[data-theme="black"][data-theme-variant="black-gold"] .admin-dashboard,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-header,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-card,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-panel,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-form,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-tabs,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-section-nav,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-design-logo-control,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-language-control,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-theme-mode-control,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-no-style-control,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-no-style-card,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-style-slot,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-section-tab,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-theme-mode-button,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-language-option,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-language-current,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-primary-button,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-secondary-button,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-logo-button,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-danger-button,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-form input,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-form textarea,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-form select,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-no-style-preview,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-style-slot-preview,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-logo-preview,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-avatar-placeholder,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-mini-avatar,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-avatar-large {
  border-color: #cfcfcf !important;
}
/* Admin nav single-row reload v1: keep reload button on the tab row on desktop. */
@media (min-width: 901px) {
  .admin-page .admin-section-nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px !important;
    overflow: visible !important;
  }

  .admin-page .admin-section-tab {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    white-space: nowrap !important;
  }

  .admin-page .admin-nav-reload-button {
    flex: 0 0 auto !important;
    margin-left: 0 !important;
    white-space: nowrap !important;
    align-self: center !important;
  }
}
/* Admin modern black elegant v1: calmer black/white UI with fewer visible lines. */
html[data-theme="black"][data-theme-variant="black-gold"] {
  --sarko-primary: #ffffff !important;
  --sarko-primary-dark: #ffffff !important;
  --sarko-gold: #ffffff !important;
  --bg: #000000 !important;
  --surface: #0a0a0a !important;
  --text: #ffffff !important;
  --muted: #bdbdbd !important;
  --border: rgba(255, 255, 255, 0.18) !important;
}

html[data-theme="black"][data-theme-variant="black-gold"] body,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-page {
  background: #000000 !important;
  color: #ffffff !important;
}

html[data-theme="black"][data-theme-variant="black-gold"] .admin-dashboard {
  background: #030303 !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.72) !important;
}

html[data-theme="black"][data-theme-variant="black-gold"] .admin-header {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html[data-theme="black"][data-theme-variant="black-gold"] .admin-section-nav {
  background: #111111 !important;
  border: 1px solid rgba(255, 255, 255, 0.20) !important;
  box-shadow: none !important;
}

html[data-theme="black"][data-theme-variant="black-gold"] .admin-settings-panel[data-admin-section="design"],
html[data-theme="black"][data-theme-variant="black-gold"] .admin-form {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html[data-theme="black"][data-theme-variant="black-gold"] .admin-design-logo-control,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-language-control,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-theme-mode-control,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-no-style-control,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-no-style-card,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-upload-choice,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-selected-card,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-panel,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-card {
  background: #080808 !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  box-shadow: none !important;
}

html[data-theme="black"][data-theme-variant="black-gold"] .admin-section-tab,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-theme-mode-button,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-language-option,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-language-current:not(.is-active) {
  color: #ffffff !important;
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: none !important;
}

html[data-theme="black"][data-theme-variant="black-gold"] .admin-section-tab.is-active,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-theme-mode-button.is-active,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-language-current,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-language-option.is-active,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-primary-button,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-secondary-button,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-logo-button {
  color: #000000 !important;
  background: #ffffff !important;
  border-color: #ffffff !important;
  box-shadow: none !important;
}

html[data-theme="black"][data-theme-variant="black-gold"] .admin-danger-button,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-logo-button.danger {
  color: #ffffff !important;
  background: #555555 !important;
  border-color: #555555 !important;
  box-shadow: none !important;
}

html[data-theme="black"][data-theme-variant="black-gold"] .admin-form input,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-form textarea,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-form select {
  color: #ffffff !important;
  background: #000000 !important;
  border-color: rgba(255, 255, 255, 0.26) !important;
  box-shadow: none !important;
}

html[data-theme="black"][data-theme-variant="black-gold"] h1,
html[data-theme="black"][data-theme-variant="black-gold"] h2,
html[data-theme="black"][data-theme-variant="black-gold"] h3,
html[data-theme="black"][data-theme-variant="black-gold"] strong,
html[data-theme="black"][data-theme-variant="black-gold"] label {
  color: #ffffff !important;
}

html[data-theme="black"][data-theme-variant="black-gold"] p,
html[data-theme="black"][data-theme-variant="black-gold"] small,
html[data-theme="black"][data-theme-variant="black-gold"] span {
  color: #bdbdbd !important;
}

html[data-theme="black"][data-theme-variant="black-gold"] .admin-section-tab.is-active,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-theme-mode-button.is-active,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-language-current span,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-language-option.is-active span,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-primary-button span,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-secondary-button span,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-logo-button span {
  color: #000000 !important;
}

html[data-theme="black"][data-theme-variant="black-gold"] .admin-logo-preview {
  background: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  box-shadow: none !important;
}

html[data-theme="black"][data-theme-variant="black-gold"] .admin-no-style-preview,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-style-slot-preview,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-avatar-placeholder,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-mini-avatar,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-avatar-large {
  background: #f7f7f7 !important;
  border-color: rgba(255, 255, 255, 0.20) !important;
  box-shadow: none !important;
}
/* Customer mobile modern black no-lines v1: quieter phone UI in black theme. */
@media (max-width: 720px), (pointer: coarse) and (max-width: 900px) {
  html[data-theme="black"] .customer-page,
  html[data-theme="black"] body.customer-native-phone-view .customer-page,
  html[data-theme="black"][data-theme-variant="black-gold"] .customer-page,
  html[data-theme="black"][data-theme-variant="black-gold"] body.customer-native-phone-view .customer-page {
    background: #000000 !important;
    color: #ffffff !important;
  }

  html[data-theme="black"] .customer-page .customer-panel,
  html[data-theme="black"] body.customer-native-phone-view .customer-page .customer-panel,
  html[data-theme="black"][data-theme-variant="black-gold"] .customer-page .customer-panel,
  html[data-theme="black"][data-theme-variant="black-gold"] body.customer-native-phone-view .customer-page .customer-panel {
    background: #050505 !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  html[data-theme="black"] .customer-page .customer-header,
  html[data-theme="black"] .customer-page .customer-step,
  html[data-theme="black"] .customer-page .select-card,
  html[data-theme="black"] .customer-page .employee-card,
  html[data-theme="black"] .customer-page .hairstyle-card,
  html[data-theme="black"] .customer-page .customer-loop-track .employee-card,
  html[data-theme="black"] .customer-page .customer-loop-track .hairstyle-card,
  html[data-theme="black"] body.customer-native-phone-view .customer-page .customer-header,
  html[data-theme="black"] body.customer-native-phone-view .customer-page .customer-step,
  html[data-theme="black"] body.customer-native-phone-view .customer-page .select-card,
  html[data-theme="black"] body.customer-native-phone-view .customer-page .employee-card,
  html[data-theme="black"] body.customer-native-phone-view .customer-page .hairstyle-card,
  html[data-theme="black"] body.customer-native-phone-view .customer-page .customer-loop-track .employee-card,
  html[data-theme="black"] body.customer-native-phone-view .customer-page .customer-loop-track .hairstyle-card {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  html[data-theme="black"] .customer-page .employee-quick-button,
  html[data-theme="black"] body.customer-native-phone-view .customer-page .employee-quick-button,
  html[data-theme="black"] .customer-page .name-row input,
  html[data-theme="black"] body.customer-native-phone-view .customer-page .name-row input,
  html[data-theme="black"] .customer-page .camera-button,
  html[data-theme="black"] body.customer-native-phone-view .customer-page .camera-button {
    background: #0b0b0b !important;
    border-color: rgba(255,255,255,0.16) !important;
    box-shadow: none !important;
    color: #ffffff !important;
  }

  html[data-theme="black"] .customer-page .employee-card.is-selected .avatar-circle,
  html[data-theme="black"] body.customer-native-phone-view .customer-page .employee-card.is-selected .avatar-circle,
  html[data-theme="black"] .customer-page .hairstyle-card.is-selected .hairstyle-image,
  html[data-theme="black"] body.customer-native-phone-view .customer-page .hairstyle-card.is-selected .hairstyle-image {
    border-color: #ffffff !important;
    box-shadow: 0 0 0 2px #ffffff !important;
  }

  html[data-theme="black"] .customer-page .select-card.is-selected::after,
  html[data-theme="black"] body.customer-native-phone-view .customer-page .select-card.is-selected::after {
    background: #ffffff !important;
    color: #000000 !important;
    box-shadow: none !important;
  }

  html[data-theme="black"] .customer-page h1,
  html[data-theme="black"] .customer-page h2,
  html[data-theme="black"] .customer-page strong,
  html[data-theme="black"] body.customer-native-phone-view .customer-page h1,
  html[data-theme="black"] body.customer-native-phone-view .customer-page h2,
  html[data-theme="black"] body.customer-native-phone-view .customer-page strong {
    color: #ffffff !important;
  }

  html[data-theme="black"] .customer-page p,
  html[data-theme="black"] .customer-page small,
  html[data-theme="black"] .customer-page .privacy-note,
  html[data-theme="black"] body.customer-native-phone-view .customer-page p,
  html[data-theme="black"] body.customer-native-phone-view .customer-page small,
  html[data-theme="black"] body.customer-native-phone-view .customer-page .privacy-note {
    color: #bdbdbd !important;
  }
}
/* Customer mobile neutral black v1: remove yellow selection blocks and harsh contrast. */
@media (max-width: 720px), (pointer: coarse) and (max-width: 900px) {
  html[data-theme="black"] .customer-page .employee-card.is-selected,
  html[data-theme="black"] .customer-page .hairstyle-card.is-selected,
  html[data-theme="black"] body.customer-native-phone-view .customer-page .employee-card.is-selected,
  html[data-theme="black"] body.customer-native-phone-view .customer-page .hairstyle-card.is-selected,
  html[data-theme="black"][data-theme-variant="black-gold"] .customer-page .employee-card.is-selected,
  html[data-theme="black"][data-theme-variant="black-gold"] .customer-page .hairstyle-card.is-selected,
  html[data-theme="black"][data-theme-variant="black-gold"] body.customer-native-phone-view .customer-page .employee-card.is-selected,
  html[data-theme="black"][data-theme-variant="black-gold"] body.customer-native-phone-view .customer-page .hairstyle-card.is-selected {
    background: #111111 !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  html[data-theme="black"] .customer-page .employee-card.is-selected .avatar-circle,
  html[data-theme="black"] body.customer-native-phone-view .customer-page .employee-card.is-selected .avatar-circle,
  html[data-theme="black"] .customer-page .hairstyle-card.is-selected .hairstyle-image,
  html[data-theme="black"] body.customer-native-phone-view .customer-page .hairstyle-card.is-selected .hairstyle-image,
  html[data-theme="black"][data-theme-variant="black-gold"] .customer-page .employee-card.is-selected .avatar-circle,
  html[data-theme="black"][data-theme-variant="black-gold"] body.customer-native-phone-view .customer-page .employee-card.is-selected .avatar-circle,
  html[data-theme="black"][data-theme-variant="black-gold"] .customer-page .hairstyle-card.is-selected .hairstyle-image,
  html[data-theme="black"][data-theme-variant="black-gold"] body.customer-native-phone-view .customer-page .hairstyle-card.is-selected .hairstyle-image {
    border-color: #f4f4f4 !important;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.92) !important;
  }

  html[data-theme="black"] .customer-page .employee-card,
  html[data-theme="black"] .customer-page .hairstyle-card,
  html[data-theme="black"] .customer-page .customer-loop-track .employee-card,
  html[data-theme="black"] .customer-page .customer-loop-track .hairstyle-card,
  html[data-theme="black"] body.customer-native-phone-view .customer-page .employee-card,
  html[data-theme="black"] body.customer-native-phone-view .customer-page .hairstyle-card,
  html[data-theme="black"] body.customer-native-phone-view .customer-page .customer-loop-track .employee-card,
  html[data-theme="black"] body.customer-native-phone-view .customer-page .customer-loop-track .hairstyle-card {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  html[data-theme="black"] .customer-page .send-order-button:not(:disabled),
  html[data-theme="black"] body.customer-native-phone-view .customer-page .send-order-button:not(:disabled),
  html[data-theme="black"][data-theme-variant="black-gold"] .customer-page .send-order-button:not(:disabled),
  html[data-theme="black"][data-theme-variant="black-gold"] body.customer-native-phone-view .customer-page .send-order-button:not(:disabled) {
    color: #000000 !important;
    background: #ffffff !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  html[data-theme="black"] .customer-page .name-row input,
  html[data-theme="black"] body.customer-native-phone-view .customer-page .name-row input,
  html[data-theme="black"] .customer-page .camera-button,
  html[data-theme="black"] body.customer-native-phone-view .customer-page .camera-button {
    background: #0d0d0d !important;
    border-color: rgba(255,255,255,0.18) !important;
    box-shadow: none !important;
  }

  html[data-theme="black"] .customer-page .employee-queue-count,
  html[data-theme="black"] body.customer-native-phone-view .customer-page .employee-queue-count {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
    box-shadow: none !important;
  }

  html[data-theme="black"] .customer-page .employee-card strong,
  html[data-theme="black"] .customer-page .hairstyle-card strong,
  html[data-theme="black"] body.customer-native-phone-view .customer-page .employee-card strong,
  html[data-theme="black"] body.customer-native-phone-view .customer-page .hairstyle-card strong {
    color: #ffffff !important;
    text-shadow: none !important;
  }
}
/* Customer mobile neutral black modal v1: style/photo popups match black-white phone UI. */
@media (max-width: 720px), (pointer: coarse) and (max-width: 900px) {
  html[data-theme="black"] .style-modal-card,
  html[data-theme="black"] .photo-modal-card,
  html[data-theme="black"] body.customer-native-phone-view .style-modal-card,
  html[data-theme="black"] body.customer-native-phone-view .photo-modal-card,
  html[data-theme="black"][data-theme-variant="black-gold"] .style-modal-card,
  html[data-theme="black"][data-theme-variant="black-gold"] .photo-modal-card,
  html[data-theme="black"][data-theme-variant="black-gold"] body.customer-native-phone-view .style-modal-card,
  html[data-theme="black"][data-theme-variant="black-gold"] body.customer-native-phone-view .photo-modal-card {
    background: #080808 !important;
    border: 1px solid rgba(255,255,255,0.16) !important;
    box-shadow: 0 24px 80px rgba(0,0,0,0.75) !important;
  }

  html[data-theme="black"] .style-modal-main,
  html[data-theme="black"] body.customer-native-phone-view .style-modal-main,
  html[data-theme="black"] .style-thumb,
  html[data-theme="black"] body.customer-native-phone-view .style-thumb,
  html[data-theme="black"] .photo-preview-box,
  html[data-theme="black"] body.customer-native-phone-view .photo-preview-box {
    background: #111111 !important;
    border-color: rgba(255,255,255,0.14) !important;
    box-shadow: none !important;
  }

  html[data-theme="black"] .style-thumb.is-active,
  html[data-theme="black"] body.customer-native-phone-view .style-thumb.is-active {
    border-color: #ffffff !important;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.72) !important;
  }

  html[data-theme="black"] .style-modal-button.choose,
  html[data-theme="black"] body.customer-native-phone-view .style-modal-button.choose,
  html[data-theme="black"] .photo-modal-button.choose,
  html[data-theme="black"] body.customer-native-phone-view .photo-modal-button.choose {
    color: #000000 !important;
    background: #ffffff !important;
    border-color: #ffffff !important;
    box-shadow: none !important;
  }

  html[data-theme="black"] .style-modal-button.close,
  html[data-theme="black"] body.customer-native-phone-view .style-modal-button.close,
  html[data-theme="black"] .photo-modal-button.close,
  html[data-theme="black"] body.customer-native-phone-view .photo-modal-button.close,
  html[data-theme="black"] .photo-source-button,
  html[data-theme="black"] body.customer-native-phone-view .photo-source-button {
    color: #ffffff !important;
    background: #151515 !important;
    border: 1px solid rgba(255,255,255,0.24) !important;
    box-shadow: none !important;
  }

  html[data-theme="black"] .style-modal-nav,
  html[data-theme="black"] body.customer-native-phone-view .style-modal-nav {
    color: #000000 !important;
    background: #ffffff !important;
    border-color: #ffffff !important;
    box-shadow: none !important;
  }
}
/* Customer mobile neutral black success popup v1: compact centered post-order dialog. */
@media (max-width: 720px), (pointer: coarse) and (max-width: 900px) {
  html[data-theme="black"] .customer-page .customer-success-popup,
  html[data-theme="black"] body.customer-native-phone-view .customer-page .customer-success-popup {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 10040 !important;
    width: min(330px, calc(100vw - 36px)) !important;
    max-width: 330px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 18px 16px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    align-items: center !important;
    gap: 10px !important;
    overflow: visible !important;
    color: #ffffff !important;
    text-align: center !important;
    background: #080808 !important;
    border: 1px solid rgba(255,255,255,0.16) !important;
    border-radius: 18px !important;
    box-shadow: 0 28px 90px rgba(0,0,0,0.78) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translate(-50%, calc(-50% + 12px)) scale(0.98) !important;
    transition: opacity 160ms ease, transform 160ms ease !important;
  }

  html[data-theme="black"] .customer-page .customer-success-popup.is-visible,
  html[data-theme="black"] body.customer-native-phone-view .customer-page .customer-success-popup.is-visible {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translate(-50%, -50%) scale(1) !important;
  }

  html[data-theme="black"] .customer-page .customer-success-popup::before,
  html[data-theme="black"] body.customer-native-phone-view .customer-page .customer-success-popup::before {
    content: none !important;
    display: none !important;
  }

  html[data-theme="black"] .customer-page .customer-success-avatar,
  html[data-theme="black"] body.customer-native-phone-view .customer-page .customer-success-avatar {
    width: 82px !important;
    height: 82px !important;
    margin: 0 !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255,255,255,0.22) !important;
    background: #141414 !important;
    color: #ffffff !important;
    box-shadow: none !important;
  }

  html[data-theme="black"] .customer-page .customer-success-popup strong,
  html[data-theme="black"] body.customer-native-phone-view .customer-page .customer-success-popup strong {
    color: #ffffff !important;
    font-size: 22px !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
    text-shadow: none !important;
  }

  html[data-theme="black"] .customer-page .customer-success-popup span:not(.customer-success-avatar),
  html[data-theme="black"] body.customer-native-phone-view .customer-page .customer-success-popup span:not(.customer-success-avatar) {
    color: rgba(255,255,255,0.74) !important;
    font-size: 17px !important;
    line-height: 1.25 !important;
  }

  html[data-theme="black"] .customer-page .customer-success-popup b,
  html[data-theme="black"] body.customer-native-phone-view .customer-page .customer-success-popup b {
    color: #ffffff !important;
    font-size: 30px !important;
    line-height: 1 !important;
  }

  html[data-theme="black"] .customer-page .customer-success-change,
  html[data-theme="black"] .customer-page .customer-success-ok,
  html[data-theme="black"] body.customer-native-phone-view .customer-page .customer-success-change,
  html[data-theme="black"] body.customer-native-phone-view .customer-page .customer-success-ok {
    width: 100% !important;
    min-height: 48px !important;
    border-radius: 14px !important;
    padding: 12px 16px !important;
    border: 1px solid rgba(255,255,255,0.16) !important;
    box-shadow: none !important;
    font-size: 16px !important;
    font-weight: 800 !important;
  }

  html[data-theme="black"] .customer-page .customer-success-change,
  html[data-theme="black"] body.customer-native-phone-view .customer-page .customer-success-change {
    color: #ffffff !important;
    background: #151515 !important;
  }

  html[data-theme="black"] .customer-page .customer-success-ok,
  html[data-theme="black"] body.customer-native-phone-view .customer-page .customer-success-ok {
    color: #000000 !important;
    background: #ffffff !important;
    border-color: #ffffff !important;
  }
}
/* Customer success overlay popup v2: always center above phone layout. */
@media (max-width: 720px), (pointer: coarse) and (max-width: 900px) {
  body > .customer-success-overlay-popup,
  body.customer-native-phone-view > .customer-success-overlay-popup,
  .customer-page .customer-success-popup,
  body.customer-native-phone-view .customer-page .customer-success-popup {
    position: fixed !important;
    inset: auto !important;
    top: 50dvh !important;
    left: 50vw !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 2147483000 !important;
    width: min(330px, calc(100vw - 36px)) !important;
    max-width: 330px !important;
    max-height: calc(100dvh - 72px) !important;
    margin: 0 !important;
    padding: 18px 16px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    align-items: center !important;
    gap: 10px !important;
    overflow: auto !important;
    overscroll-behavior: contain !important;
    color: #ffffff !important;
    text-align: center !important;
    background: #080808 !important;
    border: 1px solid rgba(255,255,255,0.16) !important;
    border-radius: 18px !important;
    box-shadow: 0 28px 90px rgba(0,0,0,0.78) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translate3d(-50%, calc(-50% + 12px), 0) scale(0.98) !important;
    transition: opacity 160ms ease, transform 160ms ease !important;
  }

  body > .customer-success-overlay-popup.is-visible,
  body.customer-native-phone-view > .customer-success-overlay-popup.is-visible,
  .customer-page .customer-success-popup.is-visible,
  body.customer-native-phone-view .customer-page .customer-success-popup.is-visible {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translate3d(-50%, -50%, 0) scale(1) !important;
  }

  body > .customer-success-overlay-popup::before,
  body.customer-native-phone-view > .customer-success-overlay-popup::before,
  .customer-page .customer-success-popup::before,
  body.customer-native-phone-view .customer-page .customer-success-popup::before {
    content: none !important;
    display: none !important;
  }

  body > .customer-success-overlay-popup .customer-success-avatar,
  body.customer-native-phone-view > .customer-success-overlay-popup .customer-success-avatar,
  .customer-page .customer-success-avatar,
  body.customer-native-phone-view .customer-page .customer-success-avatar {
    width: 82px !important;
    height: 82px !important;
    margin: 0 !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255,255,255,0.22) !important;
    background: #141414 !important;
    color: #ffffff !important;
    box-shadow: none !important;
  }

  body > .customer-success-overlay-popup strong,
  body.customer-native-phone-view > .customer-success-overlay-popup strong,
  .customer-page .customer-success-popup strong,
  body.customer-native-phone-view .customer-page .customer-success-popup strong {
    color: #ffffff !important;
    font-size: 22px !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
    text-shadow: none !important;
  }

  body > .customer-success-overlay-popup span:not(.customer-success-avatar),
  body.customer-native-phone-view > .customer-success-overlay-popup span:not(.customer-success-avatar),
  .customer-page .customer-success-popup span:not(.customer-success-avatar),
  body.customer-native-phone-view .customer-page .customer-success-popup span:not(.customer-success-avatar) {
    color: rgba(255,255,255,0.74) !important;
    font-size: 17px !important;
    line-height: 1.25 !important;
  }

  body > .customer-success-overlay-popup b,
  body.customer-native-phone-view > .customer-success-overlay-popup b,
  .customer-page .customer-success-popup b,
  body.customer-native-phone-view .customer-page .customer-success-popup b {
    color: #ffffff !important;
    font-size: 30px !important;
    line-height: 1 !important;
  }

  body > .customer-success-overlay-popup .customer-success-change,
  body > .customer-success-overlay-popup .customer-success-ok,
  body.customer-native-phone-view > .customer-success-overlay-popup .customer-success-change,
  body.customer-native-phone-view > .customer-success-overlay-popup .customer-success-ok,
  .customer-page .customer-success-change,
  .customer-page .customer-success-ok,
  body.customer-native-phone-view .customer-page .customer-success-change,
  body.customer-native-phone-view .customer-page .customer-success-ok {
    width: 100% !important;
    min-height: 48px !important;
    border-radius: 14px !important;
    padding: 12px 16px !important;
    border: 1px solid rgba(255,255,255,0.16) !important;
    box-shadow: none !important;
    font-size: 16px !important;
    font-weight: 800 !important;
  }

  body > .customer-success-overlay-popup .customer-success-change,
  body.customer-native-phone-view > .customer-success-overlay-popup .customer-success-change,
  .customer-page .customer-success-change,
  body.customer-native-phone-view .customer-page .customer-success-change {
    color: #ffffff !important;
    background: #151515 !important;
  }

  body > .customer-success-overlay-popup .customer-success-ok,
  body.customer-native-phone-view > .customer-success-overlay-popup .customer-success-ok,
  .customer-page .customer-success-ok,
  body.customer-native-phone-view .customer-page .customer-success-ok {
    color: #000000 !important;
    background: #ffffff !important;
    border-color: #ffffff !important;
  }
}
/* Customer success overlay avatar image v3: keep barber photo inside avatar. */
@media (max-width: 720px), (pointer: coarse) and (max-width: 900px) {
  body > .customer-success-overlay-popup .customer-success-avatar,
  body.customer-native-phone-view > .customer-success-overlay-popup .customer-success-avatar {
    position: relative !important;
    flex: 0 0 auto !important;
    display: grid !important;
    place-items: center !important;
    width: 82px !important;
    height: 82px !important;
    max-width: 82px !important;
    max-height: 82px !important;
    overflow: hidden !important;
    contain: paint !important;
  }

  body > .customer-success-overlay-popup .customer-success-avatar img,
  body.customer-native-phone-view > .customer-success-overlay-popup .customer-success-avatar img,
  .customer-page .customer-success-avatar img,
  body.customer-native-phone-view .customer-page .customer-success-avatar img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: inherit !important;
    transform: none !important;
  }
}
/* Customer success popup light theme v4: keep overlay colors aligned with admin design. */
@media (max-width: 720px), (pointer: coarse) and (max-width: 900px) {
  html[data-theme="light"] body > .customer-success-overlay-popup,
  html:not([data-theme="black"]) body > .customer-success-overlay-popup,
  html[data-theme="light"] body.customer-native-phone-view > .customer-success-overlay-popup,
  html:not([data-theme="black"]) body.customer-native-phone-view > .customer-success-overlay-popup {
    color: #10231f !important;
    background: #ffffff !important;
    border: 1px solid rgba(15, 143, 120, 0.18) !important;
    box-shadow: 0 24px 70px rgba(15, 47, 39, 0.22) !important;
  }

  html[data-theme="light"] body > .customer-success-overlay-popup .customer-success-avatar,
  html:not([data-theme="black"]) body > .customer-success-overlay-popup .customer-success-avatar,
  html[data-theme="light"] body.customer-native-phone-view > .customer-success-overlay-popup .customer-success-avatar,
  html:not([data-theme="black"]) body.customer-native-phone-view > .customer-success-overlay-popup .customer-success-avatar {
    background: #f7faf9 !important;
    color: #0f2f27 !important;
    border-color: rgba(15, 143, 120, 0.18) !important;
  }

  html[data-theme="light"] body > .customer-success-overlay-popup strong,
  html:not([data-theme="black"]) body > .customer-success-overlay-popup strong,
  html[data-theme="light"] body.customer-native-phone-view > .customer-success-overlay-popup strong,
  html:not([data-theme="black"]) body.customer-native-phone-view > .customer-success-overlay-popup strong {
    color: #10231f !important;
  }

  html[data-theme="light"] body > .customer-success-overlay-popup span:not(.customer-success-avatar),
  html:not([data-theme="black"]) body > .customer-success-overlay-popup span:not(.customer-success-avatar),
  html[data-theme="light"] body.customer-native-phone-view > .customer-success-overlay-popup span:not(.customer-success-avatar),
  html:not([data-theme="black"]) body.customer-native-phone-view > .customer-success-overlay-popup span:not(.customer-success-avatar) {
    color: rgba(16, 35, 31, 0.72) !important;
  }

  html[data-theme="light"] body > .customer-success-overlay-popup b,
  html:not([data-theme="black"]) body > .customer-success-overlay-popup b,
  html[data-theme="light"] body.customer-native-phone-view > .customer-success-overlay-popup b,
  html:not([data-theme="black"]) body.customer-native-phone-view > .customer-success-overlay-popup b {
    color: #10231f !important;
  }

  html[data-theme="light"] body > .customer-success-overlay-popup .customer-success-change,
  html:not([data-theme="black"]) body > .customer-success-overlay-popup .customer-success-change,
  html[data-theme="light"] body.customer-native-phone-view > .customer-success-overlay-popup .customer-success-change,
  html:not([data-theme="black"]) body.customer-native-phone-view > .customer-success-overlay-popup .customer-success-change {
    color: #0f6f60 !important;
    background: #eef9f6 !important;
    border-color: rgba(15, 143, 120, 0.22) !important;
  }

  html[data-theme="light"] body > .customer-success-overlay-popup .customer-success-ok,
  html:not([data-theme="black"]) body > .customer-success-overlay-popup .customer-success-ok,
  html[data-theme="light"] body.customer-native-phone-view > .customer-success-overlay-popup .customer-success-ok,
  html:not([data-theme="black"]) body.customer-native-phone-view > .customer-success-overlay-popup .customer-success-ok {
    color: #ffffff !important;
    background: #0f8f78 !important;
    border-color: #0f8f78 !important;
  }
}
/* Customer success overlay desktop v5: body-level popup for all screen sizes. */
body > .customer-success-overlay-popup {
  position: fixed !important;
  inset: auto !important;
  top: 50vh !important;
  left: 50vw !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 2147483000 !important;
  width: min(360px, calc(100vw - 48px)) !important;
  max-width: 360px !important;
  max-height: calc(100vh - 72px) !important;
  margin: 0 !important;
  padding: 20px 18px !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  justify-items: center !important;
  align-items: center !important;
  gap: 12px !important;
  overflow: auto !important;
  color: #10231f !important;
  text-align: center !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 143, 120, 0.18) !important;
  border-radius: 18px !important;
  box-shadow: 0 24px 70px rgba(15, 47, 39, 0.22) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translate3d(-50%, calc(-50% + 12px), 0) scale(0.98) !important;
  transition: opacity 160ms ease, transform 160ms ease !important;
}

body > .customer-success-overlay-popup.is-visible {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translate3d(-50%, -50%, 0) scale(1) !important;
}

body > .customer-success-overlay-popup::before {
  content: none !important;
  display: none !important;
}

body > .customer-success-overlay-popup .customer-success-avatar {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  width: 82px !important;
  height: 82px !important;
  max-width: 82px !important;
  max-height: 82px !important;
  margin: 0 !important;
  overflow: hidden !important;
  border-radius: 16px !important;
  border: 1px solid rgba(15, 143, 120, 0.18) !important;
  background: #f7faf9 !important;
  color: #0f2f27 !important;
  box-shadow: none !important;
  contain: paint !important;
}

body > .customer-success-overlay-popup .customer-success-avatar img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: inherit !important;
  transform: none !important;
}

body > .customer-success-overlay-popup strong {
  color: #10231f !important;
  font-size: 22px !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
  text-shadow: none !important;
}

body > .customer-success-overlay-popup span:not(.customer-success-avatar) {
  color: rgba(16, 35, 31, 0.72) !important;
  font-size: 17px !important;
  line-height: 1.25 !important;
}

body > .customer-success-overlay-popup b {
  color: #10231f !important;
  font-size: 30px !important;
  line-height: 1 !important;
}

body > .customer-success-overlay-popup .customer-success-change,
body > .customer-success-overlay-popup .customer-success-ok {
  width: 100% !important;
  min-height: 48px !important;
  border-radius: 14px !important;
  padding: 12px 16px !important;
  border: 1px solid rgba(15, 143, 120, 0.18) !important;
  box-shadow: none !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}

body > .customer-success-overlay-popup .customer-success-change {
  color: #0f6f60 !important;
  background: #eef9f6 !important;
}

body > .customer-success-overlay-popup .customer-success-ok {
  color: #ffffff !important;
  background: #0f8f78 !important;
  border-color: #0f8f78 !important;
}

html[data-theme="black"] body > .customer-success-overlay-popup {
  color: #ffffff !important;
  background: #080808 !important;
  border-color: rgba(255,255,255,0.16) !important;
  box-shadow: 0 28px 90px rgba(0,0,0,0.78) !important;
}

html[data-theme="black"] body > .customer-success-overlay-popup .customer-success-avatar {
  background: #141414 !important;
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.22) !important;
}

html[data-theme="black"] body > .customer-success-overlay-popup strong,
html[data-theme="black"] body > .customer-success-overlay-popup b {
  color: #ffffff !important;
}

html[data-theme="black"] body > .customer-success-overlay-popup span:not(.customer-success-avatar) {
  color: rgba(255,255,255,0.74) !important;
}

html[data-theme="black"] body > .customer-success-overlay-popup .customer-success-change {
  color: #ffffff !important;
  background: #151515 !important;
  border-color: rgba(255,255,255,0.16) !important;
}

html[data-theme="black"] body > .customer-success-overlay-popup .customer-success-ok {
  color: #000000 !important;
  background: #ffffff !important;
  border-color: #ffffff !important;
}

/* Customer success popup contrast v6: mute background action and lift active dialog. */
body.customer-success-open .customer-page .send-order-button,
body.customer-native-phone-view.customer-success-open .customer-page .send-order-button {
  opacity: 0.32 !important;
  filter: grayscale(1) saturate(0.45) brightness(0.72) !important;
  box-shadow: none !important;
  pointer-events: none !important;
}

body.customer-success-open .customer-page .send-step,
body.customer-native-phone-view.customer-success-open .customer-page .send-step {
  opacity: 0.72 !important;
}

body.customer-success-open::before,
body.customer-native-phone-view.customer-success-open::before {
  content: '' !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147482990 !important;
  pointer-events: none !important;
  background: rgba(0, 0, 0, 0.34) !important;
  backdrop-filter: blur(1px) saturate(0.7) !important;
}

body > .customer-success-overlay-popup {
  z-index: 2147483001 !important;
  border-width: 1px !important;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(255,255,255,0.08) inset !important;
}

body > .customer-success-overlay-popup .customer-success-ok {
  min-height: 52px !important;
  font-size: 17px !important;
  letter-spacing: 0 !important;
}

html[data-theme="black"] body > .customer-success-overlay-popup {
  background: #050505 !important;
  border-color: rgba(255,255,255,0.24) !important;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.86), 0 0 0 1px rgba(255,255,255,0.08) inset !important;
}

html[data-theme="black"] body > .customer-success-overlay-popup .customer-success-ok {
  color: #050505 !important;
  background: #f7f7f7 !important;
  border-color: #f7f7f7 !important;
  box-shadow: 0 10px 24px rgba(255,255,255,0.12) !important;
}

html[data-theme="black"] body > .customer-success-overlay-popup .customer-success-change {
  color: #ffffff !important;
  background: #111111 !important;
  border-color: rgba(255,255,255,0.26) !important;
}
/* Customer desktop scroll restore v1: mobile fixed-layout rules must not block PC scrolling. */
@media (min-width: 721px) and (hover: hover) and (pointer: fine) {
  html:has(body:not(.modal-open) .customer-page),
  body:not(.modal-open):has(.customer-page) {
    height: auto !important;
    min-height: 100vh !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: auto !important;
    position: static !important;
    touch-action: auto !important;
  }

  body:not(.modal-open) .tablet-page.customer-page,
  body:not(.modal-open) .customer-page .customer-panel,
  body:not(.modal-open) .customer-page .customer-form,
  body:not(.modal-open) .customer-page .customer-step,
  body:not(.modal-open) .customer-page .send-step {
    height: auto !important;
    max-height: none !important;
    overflow-y: visible !important;
  }

  body:not(.modal-open) .customer-page .send-step,
  body:not(.modal-open) .customer-page .send-order-button {
    position: relative !important;
    inset: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
  }
}
/* Customer success background dim v7: fade out the full page behind the final popup. */
body.customer-success-open .tablet-page.customer-page,
body.customer-native-phone-view.customer-success-open .tablet-page.customer-page {
  filter: brightness(0.34) saturate(0.55) blur(1px) !important;
  opacity: 0.78 !important;
  transition: filter 160ms ease, opacity 160ms ease !important;
  pointer-events: none !important;
}

body.customer-success-open::before,
body.customer-native-phone-view.customer-success-open::before {
  content: '' !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147482990 !important;
  pointer-events: none !important;
  background: rgba(0, 0, 0, 0.58) !important;
  backdrop-filter: blur(2px) saturate(0.55) !important;
}

body > .customer-success-overlay-popup {
  z-index: 2147483002 !important;
}
/* Customer active selection v1: lightgreen means selected/active, neutral means not selected. */
@media (max-width: 720px), (pointer: coarse) and (max-width: 900px) {
  .customer-page .employee-card,
  .customer-page .hairstyle-card,
  .customer-page .customer-loop-track .employee-card,
  .customer-page .customer-loop-track .hairstyle-card,
  body.customer-native-phone-view .customer-page .employee-card,
  body.customer-native-phone-view .customer-page .hairstyle-card,
  body.customer-native-phone-view .customer-page .customer-loop-track .employee-card,
  body.customer-native-phone-view .customer-page .customer-loop-track .hairstyle-card {
    border-color: transparent !important;
    box-shadow: none !important;
  }

  .customer-page .employee-card .avatar-circle,
  body.customer-native-phone-view .customer-page .employee-card .avatar-circle {
    box-shadow: 0 0 0 2px rgba(229, 231, 235, 0.95), 0 12px 26px rgba(15, 23, 42, 0.14) !important;
  }

  .customer-page .hairstyle-card .hairstyle-image,
  body.customer-native-phone-view .customer-page .hairstyle-card .hairstyle-image,
  .customer-page .customer-loop-track .hairstyle-card .hairstyle-image,
  body.customer-native-phone-view .customer-page .customer-loop-track .hairstyle-card .hairstyle-image {
    border-color: rgba(229, 231, 235, 0.95) !important;
    box-shadow: none !important;
  }

  .customer-page .employee-card.is-selected .avatar-circle,
  body.customer-native-phone-view .customer-page .employee-card.is-selected .avatar-circle,
  html[data-theme="black"] .customer-page .employee-card.is-selected .avatar-circle,
  html[data-theme="black"] body.customer-native-phone-view .customer-page .employee-card.is-selected .avatar-circle,
  html[data-theme="black"][data-theme-variant="black-gold"] .customer-page .employee-card.is-selected .avatar-circle,
  html[data-theme="black"][data-theme-variant="black-gold"] body.customer-native-phone-view .customer-page .employee-card.is-selected .avatar-circle {
    border-color: #86efac !important;
    box-shadow: 0 0 0 3px #86efac, 0 0 0 7px rgba(134, 239, 172, 0.18), 0 16px 30px rgba(34, 197, 94, 0.22) !important;
  }

  .customer-page .hairstyle-card.is-selected .hairstyle-image,
  body.customer-native-phone-view .customer-page .hairstyle-card.is-selected .hairstyle-image,
  html[data-theme="black"] .customer-page .hairstyle-card.is-selected .hairstyle-image,
  html[data-theme="black"] body.customer-native-phone-view .customer-page .hairstyle-card.is-selected .hairstyle-image,
  html[data-theme="black"][data-theme-variant="black-gold"] .customer-page .hairstyle-card.is-selected .hairstyle-image,
  html[data-theme="black"][data-theme-variant="black-gold"] body.customer-native-phone-view .customer-page .hairstyle-card.is-selected .hairstyle-image {
    border-color: #86efac !important;
    box-shadow: 0 0 0 3px #86efac, 0 0 0 7px rgba(134, 239, 172, 0.18), 0 16px 30px rgba(34, 197, 94, 0.2) !important;
  }

  .customer-page .select-card.is-selected::after,
  body.customer-native-phone-view .customer-page .select-card.is-selected::after,
  html[data-theme="black"] .customer-page .select-card.is-selected::after,
  html[data-theme="black"] body.customer-native-phone-view .customer-page .select-card.is-selected::after {
    color: #064e3b !important;
    background: #dcfce7 !important;
    border-color: #86efac !important;
    box-shadow: 0 8px 18px rgba(34, 197, 94, 0.24) !important;
  }

  .customer-page .hairstyle-card.is-selected::after,
  body.customer-native-phone-view .customer-page .hairstyle-card.is-selected::after,
  html[data-theme="black"] .customer-page .hairstyle-card.is-selected::after,
  html[data-theme="black"] body.customer-native-phone-view .customer-page .hairstyle-card.is-selected::after {
    top: 84px !important;
    left: 10px !important;
    right: auto !important;
    z-index: 5 !important;
  }
}

@media (min-width: 721px) and (hover: hover) {
  .customer-page .employee-card.is-selected::after,
  html[data-theme="black"] .customer-page .employee-card.is-selected::after {
    top: 96px !important;
    left: 18px !important;
    right: auto !important;
    z-index: 5 !important;
  }

  .customer-page .hairstyle-card.is-selected::after,
  html[data-theme="black"] .customer-page .hairstyle-card.is-selected::after {
    top: 132px !important;
    left: 18px !important;
    right: auto !important;
    z-index: 5 !important;
  }
}
/* Customer active order lock v1: keep header usable, freeze the submitted choice area. */
body.customer-order-locked .customer-page .employee-quick-actions,
body.customer-order-locked .customer-page .selection-grid,
body.customer-order-locked .customer-page .name-row,
body.customer-order-locked .customer-page .selected-photo-text,
body.customer-order-locked .customer-page .privacy-note,
body.customer-order-locked .customer-page .send-step {
  pointer-events: none !important;
}

body.customer-order-locked .customer-page .employee-quick-actions,
body.customer-order-locked .customer-page .employee-quick-button {
  pointer-events: auto !important;
}

body.customer-order-locked .customer-page .employee-quick-button,
body.customer-order-locked .customer-page .select-card:not(.is-selected),
body.customer-order-locked .customer-page .name-row input,
body.customer-order-locked .customer-page .camera-button,
body.customer-order-locked .customer-page .send-order-button {
  filter: grayscale(1) saturate(0.2) !important;
  opacity: 0.42 !important;
}

body.customer-order-locked .customer-page .select-card:not(.is-selected) img,
body.customer-order-locked .customer-page .select-card:not(.is-selected) .avatar-circle,
body.customer-order-locked .customer-page .select-card:not(.is-selected) .hairstyle-image {
  filter: grayscale(1) brightness(0.82) !important;
}

body.customer-order-locked .customer-page .select-card:not(.is-selected) {
  background: rgba(148, 163, 184, 0.16) !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
}

html[data-theme="black"] body.customer-order-locked .customer-page .select-card:not(.is-selected),
html[data-theme="black"] body.customer-native-phone-view.customer-order-locked .customer-page .select-card:not(.is-selected) {
  background: rgba(255, 255, 255, 0.055) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

body.customer-order-locked .customer-page .select-card.is-selected {
  opacity: 1 !important;
  filter: none !important;
}
/* Customer active barber change v1: only the active barber remains clickable while locked. */
body.customer-order-locked .customer-page .employee-card.is-selected,
body.customer-order-locked .customer-page .customer-loop-track .employee-card.is-selected,
body.customer-native-phone-view.customer-order-locked .customer-page .employee-card.is-selected,
body.customer-native-phone-view.customer-order-locked .customer-page .customer-loop-track .employee-card.is-selected {
  pointer-events: auto !important;
  cursor: pointer !important;
}
/* Customer active barber change v2: locked area can show active barber popup, but other cards stay inert. */
body.customer-order-locked .customer-page .selection-grid,
body.customer-native-phone-view.customer-order-locked .customer-page .selection-grid {
  pointer-events: auto !important;
}

body.customer-order-locked .customer-page .employee-card:not(.is-selected),
body.customer-order-locked .customer-page .hairstyle-card,
body.customer-native-phone-view.customer-order-locked .customer-page .employee-card:not(.is-selected),
body.customer-native-phone-view.customer-order-locked .customer-page .hairstyle-card {
  pointer-events: none !important;
}

/* Customer card labels: show BARBER and Style badges over the image like the reference view. */
.customer-page .avatar-circle,
.customer-page .hairstyle-image,
body.customer-native-phone-view .customer-page .avatar-circle,
body.customer-native-phone-view .customer-page .hairstyle-image {
  position: relative !important;
}

.customer-page .customer-card-badge,
body.customer-native-phone-view .customer-page .customer-card-badge {
  position: absolute !important;
  left: 50% !important;
  bottom: 8px !important;
  z-index: 3 !important;
  transform: translateX(-50%) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 18px !important;
  padding: 3px 8px !important;
  border-radius: 5px !important;
  background: transparent !important;
  color: #ffffff !important;
  font-size: 9px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.34) !important;
  box-shadow: none !important;
  pointer-events: none !important;
}

.customer-page .hairstyle-image .customer-card-badge,
body.customer-native-phone-view .customer-page .hairstyle-image .customer-card-badge {
  left: 10px !important;
  top: 10px !important;
  bottom: auto !important;
  transform: none !important;
}

.customer-page .hairstyle-card .hairstyle-clear-selection,
body.customer-native-phone-view .customer-page .hairstyle-card .hairstyle-clear-selection {
  position: absolute !important;
  top: 24px !important;
  right: 8px !important;
  z-index: 6 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  height: 24px !important;
  color: #ef4444 !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border: 2px solid #ef4444 !important;
  border-radius: 999px !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  line-height: 18px !important;
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.22) !important;
  pointer-events: auto !important;
}

.customer-page .hairstyle-card.is-selected .hairstyle-clear-selection,
body.customer-native-phone-view .customer-page .hairstyle-card.is-selected .hairstyle-clear-selection {
  display: inline-flex !important;
}
/* Customer active barber compact popup v1: no extra description, Nein/Ja side by side. */
body > .customer-success-overlay-popup.is-active-change .customer-success-actions-inline,
body.customer-native-phone-view > .customer-success-overlay-popup.is-active-change .customer-success-actions-inline {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  width: 100% !important;
  margin-top: 8px !important;
}

body > .customer-success-overlay-popup.is-active-change .customer-success-actions-inline .customer-success-ok,
body > .customer-success-overlay-popup.is-active-change .customer-success-actions-inline .customer-success-change,
body.customer-native-phone-view > .customer-success-overlay-popup.is-active-change .customer-success-actions-inline .customer-success-ok,
body.customer-native-phone-view > .customer-success-overlay-popup.is-active-change .customer-success-actions-inline .customer-success-change {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 50px !important;
  padding: 12px 8px !important;
  white-space: normal !important;
  line-height: 1.15 !important;
}

/* Customer badge soft purple v3: keep the purple label background, but make it translucent. */
.customer-page .customer-card-badge,
.customer-page .employee-role-badge,
.customer-page .hairstyle-type-badge,
body.customer-native-phone-view .customer-page .customer-card-badge,
body.customer-native-phone-view .customer-page .employee-role-badge,
body.customer-native-phone-view .customer-page .hairstyle-type-badge {
  background: rgba(142, 70, 166, 0.45) !important;
  background-color: rgba(142, 70, 166, 0.45) !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: 0 4px 10px rgba(94, 40, 116, 0.1) !important;
}

/* Customer tablet language rail: match QR-Code horizontal swipe behavior. */
@media (min-width: 721px) {
  .customer-page .customer-language-switch {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    width: 220px !important;
    max-width: 220px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-x: contain !important;
    scroll-snap-type: x mandatory !important;
    scroll-padding-inline: 77px !important;
    scrollbar-width: none !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%) !important;
    mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%) !important;
  }

  .customer-page .customer-language-switch::-webkit-scrollbar {
    display: none !important;
  }

  .customer-page .customer-language-switch button {
    flex: 0 0 66px !important;
    width: 66px !important;
    min-width: 66px !important;
    height: 46px !important;
    min-height: 46px !important;
    scroll-snap-align: center !important;
  }

  .customer-page .customer-language-switch .customer-language-flag {
    font-size: 28px !important;
  }

  .customer-page .customer-language-kurdistan-flag {
    width: 42px !important;
    height: 28px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
  }
}

/* Customer mobile selected style final override: remove the red clear X from haircut cards. */
.customer-page .hairstyle-card .hairstyle-clear-selection,
.customer-page .hairstyle-card.is-selected .hairstyle-clear-selection,
body.customer-native-phone-view .customer-page .hairstyle-card .hairstyle-clear-selection,
body.customer-native-phone-view .customer-page .hairstyle-card.is-selected .hairstyle-clear-selection {
  display: none !important;
}

/* Customer submitted state: keep other choices visually normal instead of greyed out. */
body.customer-order-locked .customer-page .employee-quick-button,
body.customer-order-locked .customer-page .select-card,
body.customer-order-locked .customer-page .select-card:not(.is-selected),
body.customer-order-locked .customer-page .select-card:not(.is-selected) img,
body.customer-order-locked .customer-page .select-card:not(.is-selected) .avatar-circle,
body.customer-order-locked .customer-page .select-card:not(.is-selected) .hairstyle-image,
body.customer-order-locked .customer-page .name-row input,
body.customer-order-locked .customer-page .camera-button,
body.customer-order-locked .customer-page .send-order-button,
body.customer-native-phone-view.customer-order-locked .customer-page .employee-quick-button,
body.customer-native-phone-view.customer-order-locked .customer-page .select-card,
body.customer-native-phone-view.customer-order-locked .customer-page .select-card:not(.is-selected),
body.customer-native-phone-view.customer-order-locked .customer-page .select-card:not(.is-selected) img,
body.customer-native-phone-view.customer-order-locked .customer-page .select-card:not(.is-selected) .avatar-circle,
body.customer-native-phone-view.customer-order-locked .customer-page .select-card:not(.is-selected) .hairstyle-image,
body.customer-native-phone-view.customer-order-locked .customer-page .name-row input,
body.customer-native-phone-view.customer-order-locked .customer-page .camera-button,
body.customer-native-phone-view.customer-order-locked .customer-page .send-order-button {
  filter: none !important;
  opacity: 1 !important;
}

/* Customer submitted state v2: non-selected cards must look exactly like the normal unlocked view. */
body.customer-order-locked .customer-page .select-card:not(.is-selected),
body.customer-native-phone-view.customer-order-locked .customer-page .select-card:not(.is-selected),
html[data-theme="black"] body.customer-order-locked .customer-page .select-card:not(.is-selected),
html[data-theme="black"] body.customer-native-phone-view.customer-order-locked .customer-page .select-card:not(.is-selected) {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}

body.customer-order-locked .customer-page .employee-card:not(.is-selected),
body.customer-order-locked .customer-page .hairstyle-card:not(.is-selected),
body.customer-native-phone-view.customer-order-locked .customer-page .employee-card:not(.is-selected),
body.customer-native-phone-view.customer-order-locked .customer-page .hairstyle-card:not(.is-selected) {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}

body.customer-order-locked .customer-page .select-card:not(.is-selected) *,
body.customer-order-locked .customer-page .select-card:not(.is-selected) img,
body.customer-order-locked .customer-page .select-card:not(.is-selected) .avatar-circle,
body.customer-order-locked .customer-page .select-card:not(.is-selected) .hairstyle-image,
body.customer-native-phone-view.customer-order-locked .customer-page .select-card:not(.is-selected) *,
body.customer-native-phone-view.customer-order-locked .customer-page .select-card:not(.is-selected) img,
body.customer-native-phone-view.customer-order-locked .customer-page .select-card:not(.is-selected) .avatar-circle,
body.customer-native-phone-view.customer-order-locked .customer-page .select-card:not(.is-selected) .hairstyle-image {
  filter: none !important;
  opacity: 1 !important;
}

/* Customer submitted unavailable barber fix: paused barbers stay grey after sending. */
body.customer-order-locked .customer-page .employee-card.is-paused:not(.is-selected),
body.customer-native-phone-view.customer-order-locked .customer-page .employee-card.is-paused:not(.is-selected) {
  filter: none !important;
  opacity: 1 !important;
}

body.customer-order-locked .customer-page .employee-card.is-paused:not(.is-selected) .avatar-circle,
body.customer-native-phone-view.customer-order-locked .customer-page .employee-card.is-paused:not(.is-selected) .avatar-circle {
  filter: grayscale(.78) !important;
  opacity: 0.72 !important;
  box-shadow:
    0 0 0 1px rgba(229, 231, 235, 0.95),
    0 20px 34px rgba(35, 35, 35, 0.14),
    0 24px 44px rgba(100, 116, 139, 0.12) !important;
}

/* Customer locked order: haircuts remain tappable for preview only. */
body.customer-order-locked .customer-page .hairstyle-card,
body.customer-order-locked .customer-page .customer-loop-track .hairstyle-card,
body.customer-native-phone-view.customer-order-locked .customer-page .hairstyle-card,
body.customer-native-phone-view.customer-order-locked .customer-page .customer-loop-track .hairstyle-card {
  pointer-events: auto !important;
}

/* Customer queue info final: keep queue count visible, show green hint briefly after tapping. */
.customer-page .employee-card .employee-wait-label,
body.customer-native-phone-view .customer-page .employee-card .employee-wait-label,
body.customer-order-locked .customer-page .employee-card .employee-wait-label,
body.customer-native-phone-view.customer-order-locked .customer-page .employee-card .employee-wait-label {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.customer-page .employee-card.show-wait-label .employee-wait-label,
body.customer-native-phone-view .customer-page .employee-card.show-wait-label .employee-wait-label,
body.customer-order-locked .customer-page .employee-card.show-wait-label .employee-wait-label,
body.customer-native-phone-view.customer-order-locked .customer-page .employee-card.show-wait-label .employee-wait-label {
  opacity: 1 !important;
  visibility: visible !important;
}

.customer-page .employee-card .employee-queue-count,
body.customer-native-phone-view .customer-page .employee-card .employee-queue-count,
body.customer-order-locked .customer-page .employee-card .employee-queue-count,
body.customer-native-phone-view.customer-order-locked .customer-page .employee-card .employee-queue-count {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Customer mobile: prevent browser image menu on long press. */
.customer-page,
.customer-page *,
.style-modal,
.style-modal *,
.photo-modal,
.photo-modal * {
  -webkit-touch-callout: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

.customer-page input,
.customer-page textarea,
.photo-modal input,
.photo-modal textarea {
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  -webkit-user-select: text !important;
  user-select: text !important;
}

.customer-page img,
.style-modal img,
.photo-modal img {
  -webkit-user-drag: none !important;
  user-drag: none !important;
  pointer-events: none;
}

.customer-page button img,
.style-modal button img,
.photo-modal button img {
  pointer-events: none;
}

/* Customer active wait banner replaces the next-free barber button. */
.customer-page .customer-wait-banner {
  position: relative;
  display: none;
  width: 100%;
  min-height: 66px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 10px 14px;
  color: #ffffff;
  background: #0f8f78;
  border: 1px solid rgba(15, 143, 120, 0.18);
  border-radius: 16px;
  box-shadow: 0 16px 34px rgba(15, 143, 120, 0.24);
  font: inherit;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  white-space: normal;
  overflow: hidden;
}

.customer-page .customer-wait-banner.is-visible {
  display: flex;
}

.customer-page .customer-wait-bell {
  position: absolute;
  top: 8px;
  right: 10px;
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #075f50;
  background: #d9fff0;
  border: 2px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 18px rgba(4, 120, 87, 0.28);
  font-size: 17px;
  line-height: 1;
  pointer-events: none;
}

.customer-page .customer-wait-bell[hidden] {
  display: none;
}

.customer-page .customer-wait-time {
  position: absolute;
  right: 12px;
  bottom: 8px;
  z-index: 2;
  display: inline-flex;
  min-width: 58px !important;
  height: 20px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0 9px;
  border-radius: 8px;
  color: #ffffff !important;
  background: #86efac !important;
  background-color: #86efac !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-shadow: none !important;
  pointer-events: none;
}

.customer-page .customer-wait-banner.is-next-in-queue .customer-wait-bell {
  animation: customer-wait-bell-pulse 1.35s ease-in-out infinite;
}

.customer-page .customer-wait-banner.is-ready-alerting {
  animation: customer-wait-ready-shake 0.82s ease-in-out 3;
  will-change: transform, background-color;
}

.customer-page .customer-wait-banner.is-next-in-queue strong {
  padding-right: 34px;
  padding-left: 34px;
  box-sizing: border-box;
}

@keyframes customer-wait-bell-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.11);
  }
}

@keyframes customer-wait-ready-shake {
  0%,
  100% {
    transform: translateX(0);
    background-color: #0f8f78;
  }
  12% {
    transform: translateX(-3px);
    background-color: #13a98d;
  }
  24% {
    transform: translateX(3px);
    background-color: #0b7767;
  }
  36% {
    transform: translateX(-2px);
    background-color: #18b293;
  }
  48% {
    transform: translateX(2px);
    background-color: #0d806d;
  }
  60% {
    transform: translateX(0);
    background-color: #0f8f78;
  }
}

.customer-page .customer-wait-banner strong {
  color: inherit;
  display: block;
  width: 100%;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-page .customer-wait-banner small {
  display: block;
  width: 100%;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  white-space: normal;
}

.customer-page .customer-wait-banner:focus-visible {
  outline: 3px solid rgba(134, 239, 172, 0.45);
  outline-offset: 2px;
}

.customer-page .employee-quick-actions:has(.customer-wait-banner.is-visible) .employee-quick-button {
  display: none;
}

html[data-theme="black"] .customer-page .customer-wait-banner {
  color: #ffffff;
  background: #0b8b69;
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-3px);
  box-shadow:
    0 22px 36px rgba(0, 0, 0, 0.46),
    0 12px 28px rgba(16, 185, 129, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.20);
}
/* RTL languages: text can be RTL, but carousels stay fully LTR for swipe/rotation. */
html[data-text-direction="rtl"] .customer-page .customer-panel,
html[data-text-direction="rtl"] .customer-page .customer-header,
html[data-text-direction="rtl"] .customer-page .customer-form,
html[data-text-direction="rtl"] .customer-page .employee-quick-actions,
html[data-text-direction="rtl"] .customer-page .photo-input-row,
html[data-text-direction="rtl"] .customer-page .customer-wait-banner,
html[data-text-direction="rtl"] .customer-install-card,
html[data-text-direction="rtl"] .customer-order-confirm-card {
  direction: rtl;
}

html[data-text-direction="rtl"] #employeeGrid,
html[data-text-direction="rtl"] #hairstyleGrid,
html[data-text-direction="rtl"] .customer-page .customer-loop-shell,
html[data-text-direction="rtl"] .customer-page .customer-loop-viewport,
html[data-text-direction="rtl"] .customer-page .customer-loop-track,
html[data-text-direction="rtl"] .customer-page .select-card,
html[data-text-direction="rtl"] .customer-page .employee-card,
html[data-text-direction="rtl"] .customer-page .hairstyle-card,
html[data-text-direction="rtl"] .customer-page .avatar-circle,
html[data-text-direction="rtl"] .customer-page .hairstyle-image,
html[data-text-direction="rtl"] .style-modal,
html[data-text-direction="rtl"] .style-thumb-list {
  direction: ltr !important;
}

html[data-text-direction="rtl"] .customer-page .customer-loop-track {
  flex-direction: row !important;
}

html[data-text-direction="rtl"] .customer-page .employee-card strong,
html[data-text-direction="rtl"] .customer-page .employee-card small,
html[data-text-direction="rtl"] .customer-page .hairstyle-card strong,
html[data-text-direction="rtl"] .customer-page .customer-card-badge,
html[data-text-direction="rtl"] .customer-page .employee-status-badge {
  direction: inherit;
  unicode-bidi: plaintext;
}

/* Mobile admin header: center the shop logo in the full preview box. */
@media (max-width: 780px) {
  .admin-page .admin-header .admin-logo-preview {
    padding: 0 !important;
  }

  .admin-page .admin-header .admin-logo-preview img {
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    border-radius: inherit !important;
  }

  .qr-display-page.is-admin-embed .qr-display-logo {
    border-radius: 10px !important;
  }

  .qr-display-page.is-admin-embed .qr-display-logo img {
    border-radius: 0 !important;
    object-fit: contain !important;
  }
}

/* Mobile admin QR preview: no inner scrollbar and full scan info visible. */
@media (max-width: 780px) {
  body.qr-display-page.is-admin-embed {
    overflow: hidden !important;
  }

  .qr-display-page.is-admin-embed .qr-display-shell {
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .qr-display-page.is-admin-embed .qr-display-panel {
    overflow: hidden !important;
    gap: 6px !important;
    padding: 6px !important;
  }

  .qr-display-page.is-admin-embed .qr-display-logo {
    width: 44px !important;
    height: 44px !important;
    margin-bottom: 4px !important;
  }

  .qr-display-page.is-admin-embed .qr-display-instructions {
    max-width: 286px !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    margin-bottom: 6px !important;
  }

  .qr-display-page.is-admin-embed .qr-display-language-control {
    margin-bottom: 4px !important;
  }

  .qr-display-page.is-admin-embed .qr-display-code {
    width: min(100%, 50vw, 188px) !important;
    max-width: 188px !important;
    padding: 6px !important;
  }

  .qr-display-page.is-admin-embed .qr-display-scan-label {
    width: min(100%, 230px) !important;
    min-height: 36px !important;
    margin-top: 6px !important;
    font-size: 12px !important;
  }
}

/* Mobile admin QR preview: keep touch active, allow vertical swipe, hide scrollbar. */
@media (max-width: 780px) {
  body.qr-display-page.is-admin-embed {
    overflow-y: hidden !important;
    overflow-x: hidden !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: none !important;
    touch-action: none !important;
  }

  body.qr-display-page.is-admin-embed::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  .qr-display-page.is-admin-embed .qr-display-shell,
  .qr-display-page.is-admin-embed .qr-display-panel {
    overflow: hidden !important;
  }

  .qr-display-page.is-admin-embed .qr-display-language-control,
  .qr-display-page.is-admin-embed .qr-display-language-switch {
    touch-action: pan-x !important;
  }
}

/* Admin mobile nav: keep reload button same size as other tabs. */
@media (max-width: 780px) {
  .admin-page .admin-section-nav .admin-nav-reload-button {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 44px !important;
    padding: 0 14px !important;
    margin-left: 0 !important;
    font-size: 14px !important;
    line-height: 1.1 !important;
  }
}

/* Admin direct QR: use the same rectangular brand placeholder box as the admin header. */
.admin-page .admin-qr-direct .admin-qr-logo-preview {
  display: grid !important;
  place-items: center !important;
  width: 86px !important;
  height: 62px !important;
  padding: 0 !important;
  margin: 0 auto 8px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  border: 1px solid rgba(207, 229, 221, 0.9) !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 24px rgba(15, 46, 38, 0.08) !important;
}

.admin-page .admin-qr-direct .admin-qr-logo-image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center center !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

@media (max-width: 780px) {
  .admin-page .admin-qr-direct .admin-qr-logo-preview {
    width: 148px !important;
    height: 118px !important;
    margin-bottom: 8px !important;
  }

  .admin-page .admin-qr-direct .admin-qr-logo-image {
    width: 108px !important;
    height: 108px !important;
    max-width: 108px !important;
    max-height: 108px !important;
    object-fit: contain !important;
    object-position: center center !important;
  }
}

/* Admin design logo preview: same placeholder box as the header logo. */
.admin-page .admin-design-logo-preview {
  display: grid !important;
  place-items: center !important;
  width: 210px !important;
  height: 210px !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  background: #ffffff !important;
  border: 1px solid rgba(207, 229, 221, 0.9) !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 24px rgba(15, 46, 38, 0.08) !important;
}

.admin-page .admin-design-logo-preview img {
  position: static !important;
  inset: auto !important;
  display: block !important;
  width: calc(100% - 8px) !important;
  height: calc(100% - 8px) !important;
  max-width: calc(100% - 8px) !important;
  max-height: calc(100% - 8px) !important;
  margin: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  border-radius: 0 !important;
}

@media (max-width: 780px) {
  .admin-page .admin-design-logo-preview {
    width: 210px !important;
    height: 210px !important;
    aspect-ratio: 1 / 1 !important;
  }

  .admin-page .admin-design-logo-control.admin-design-logo-compact {
    grid-template-columns: 1fr !important;
  }

  .admin-page .admin-design-logo-compact .admin-design-logo-preview,
  .admin-page .admin-design-logo-compact .admin-design-logo-actions,
  .admin-page .admin-design-logo-compact > div:first-child {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  .admin-page .admin-design-logo-compact .admin-design-logo-preview {
    width: 150px !important;
    max-width: 150px !important;
    height: 150px !important;
    min-height: 150px !important;
    justify-self: start !important;
  }
}

/* Brand logos must always be shown completely inside their placeholder. */
.admin-page .admin-logo-preview img,
.admin-page .admin-design-logo-preview img,
.admin-page .admin-qr-direct .admin-qr-logo-image,
.customer-page .brand-icon.customer-brand-logo,
[data-brand-logo] {
  object-fit: contain !important;
  object-position: center center !important;
  max-width: 100% !important;
  max-height: 100% !important;
}

/* Admin header logo: remove the old absolute crop area. */
.admin-page .admin-header .admin-logo-preview {
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
}

.admin-page .admin-header .admin-logo-preview img {
  position: static !important;
  inset: auto !important;
  display: block !important;
  width: calc(100% - 14px) !important;
  height: calc(100% - 14px) !important;
  max-width: calc(100% - 14px) !important;
  max-height: calc(100% - 14px) !important;
  margin: auto !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center center !important;
  border-radius: 0 !important;
}

@media (max-width: 780px) {
  .admin-page .admin-header-actions {
    max-width: 176px !important;
  }

  .admin-page .admin-header .admin-logo-manager,
  .admin-page .admin-header .admin-logo-preview {
    width: 176px !important;
    max-width: 176px !important;
  }

  .admin-page .admin-header .admin-logo-preview {
    width: 156px !important;
    max-width: 156px !important;
    height: 156px !important;
    min-height: 156px !important;
    aspect-ratio: 1 / 1 !important;
    padding: 0 !important;
  }

  .admin-page .admin-design-logo-preview {
    width: 210px !important;
    max-width: 100% !important;
    height: 156px !important;
    min-height: 156px !important;
    padding: 0 !important;
  }

  .admin-page .admin-design-logo-preview img {
    position: static !important;
    inset: auto !important;
    display: block !important;
    width: calc(100% - 14px) !important;
    height: calc(100% - 14px) !important;
    max-width: calc(100% - 14px) !important;
    max-height: calc(100% - 14px) !important;
    margin: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
  }
}

/* Mobile admin header: keep logo and logout button side by side without overlap. */
@media (max-width: 780px) {
  .admin-page .admin-header {
    grid-template-columns: 1fr !important;
  }

  .admin-page .admin-header-actions {
    width: 100% !important;
    max-width: none !important;
    grid-template-columns: minmax(150px, 184px) minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .admin-page .admin-header .admin-logo-manager,
  .admin-page .admin-header .admin-logo-preview {
    width: 100% !important;
    max-width: 184px !important;
  }

  .admin-page .admin-header .admin-logo-preview {
    height: 152px !important;
    min-height: 152px !important;
    padding: 0 !important;
  }

  .admin-page .admin-header .admin-logo-preview img {
    width: 142px !important;
    height: 142px !important;
    max-width: 142px !important;
    max-height: 142px !important;
    object-fit: contain !important;
    object-position: center center !important;
  }

  .admin-page .admin-header .admin-secondary-button {
    width: 100% !important;
    min-width: 0 !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
}

/* Final logo framing override: keep uploaded square logos fully visible. */
.admin-page .admin-header .admin-logo-preview,
.admin-page .admin-design-logo-preview {
  display: grid !important;
  place-items: center !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
}

.admin-page .admin-header .admin-logo-preview {
  width: 156px !important;
  max-width: 156px !important;
  height: 156px !important;
  min-height: 156px !important;
}

.admin-page .admin-design-logo-preview {
  width: 210px !important;
  max-width: 210px !important;
  height: 210px !important;
  min-height: 210px !important;
}

.admin-page .admin-header .admin-logo-preview img,
.admin-page .admin-design-logo-preview img {
  position: static !important;
  inset: auto !important;
  display: block !important;
  width: calc(100% - 10px) !important;
  height: calc(100% - 10px) !important;
  max-width: calc(100% - 10px) !important;
  max-height: calc(100% - 10px) !important;
  margin: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  border-radius: 0 !important;
}

/* Final admin black neutral override: reduce green panels, keep only actions accented. */
html[data-theme="black"] body.admin-page,
html[data-theme="black"] .admin-page {
  background: #030405 !important;
}

html[data-theme="black"] .admin-page .admin-dashboard,
html[data-theme="black"] .admin-page .admin-login,
html[data-theme="black"] .admin-page .admin-header,
html[data-theme="black"] .admin-page .admin-section-nav,
html[data-theme="black"] .admin-page .admin-panel,
html[data-theme="black"] .admin-page .admin-form,
html[data-theme="black"] .admin-page .admin-settings-panel,
html[data-theme="black"] .admin-page .admin-design-logo-control,
html[data-theme="black"] .admin-page .admin-language-control,
html[data-theme="black"] .admin-page .admin-theme-mode-control,
html[data-theme="black"] .admin-page .admin-booking-subpanel,
html[data-theme="black"] .admin-page .admin-booking-box,
html[data-theme="black"] .admin-page .admin-booking-service-row,
html[data-theme="black"] .admin-page .admin-banner-card,
html[data-theme="black"] .admin-page .admin-appointment-card,
html[data-theme="black"] .admin-page .admin-tablet-control,
html[data-theme="black"] .admin-page .admin-selected-card,
html[data-theme="black"] .admin-page .admin-hairstyle-card {
  background: #080a0c !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  box-shadow: none !important;
}

html[data-theme="black"] .admin-page .admin-section-nav,
html[data-theme="black"] .admin-page .admin-language-control,
html[data-theme="black"] .admin-page .admin-theme-mode-control,
html[data-theme="black"] .admin-page .admin-design-logo-control,
html[data-theme="black"] .admin-page .admin-booking-box,
html[data-theme="black"] .admin-page .admin-booking-service-row,
html[data-theme="black"] .admin-page .admin-banner-card {
  background: #0d1013 !important;
}

html[data-theme="black"] .admin-page input,
html[data-theme="black"] .admin-page textarea,
html[data-theme="black"] .admin-page select,
html[data-theme="black"] .admin-page .admin-banner-preview,
html[data-theme="black"] .admin-page .admin-booking-barber-check {
  background: #050607 !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #f5f7fb !important;
}

html[data-theme="black"] .admin-page .admin-section-tab,
html[data-theme="black"] .admin-page .admin-secondary-button,
html[data-theme="black"] .admin-page .admin-logo-button,
html[data-theme="black"] .admin-page .admin-theme-mode-button {
  background: #101316 !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #f5f7fb !important;
}

html[data-theme="black"] .admin-page .admin-section-tab.is-active,
html[data-theme="black"] .admin-page .admin-primary-button,
html[data-theme="black"] .admin-page .admin-theme-mode-button.is-active,
html[data-theme="black"] .admin-page .admin-booking-subtab.is-active {
  background: #0f8f78 !important;
  border-color: #16a085 !important;
  color: #ffffff !important;
}

html[data-theme="black"] .admin-page h1,
html[data-theme="black"] .admin-page h2,
html[data-theme="black"] .admin-page h3,
html[data-theme="black"] .admin-page h4,
html[data-theme="black"] .admin-page strong,
html[data-theme="black"] .admin-page label {
  color: #ffffff !important;
}

html[data-theme="black"] .admin-page p,
html[data-theme="black"] .admin-page span,
html[data-theme="black"] .admin-page small,
html[data-theme="black"] .admin-page .admin-panel-note,
html[data-theme="black"] .admin-page .admin-booking-help {
  color: #b8c0c8 !important;
}

/* Final visible text tone for black admin mode. */
html[data-theme="black"] .admin-page h1,
html[data-theme="black"] .admin-page h2,
html[data-theme="black"] .admin-page h3,
html[data-theme="black"] .admin-page h4,
html[data-theme="black"] .admin-page strong,
html[data-theme="black"] .admin-page label {
  color: #9ca5af !important;
}

html[data-theme="black"] .admin-page p,
html[data-theme="black"] .admin-page span,
html[data-theme="black"] .admin-page small,
html[data-theme="black"] .admin-page .admin-panel-note,
html[data-theme="black"] .admin-page .admin-booking-help {
  color: #6f7882 !important;
}

/* Final visible field/button text tone for black admin mode. */
html[data-theme="black"] .admin-page input,
html[data-theme="black"] .admin-page textarea,
html[data-theme="black"] .admin-page select,
html[data-theme="black"] .admin-page option,
html[data-theme="black"] .admin-page .admin-section-tab,
html[data-theme="black"] .admin-page .admin-secondary-button,
html[data-theme="black"] .admin-page .admin-logo-button,
html[data-theme="black"] .admin-page .admin-theme-mode-button,
html[data-theme="black"] .admin-page .admin-booking-subtab,
html[data-theme="black"] .admin-page .admin-booking-barber-check {
  color: #9aa3ac !important;
}

html[data-theme="black"] .admin-page input::placeholder,
html[data-theme="black"] .admin-page textarea::placeholder {
  color: #65707a !important;
}

html[data-theme="black"] .admin-page .admin-section-tab.is-active,
html[data-theme="black"] .admin-page .admin-primary-button,
html[data-theme="black"] .admin-page .admin-theme-mode-button.is-active,
html[data-theme="black"] .admin-page .admin-booking-subtab.is-active {
  color: #d4d9de !important;
}
/* Final black-mode contrast for inactive appointment subtabs. */
html[data-theme="black"] .admin-page .admin-booking-subtab:not(.is-active) {
  background: #34383d !important;
  border-color: #4a5056 !important;
  color: #c3c9cf !important;
}

html[data-theme="black"] .admin-page .admin-booking-subtab:not(.is-active):hover,
html[data-theme="black"] .admin-page .admin-booking-subtab:not(.is-active):focus-visible {
  background: #3d4248 !important;
  color: #d7dce0 !important;
}
/* Compact save controls inside Design&Web blocks. */
.admin-design-block-with-save {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.admin-design-accordion {
  border: 1px solid rgba(15, 143, 120, 0.2);
  border-radius: 8px;
  background: rgba(15, 143, 120, 0.035);
  overflow: visible;
}

.admin-design-accordion + .admin-design-accordion {
  margin-top: 12px;
}

.admin-design-accordion-summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.admin-design-accordion-summary::-webkit-details-marker {
  display: none;
}

.admin-design-accordion-summary::after {
  content: "+";
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #08705f;
  border: 1px solid rgba(15, 143, 120, 0.28);
  border-radius: 999px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.admin-design-accordion[open] > .admin-design-accordion-summary::after {
  content: "-";
}

.admin-design-accordion-summary > strong {
  font-size: 16px;
}

.admin-design-accordion-summary > span {
  margin-left: auto;
  color: var(--sarko-muted, #52627a);
  font-size: 13px;
  line-height: 1.35;
  text-align: right;
}

.admin-design-accordion-body {
  display: grid;
  gap: 12px;
  padding: 0 16px 16px;
}

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

@media (max-width: 720px) {
  .admin-inline-grid {
    grid-template-columns: 1fr;
  }
}

.admin-design-subaccordion {
  display: block;
  overflow: visible;
}

.admin-design-subaccordion.admin-design-logo-control {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.admin-design-subaccordion-summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 52px;
  cursor: pointer;
  list-style: none;
}

.admin-design-subaccordion-summary::-webkit-details-marker {
  display: none;
}

.admin-design-subaccordion-summary::after {
  content: "+";
  display: grid;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  place-items: center;
  color: #08705f;
  border: 1px solid rgba(15, 143, 120, 0.28);
  border-radius: 999px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}

.admin-design-subaccordion[open] > .admin-design-subaccordion-summary::after {
  content: "-";
}

.admin-design-subaccordion-summary > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-design-subaccordion-summary span {
  color: var(--sarko-muted, #52627a);
  font-size: 13px;
  line-height: 1.35;
}

.admin-design-subaccordion-body {
  display: grid;
  gap: 12px;
  padding-top: 12px;
}

.admin-block-save-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.admin-block-save-button {
  min-height: 38px;
  padding: 0 16px;
  font-size: 13px;
}

.admin-text-style-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 16px;
}

.admin-text-style-controls label {
  display: grid;
  gap: 4px;
  margin: 0;
  color: #40556a;
  font-size: 12px;
  font-weight: 800;
}

.admin-text-style-controls select,
.admin-text-style-controls input[type="color"] {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(15, 143, 120, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #122033;
  font: 800 13px/1.1 Inter, Arial, sans-serif;
}

.admin-text-style-controls input[type="color"] {
  padding: 4px;
}

html[data-theme="black"] .admin-page .admin-text-style-controls label {
  color: #8f9aa6;
}

html[data-theme="black"] .admin-page .admin-text-style-controls select,
html[data-theme="black"] .admin-page .admin-text-style-controls input[type="color"] {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(0, 0, 0, 0.28);
  color: #c6ccd4;
}

html[data-theme="black"] .admin-page .admin-website-services-editor {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(0, 0, 0, 0.18);
}

html[data-theme="black"] .admin-page .admin-website-services-head strong,
html[data-theme="black"] .admin-page .admin-website-service-row label {
  color: #d7dde4;
}

html[data-theme="black"] .admin-page .admin-website-services-head span {
  color: #8f9aa6;
}

html[data-theme="black"] .admin-page .admin-website-service-row input {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(0, 0, 0, 0.28);
  color: #c6ccd4;
}

.admin-hours-services-save {
  grid-column: 1 / -1;
}

@media (max-width: 760px) {
  .admin-design-block-with-save {
    grid-template-columns: 1fr;
  }

  .admin-block-save-row,
  .admin-design-logo-actions .admin-block-save-button {
    width: 100%;
  }

  .admin-text-style-controls {
    grid-template-columns: 1fr;
  }

  .admin-website-services-head,
  .admin-website-service-row {
    grid-template-columns: 1fr;
  }

  .admin-website-services-head {
    display: grid;
  }
}

/* Remove visual wrapper around language/logo while keeping their positions. */
.admin-design-top-control {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Give design helper descriptions breathing room below fields. */
.admin-field-hint {
  margin-top: 10px !important;
  margin-bottom: 8px;
}

/* Design&Web legal text blocks. */
.admin-legal-content-control {
  display: grid;
  gap: 12px;
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

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

.admin-legal-content-head > div {
  display: grid;
  gap: 4px;
}

.admin-legal-content-head span {
  color: var(--sarko-muted, #52627a);
  font-size: 13px;
  line-height: 1.35;
}

.admin-legal-content-control textarea {
  min-height: 130px;
}

.admin-legal-field {
  display: grid;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(15, 143, 120, 0.24);
}

.admin-legal-field:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.admin-legal-upload-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-height: 30px;
  margin-top: -2px;
  margin-bottom: 2px;
}

.admin-legal-upload-button {
  min-height: 28px;
  padding: 7px 12px;
  white-space: nowrap;
}

.admin-legal-upload-row span {
  min-width: 0;
  color: var(--sarko-muted, #52627a);
  font-size: 12px;
  line-height: 1.25;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme="black"] .admin-page .admin-design-accordion {
  background: #0d1013 !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}

html[data-theme="black"] .admin-page .admin-design-accordion-summary > span,
html[data-theme="black"] .admin-page .admin-legal-content-head span {
  color: #6f7882 !important;
}

html[data-theme="black"] .admin-page .admin-design-accordion-summary::after {
  color: #9aa3ac !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}

html[data-theme="black"] .admin-page .admin-design-subaccordion-summary span {
  color: #6f7882 !important;
}

html[data-theme="black"] .admin-page .admin-design-subaccordion-summary::after {
  color: #9aa3ac !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}

@media (max-width: 760px) {
  .admin-design-accordion-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-design-accordion-summary > span {
    margin-left: 0;
    text-align: left;
  }

  .admin-design-accordion-summary::after {
    position: absolute;
    right: 16px;
  }

  .admin-legal-content-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-legal-upload-row {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-legal-upload-row span {
    text-align: left;
  }
}

/* Admin navigation stable: avoid desktop scrollbar flicker after font loading. */
.admin-page .admin-section-nav {
  align-items: center !important;
  flex-wrap: wrap !important;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
  scrollbar-width: none !important;
}

.admin-page .admin-section-nav::-webkit-scrollbar {
  display: none !important;
}

.admin-page .admin-section-tab {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  min-width: max-content !important;
  min-height: 44px !important;
  padding: 0 15px !important;
  line-height: 1.1 !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.admin-page .admin-section-tab[data-admin-tab="design"],
.admin-page .admin-section-tab[data-admin-tab="security"] {
  padding-left: 17px !important;
  padding-right: 17px !important;
}

@media (max-width: 820px) {
  .admin-page .admin-section-nav {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

/* Admin desktop visual scale v2: keep the desktop admin view slightly smaller. */
@media (min-width: 1200px) and (hover: hover) and (pointer: fine) {
  body.admin-page {
    overflow-x: auto !important;
  }

  body.admin-page .admin-shell {
    zoom: 1.125;
    overflow-x: visible !important;
    transform-origin: top center;
  }
}

/* Admin dashboard frame v1: remove the enclosing visual box without moving content. */
body.admin-page .admin-dashboard {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

/* Admin dashboard frame v2: keep the outer box invisible in black themes too. */
html[data-theme="black"] body.admin-page .admin-dashboard,
html[data-theme="black"] .admin-page .admin-dashboard,
html[data-theme="black"][data-theme-variant="black-gold"] body.admin-page .admin-dashboard,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-page .admin-dashboard {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

/* Admin black page background v2: lighten the outer black area slightly. */
html[data-theme="black"] body.admin-page,
html[data-theme="black"] .admin-page,
html[data-theme="black"][data-theme-variant="black-gold"] body.admin-page,
html[data-theme="black"][data-theme-variant="black-gold"] .admin-page {
  background: #1a1d20 !important;
}

/* Admin black inner surfaces v1: lighten panels and controls without layout changes. */
html[data-theme="black"] .admin-page .admin-header,
html[data-theme="black"] .admin-page .admin-section-nav,
html[data-theme="black"] .admin-page .admin-panel,
html[data-theme="black"] .admin-page .admin-form,
html[data-theme="black"] .admin-page .admin-settings-panel,
html[data-theme="black"] .admin-page .admin-design-logo-control,
html[data-theme="black"] .admin-page .admin-language-control,
html[data-theme="black"] .admin-page .admin-theme-mode-control,
html[data-theme="black"] .admin-page .admin-booking-subpanel,
html[data-theme="black"] .admin-page .admin-booking-box,
html[data-theme="black"] .admin-page .admin-booking-service-row,
html[data-theme="black"] .admin-page .admin-banner-card,
html[data-theme="black"] .admin-page .admin-appointment-card,
html[data-theme="black"] .admin-page .admin-tablet-control,
html[data-theme="black"] .admin-page .admin-selected-card,
html[data-theme="black"] .admin-page .admin-hairstyle-card {
  background: #15191d !important;
}

html[data-theme="black"] .admin-page .admin-style-panel,
html[data-theme="black"] .admin-page .admin-design-accordion-body,
html[data-theme="black"] .admin-page .admin-design-subaccordion-body {
  background: #15191d !important;
}

html[data-theme="black"] .admin-page input,
html[data-theme="black"] .admin-page textarea,
html[data-theme="black"] .admin-page select,
html[data-theme="black"] .admin-page .admin-banner-preview,
html[data-theme="black"] .admin-page .admin-booking-barber-check {
  background: #111519 !important;
}

/* Customer black background v1: lighten only the customer tablet dark theme, no layout changes. */
html[data-theme="black"] .tablet-page.customer-page,
html[data-theme="black"] body.customer-native-phone-view .tablet-page.customer-page,
html[data-theme="black"][data-theme-variant="black-gold"] .tablet-page.customer-page,
html[data-theme="black"][data-theme-variant="black-gold"] body.customer-native-phone-view .tablet-page.customer-page {
  background: #1d2025 !important;
}

html[data-theme="black"] .customer-page .customer-panel,
html[data-theme="black"] body.customer-native-phone-view .customer-page .customer-panel,
html[data-theme="black"][data-theme-variant="black-gold"] .customer-page .customer-panel,
html[data-theme="black"][data-theme-variant="black-gold"] body.customer-native-phone-view .customer-page .customer-panel {
  background: #23272c !important;
}

html[data-theme="black"] .customer-page .customer-step,
html[data-theme="black"] .customer-page .select-card,
html[data-theme="black"] .customer-page .employee-card,
html[data-theme="black"] .customer-page .hairstyle-card,
html[data-theme="black"] .customer-page .customer-loop-track .employee-card,
html[data-theme="black"] .customer-page .customer-loop-track .hairstyle-card,
html[data-theme="black"] body.customer-native-phone-view .customer-page .customer-step,
html[data-theme="black"] body.customer-native-phone-view .customer-page .select-card,
html[data-theme="black"] body.customer-native-phone-view .customer-page .employee-card,
html[data-theme="black"] body.customer-native-phone-view .customer-page .hairstyle-card,
html[data-theme="black"] body.customer-native-phone-view .customer-page .customer-loop-track .employee-card,
html[data-theme="black"] body.customer-native-phone-view .customer-page .customer-loop-track .hairstyle-card,
html[data-theme="black"][data-theme-variant="black-gold"] .customer-page .customer-step,
html[data-theme="black"][data-theme-variant="black-gold"] .customer-page .select-card,
html[data-theme="black"][data-theme-variant="black-gold"] .customer-page .employee-card,
html[data-theme="black"][data-theme-variant="black-gold"] .customer-page .hairstyle-card,
html[data-theme="black"][data-theme-variant="black-gold"] .customer-page .customer-loop-track .employee-card,
html[data-theme="black"][data-theme-variant="black-gold"] .customer-page .customer-loop-track .hairstyle-card,
html[data-theme="black"][data-theme-variant="black-gold"] body.customer-native-phone-view .customer-page .customer-step,
html[data-theme="black"][data-theme-variant="black-gold"] body.customer-native-phone-view .customer-page .select-card,
html[data-theme="black"][data-theme-variant="black-gold"] body.customer-native-phone-view .customer-page .employee-card,
html[data-theme="black"][data-theme-variant="black-gold"] body.customer-native-phone-view .customer-page .hairstyle-card,
html[data-theme="black"][data-theme-variant="black-gold"] body.customer-native-phone-view .customer-page .customer-loop-track .employee-card,
html[data-theme="black"][data-theme-variant="black-gold"] body.customer-native-phone-view .customer-page .customer-loop-track .hairstyle-card {
  background: #292e34 !important;
}

html[data-theme="black"] .customer-page .employee-quick-button,
html[data-theme="black"] body.customer-native-phone-view .customer-page .employee-quick-button,
html[data-theme="black"] .customer-page .name-row input,
html[data-theme="black"] body.customer-native-phone-view .customer-page .name-row input,
html[data-theme="black"] .customer-page .camera-button,
html[data-theme="black"] body.customer-native-phone-view .customer-page .camera-button,
html[data-theme="black"][data-theme-variant="black-gold"] .customer-page .employee-quick-button,
html[data-theme="black"][data-theme-variant="black-gold"] body.customer-native-phone-view .customer-page .employee-quick-button,
html[data-theme="black"][data-theme-variant="black-gold"] .customer-page .name-row input,
html[data-theme="black"][data-theme-variant="black-gold"] body.customer-native-phone-view .customer-page .name-row input,
html[data-theme="black"][data-theme-variant="black-gold"] .customer-page .camera-button,
html[data-theme="black"][data-theme-variant="black-gold"] body.customer-native-phone-view .customer-page .camera-button {
  background: #2a2e34 !important;
}

/* Customer mobile header v1: show full admin shop name and keep controls compact. */
@media (max-width: 720px) {
  .customer-page .customer-header,
  body.customer-native-phone-view .customer-page .customer-header {
    grid-template-columns: 48px minmax(0, 1fr) auto !important;
    gap: 8px !important;
    align-items: center !important;
  }

  .customer-page .brand-icon.customer-brand-logo,
  body.customer-native-phone-view .customer-page .brand-icon.customer-brand-logo {
    width: 44px !important;
    height: 44px !important;
    flex-basis: 44px !important;
    padding: 3px !important;
    border-radius: 10px !important;
  }

  .customer-page .customer-header > div:not(.customer-language-switch),
  body.customer-native-phone-view .customer-page .customer-header > div:not(.customer-language-switch) {
    min-width: 0 !important;
    overflow: visible !important;
  }

  .customer-page .customer-kicker,
  body.customer-native-phone-view .customer-page .customer-kicker {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  .customer-page .customer-kicker [data-shop-name],
  body.customer-native-phone-view .customer-page .customer-kicker [data-shop-name] {
    display: block !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    font-size: 13px;
    line-height: 1.05 !important;
  }

  .customer-page .customer-header h1,
  body.customer-native-phone-view .customer-page .customer-header h1 {
    display: block !important;
    margin: 2px 0 0 !important;
    font-size: 16px !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
  }

  .customer-page .customer-header p:not(.customer-kicker),
  body.customer-native-phone-view .customer-page .customer-header p:not(.customer-kicker) {
    display: none !important;
  }

  .customer-page .customer-language-switch,
  body.customer-native-phone-view .customer-page .customer-language-switch {
    gap: 4px !important;
    padding: 0 !important;
  }

  .customer-page .customer-language-switch button,
  body.customer-native-phone-view .customer-page .customer-language-switch button {
    min-width: 30px !important;
    width: 30px !important;
    min-height: 30px !important;
    height: 30px !important;
    border-radius: 9px !important;
    font-size: 16px !important;
  }

  .customer-page .customer-language-switch .customer-language-flag,
  body.customer-native-phone-view .customer-page .customer-language-switch .customer-language-flag {
    font-size: 17px !important;
  }
}

/* Barber queue image containment v1: keep avatar placeholders inside each order card. */
.barber-page .order-list .queue-item {
  display: grid !important;
  grid-template-columns: 74px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 104px !important;
  box-sizing: border-box !important;
  padding: 10px 12px !important;
  overflow: hidden !important;
  border-radius: 14px !important;
}

.barber-page .order-list .queue-image {
  width: 74px !important;
  height: 74px !important;
  min-width: 74px !important;
  min-height: 74px !important;
  max-width: 74px !important;
  max-height: 74px !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  align-self: center !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

.barber-page .order-list .queue-image img,
.barber-page .order-list .queue-image svg,
.barber-page .order-list .queue-image .customer-placeholder-icon {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  display: block !important;
  object-fit: cover !important;
}

.barber-page .order-list .queue-image svg {
  width: 34px !important;
  height: 34px !important;
  object-fit: contain !important;
}

.barber-page .order-list .queue-item > span:not(.queue-image) {
  min-width: 0 !important;
  overflow: hidden !important;
}

.barber-page .order-list .queue-item strong,
.barber-page .order-list .queue-item small,
.barber-page .order-list .queue-item em {
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.barber-page .order-list .queue-item b {
  max-width: 76px !important;
  justify-self: end !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-size: 11px !important;
}

/* Barber queue top alignment v1: first order starts directly under the controls. */
.barber-page .queue-panel {
  padding-top: 20px !important;
}

.barber-page .queue-header {
  margin-bottom: 10px !important;
  gap: 10px !important;
}

.barber-page .order-list {
  display: flex !important;
  flex-direction: column !important;
  align-content: start !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  box-sizing: border-box !important;
  padding: 4px 10px 18px 4px !important;
  margin-top: 0 !important;
  gap: 10px !important;
}

.barber-page .order-list .queue-item:first-of-type {
  margin-top: 0 !important;
}

/* Security block duration marker: only the active duration button changes color. */
.admin-page .admin-security-actions .admin-secondary-button.is-active-security-block {
  background: #0f8f78 !important;
  border-color: #0f8f78 !important;
  color: #fff !important;
  box-shadow: none !important;
  transform: none !important;
}

.admin-page .admin-security-actions .admin-secondary-button.is-active-security-block:hover {
  background: #0c7c68 !important;
  border-color: #0c7c68 !important;
  color: #fff !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Admin mobile layout v1: make Termine and Sicherheit usable on phones. */
@media (max-width: 720px) {
  body.admin-page {
    overflow-x: hidden !important;
  }

  body.admin-page .admin-shell {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px !important;
    zoom: 1 !important;
    overflow-x: hidden !important;
  }

  .admin-page .admin-dashboard,
  .admin-page .admin-panel,
  .admin-page .admin-booking-subpanel,
  .admin-page .admin-form,
  .admin-page .admin-security-risk {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .admin-page .admin-header,
  .admin-page .admin-panel-heading,
  .admin-page .admin-booking-inner-heading,
  .admin-page .admin-security-risk-head,
  .admin-page .admin-booking-box-head,
  .admin-page .admin-calendar-heading {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .admin-page .admin-header h1,
  .admin-page .admin-panel h2 {
    font-size: 26px !important;
    line-height: 1.1 !important;
  }

  .admin-page .admin-panel h3 {
    font-size: 19px !important;
    line-height: 1.15 !important;
  }

  .admin-page .admin-panel-note {
    font-size: 13px !important;
    line-height: 1.35 !important;
  }

  .admin-page .admin-section-nav,
  .admin-page .admin-booking-subnav {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 8px !important;
    scroll-snap-type: x proximity !important;
  }

  .admin-page .admin-section-tab,
  .admin-page .admin-booking-subtab {
    flex: 0 0 auto !important;
    min-width: 96px !important;
    min-height: 42px !important;
    padding: 0 12px !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
    scroll-snap-align: start !important;
    white-space: nowrap !important;
  }

  .admin-page .admin-nav-reload-button {
    flex: 0 0 auto !important;
    min-width: 112px !important;
    min-height: 42px !important;
    font-size: 12px !important;
  }

  .admin-page .admin-section-tab[data-admin-tab="design"],
  .admin-page .admin-section-tab[data-admin-tab="appointments"],
  .admin-page .admin-section-tab[data-admin-tab="qr"] {
    display: none !important;
  }

  .admin-page .admin-booking-toggles,
  .admin-page .admin-booking-actions,
  .admin-page .admin-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .admin-page .admin-primary-button,
  .admin-page .admin-secondary-button,
  .admin-page .admin-danger-button,
  .admin-page .admin-booking-toggle {
    width: 100% !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
  }

  .admin-page .admin-appointment-card {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 12px !important;
    overflow: hidden !important;
  }

  .admin-page .admin-appointment-card > div,
  .admin-page .admin-appointment-card p,
  .admin-page .admin-appointment-card strong {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
  }

  .admin-page .admin-appointment-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .admin-page .admin-appointment-actions .admin-appointment-status {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-height: 36px !important;
    display: grid !important;
    place-items: center !important;
  }

  .admin-page .admin-calendar-main {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .admin-page .admin-calendar-form,
  .admin-page .admin-calendar-board,
  .admin-page .admin-booking-box {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .admin-page .admin-calendar-employee-rail {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 8px !important;
    padding-bottom: 4px !important;
  }

  .admin-page .admin-calendar-employee-rail > * {
    flex: 0 0 auto !important;
  }

  .admin-page .admin-calendar-time-row,
  .admin-page .admin-calendar-monthbar {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .admin-page .admin-calendar-grid {
    min-width: 0 !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .admin-page .admin-app-install-stats,
  .admin-page .admin-security-risk {
    padding: 12px !important;
  }

  .admin-page .admin-security-accordion-toggle {
    min-height: 42px !important;
    padding: 9px 10px !important;
    font-size: 13px !important;
  }

  .admin-page .admin-security-risk-list {
    display: grid !important;
    gap: 8px !important;
  }

  .admin-page .admin-security-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 9px !important;
    overflow: hidden !important;
  }

  .admin-page .admin-security-main {
    min-width: 0 !important;
    max-width: 100% !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .admin-page .admin-security-main strong {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 12px !important;
  }

  .admin-page .admin-security-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: 100% !important;
  }

  .admin-page .admin-security-actions .admin-secondary-button,
  .admin-page .admin-security-actions .admin-danger-button {
    min-width: 0 !important;
    min-height: 36px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
  }
}

/* Admin and barber popup mobile fit: centered, stable, no clipped text. */
@media (max-width: 720px) {
  .admin-confirm-modal,
  .admin-confirm-overlay,
  .barber-confirm-modal {
    align-items: center !important;
    justify-content: center !important;
    padding: 14px !important;
  }

  .admin-confirm-card,
  .admin-confirm-dialog,
  .barber-confirm-card {
    width: min(100%, calc(100vw - 28px)) !important;
    max-width: 430px !important;
    max-height: calc(100vh - 28px) !important;
    overflow: auto !important;
    border-radius: 14px !important;
    padding: 18px !important;
  }

  .admin-confirm-card h2,
  .admin-confirm-dialog strong,
  .barber-confirm-title {
    font-size: 20px !important;
    line-height: 1.2 !important;
  }

  .admin-confirm-card p,
  .admin-confirm-dialog p,
  .barber-confirm-message {
    font-size: 14px !important;
    line-height: 1.45 !important;
    overflow-wrap: anywhere;
  }

  .admin-confirm-actions,
  .admin-confirm-dialog > div,
  .barber-confirm-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .admin-confirm-actions button,
  .admin-confirm-dialog .admin-secondary-button,
  .admin-confirm-dialog .admin-danger-button,
  .barber-confirm-button {
    min-width: 0 !important;
    width: 100% !important;
    min-height: 44px !important;
    white-space: normal !important;
  }
}

/* Barber booking queue v1: show upcoming same-day appointments as compact time rows. */
.barber-page .order-list .queue-item.is-booking-upcoming {
  grid-template-columns: 34px minmax(0, 1fr) auto !important;
  min-height: 46px !important;
  padding: 7px 9px !important;
  gap: 8px !important;
  border-radius: 11px !important;
  background: linear-gradient(90deg, rgba(218, 252, 236, 0.96), rgba(232, 255, 245, 0.86)) !important;
  border-color: rgba(71, 214, 143, 0.48) !important;
  color: #0b2b24 !important;
  box-shadow: none !important;
  transform: none !important;
}

.barber-page .order-list .queue-item.is-booking-upcoming.is-selected {
  background: linear-gradient(90deg, rgba(218, 252, 236, 0.96), rgba(232, 255, 245, 0.86)) !important;
  border-color: rgba(71, 214, 143, 0.48) !important;
  box-shadow: none !important;
  transform: none !important;
}

.barber-page .order-list .queue-item.is-booking-upcoming .queue-image {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  border-radius: 8px !important;
  background: rgba(15, 143, 120, 0.12) !important;
}

.barber-page .order-list .queue-calendar-icon {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 15px;
  line-height: 1;
}

.barber-page .order-list .queue-item.is-booking-upcoming strong {
  font-size: 12px !important;
  line-height: 1.05 !important;
  color: #063d34 !important;
}

.barber-page .order-list .queue-item.is-booking-upcoming small,
.barber-page .order-list .queue-item.is-booking-upcoming em {
  display: inline !important;
  font-size: 10px !important;
  line-height: 1.1 !important;
  color: #31594c !important;
}

.barber-page .order-list .queue-item.is-booking-upcoming small::after {
  content: " · ";
}

.barber-page .order-list .queue-item.is-booking-upcoming b {
  max-width: none !important;
  padding: 4px 7px !important;
  border-radius: 999px !important;
  color: #047857 !important;
  background: rgba(15, 143, 120, 0.12) !important;
  font-size: 9px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.barber-page .order-list .queue-item.is-booking-soon {
  border-color: rgba(71, 214, 143, 0.7) !important;
  background: linear-gradient(90deg, rgba(218, 252, 236, 0.98), rgba(240, 255, 247, 0.94)) !important;
  color: #0b2b24 !important;
}

.barber-page .order-list .queue-item.is-booking-soon b,
.barber-page .order-list .queue-item.is-booking-due b {
  color: #047857 !important;
}

.barber-page .order-list .queue-item.is-booking-upcoming:first-of-type:not(.is-held) {
  background: linear-gradient(90deg, rgba(218, 252, 236, 0.96), rgba(232, 255, 245, 0.86)) !important;
  border-color: rgba(71, 214, 143, 0.48) !important;
  color: #0b2b24 !important;
  box-shadow: none !important;
}

.barber-page .order-list .queue-item.is-booking-bottom-start {
  margin-top: auto !important;
}

/* Barber booking queue dark-theme contrast v1: keep text readable on light booking cards. */
html[data-theme="black"] .barber-page .order-list .queue-item.is-booking-order,
html[data-theme="black"] .barber-page .order-list .queue-item.is-booking-order.is-selected,
html[data-theme="black"] .barber-page .order-list .queue-item.is-booking-upcoming,
html[data-theme="black"] .barber-page .order-list .queue-item.is-booking-upcoming.is-selected,
html[data-theme="black"] .barber-page .order-list .queue-item.is-booking-soon,
html[data-theme="black"] .barber-page .order-list .queue-item.is-booking-soon.is-selected,
html[data-theme="black"] .barber-page .order-list .queue-item.is-booking-due,
html[data-theme="black"] .barber-page .order-list .queue-item.is-booking-due.is-selected {
  color: #0b2b24 !important;
  text-shadow: none !important;
}

html[data-theme="black"] .barber-page .order-list .queue-item.is-booking-order strong,
html[data-theme="black"] .barber-page .order-list .queue-item.is-booking-order small,
html[data-theme="black"] .barber-page .order-list .queue-item.is-booking-order em {
  color: #063d34 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

html[data-theme="black"] .barber-page .order-list .queue-item.is-booking-order small,
html[data-theme="black"] .barber-page .order-list .queue-item.is-booking-order em {
  color: #31594c !important;
}

html[data-theme="black"] .barber-page .order-list .queue-item.is-booking-order b {
  color: #047857 !important;
  background: rgba(15, 143, 120, 0.14) !important;
  border-color: rgba(15, 143, 120, 0.22) !important;
  text-shadow: none !important;
}

.barber-page .order-list .queue-item.is-booking-order b {
  color: #047857 !important;
  background: rgba(15, 143, 120, 0.14) !important;
  border-color: rgba(15, 143, 120, 0.22) !important;
  text-shadow: none !important;
}

/* Barber no-show action contrast v1: keep the no-show button red in every design. */
.barber-page .barber-action-button.no-show,
html[data-theme="black"] .barber-page .barber-action-button.no-show {
  color: #ffffff !important;
  background: linear-gradient(145deg, #ef4444, #b91c1c) !important;
  border-color: rgba(248, 113, 113, 0.72) !important;
  box-shadow: 0 18px 44px rgba(185, 28, 28, 0.24) !important;
  text-shadow: none !important;
}

.barber-page .barber-action-button.no-show:disabled,
html[data-theme="black"] .barber-page .barber-action-button.no-show:disabled {
  color: #ffffff !important;
  background: linear-gradient(145deg, rgba(239, 68, 68, 0.78), rgba(185, 28, 28, 0.72)) !important;
  opacity: 0.58 !important;
}

/* Style image labels v1: names for normal and no-style reference images. */
.admin-style-slot-label,
.admin-no-style-label {
  display: grid;
  gap: 4px;
  width: 100%;
  color: #334155;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.15;
}

.admin-style-slot-label input,
.admin-no-style-label input {
  width: 100%;
  min-height: 27px;
  border: 1px solid rgba(15, 143, 120, 0.28);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 7px;
  outline: none;
}

.admin-style-slot-label input:focus,
.admin-no-style-label input:focus {
  border-color: rgba(15, 143, 120, 0.72);
  box-shadow: 0 0 0 3px rgba(15, 143, 120, 0.14);
}

html[data-theme="black"] .admin-style-slot-label,
html[data-theme="black"] .admin-no-style-label,
html[data-theme="black-gold"] .admin-style-slot-label,
html[data-theme="black-gold"] .admin-no-style-label {
  color: #f8fafc;
}

/* Barber image stage transparency v1: remove green/glass fill around the big preview. */
.barber-page .main-style-image,
html[data-theme="black"] .barber-page .main-style-image,
html[data-theme="black-gold"] .barber-page .main-style-image {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.barber-page .main-style-image::before,
.barber-page .main-style-image::after,
html[data-theme="black"] .barber-page .main-style-image::before,
html[data-theme="black"] .barber-page .main-style-image::after,
html[data-theme="black-gold"] .barber-page .main-style-image::before,
html[data-theme="black-gold"] .barber-page .main-style-image::after {
  background: transparent !important;
  opacity: 0 !important;
}

.barber-page .thumb-button,
html[data-theme="black"] .barber-page .thumb-button,
html[data-theme="black-gold"] .barber-page .thumb-button {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(15, 143, 120, 0.18) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

/* Admin Design&Web compact layout v1: denser, clearer editing flow. */
.admin-page .admin-settings-panel[data-admin-section="design"] {
  width: 100%;
  max-width: none;
  grid-column: 1 / -1;
}

.admin-page .admin-settings-panel[data-admin-section="design"] > h2 {
  margin-bottom: 14px;
  font-size: clamp(24px, 2.1vw, 31px);
}

.admin-page .admin-settings-panel[data-admin-section="design"] .admin-form {
  gap: 12px;
}

.admin-page .admin-settings-panel[data-admin-section="design"] .admin-theme-mode-control,
.admin-page .admin-settings-panel[data-admin-section="design"] .admin-design-accordion {
  border-radius: 10px;
}

.admin-page .admin-settings-panel[data-admin-section="design"] .admin-theme-mode-control {
  min-height: 0;
  padding: 12px 14px;
}

.admin-page .admin-settings-panel[data-admin-section="design"] .admin-design-accordion + .admin-design-accordion {
  margin-top: 10px;
}

.admin-page .admin-settings-panel[data-admin-section="design"] .admin-design-accordion-summary {
  min-height: 46px;
  padding: 10px 14px;
}

.admin-page .admin-settings-panel[data-admin-section="design"] .admin-design-accordion-summary > strong {
  font-size: 15px;
}

.admin-page .admin-settings-panel[data-admin-section="design"] .admin-design-accordion-summary > span,
.admin-page .admin-settings-panel[data-admin-section="design"] .admin-design-subaccordion-summary span {
  max-width: 420px;
  font-size: 12px;
}

.admin-page .admin-settings-panel[data-admin-section="design"] .admin-design-accordion-summary::after {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
  font-size: 16px;
}

.admin-page .admin-settings-panel[data-admin-section="design"] .admin-design-accordion-body {
  gap: 9px;
  padding: 0 14px 14px;
}

.admin-page .admin-settings-panel[data-admin-section="design"] .admin-design-top-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
  gap: 10px;
  align-items: stretch;
}

.admin-page .admin-settings-panel[data-admin-section="design"] .admin-language-control,
.admin-page .admin-settings-panel[data-admin-section="design"] .admin-design-top-control > .admin-design-logo-control {
  min-height: 0;
  padding: 10px 12px;
  border-radius: 9px;
}

.admin-page .admin-settings-panel[data-admin-section="design"] .admin-design-logo-compact {
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
}

.admin-page .admin-settings-panel[data-admin-section="design"] .admin-design-logo-preview {
  width: 104px;
  min-height: 88px;
}

.admin-page .admin-settings-panel[data-admin-section="design"] .admin-design-logo-actions {
  gap: 6px;
}

.admin-page .admin-settings-panel[data-admin-section="design"] .admin-logo-button,
.admin-page .admin-settings-panel[data-admin-section="design"] .admin-block-save-button {
  min-height: 34px;
  padding: 0 13px;
  border-radius: 8px;
  font-size: 12px;
}

.admin-page .admin-settings-panel[data-admin-section="design"] label {
  margin: 8px 0 3px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.admin-page .admin-settings-panel[data-admin-section="design"] input[type="text"],
.admin-page .admin-settings-panel[data-admin-section="design"] input[type="email"],
.admin-page .admin-settings-panel[data-admin-section="design"] input[type="url"],
.admin-page .admin-settings-panel[data-admin-section="design"] textarea,
.admin-page .admin-settings-panel[data-admin-section="design"] select {
  min-height: 38px;
  border-radius: 8px;
  font-size: 13px;
}

.admin-page .admin-settings-panel[data-admin-section="design"] input[type="text"],
.admin-page .admin-settings-panel[data-admin-section="design"] input[type="email"],
.admin-page .admin-settings-panel[data-admin-section="design"] input[type="url"] {
  padding: 8px 12px;
}

.admin-page .admin-settings-panel[data-admin-section="design"] textarea {
  min-height: 86px;
  padding: 9px 12px;
  line-height: 1.42;
}

.admin-page .admin-settings-panel[data-admin-section="design"] #websiteIntroInput,
.admin-page .admin-settings-panel[data-admin-section="design"] #websiteAgbInput,
.admin-page .admin-settings-panel[data-admin-section="design"] #websiteImpressumInput,
.admin-page .admin-settings-panel[data-admin-section="design"] #websiteAboutInput {
  min-height: 82px;
}

.admin-page .admin-settings-panel[data-admin-section="design"] .admin-field-hint {
  margin: 2px 0 3px !important;
  color: #52627a;
  font-size: 11px;
  line-height: 1.3;
}

.admin-page .admin-settings-panel[data-admin-section="design"] .admin-text-style-controls {
  grid-template-columns: 1fr 1fr minmax(160px, 0.95fr);
  gap: 8px;
  margin: 4px 0 10px;
  padding: 8px;
  border: 1px solid rgba(15, 143, 120, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.38);
}

.admin-page .admin-settings-panel[data-admin-section="design"] .admin-text-style-controls label {
  gap: 3px;
  margin: 0;
  color: #40556a;
  font-size: 11px;
}

.admin-page .admin-settings-panel[data-admin-section="design"] .admin-text-style-controls select,
.admin-page .admin-settings-panel[data-admin-section="design"] .admin-text-style-controls input[type="color"] {
  min-height: 34px;
  border-radius: 7px;
  font-size: 12px;
}

.admin-page .admin-settings-panel[data-admin-section="design"] .admin-text-style-controls input[type="color"] {
  padding: 3px;
}

.admin-page .admin-settings-panel[data-admin-section="design"] .admin-inline-grid {
  gap: 8px;
}

.admin-page .admin-settings-panel[data-admin-section="design"] .admin-block-save-row {
  margin-top: 4px;
}

.admin-page .admin-settings-panel[data-admin-section="design"] .admin-website-services-editor,
.admin-page .admin-settings-panel[data-admin-section="design"] .admin-legal-content-control {
  gap: 8px;
}

html[data-theme="black"] .admin-page .admin-settings-panel[data-admin-section="design"] .admin-text-style-controls {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(0, 0, 0, 0.16);
}

@media (max-width: 900px) {
  .admin-page .admin-settings-panel[data-admin-section="design"] .admin-design-top-control,
  .admin-page .admin-settings-panel[data-admin-section="design"] .admin-design-logo-compact {
    grid-template-columns: 1fr;
  }

  .admin-page .admin-settings-panel[data-admin-section="design"] .admin-text-style-controls {
    grid-template-columns: 1fr;
  }
}
/* Cookie consent popup */
.website-legal-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 12, 16, 0.58);
  backdrop-filter: blur(8px);
}

.website-legal-modal.is-hidden {
  display: none;
}

.website-legal-dialog {
  width: min(760px, 100%);
  max-height: min(720px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid rgba(15, 143, 120, 0.18);
  border-radius: 8px;
  background: #ffffff;
  color: #17202a;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

.website-legal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(15, 143, 120, 0.18);
}

.website-legal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.website-legal-logo-frame {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border: 1px solid rgba(15, 143, 120, 0.18);
  border-radius: 8px;
  background: #ffffff;
}

.website-legal-logo-frame img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.website-legal-head h2 {
  margin: 0;
  color: #17202a;
  font-size: 22px;
  line-height: 1.2;
}

.website-legal-close {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(15, 143, 120, 0.2);
  border-radius: 8px;
  background: #ffffff;
  color: #17202a;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.website-legal-body {
  padding: 20px;
}

.website-legal-text {
  margin: 0;
  color: #374151;
  font-size: 16px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

html[data-theme="black"] .website-legal-dialog,
html[data-theme="black"] .website-legal-logo-frame,
html[data-theme="black"] .website-legal-close {
  border-color: rgba(255, 255, 255, 0.14);
  background: #171b21;
  color: #f7f3ed;
}

html[data-theme="black"] .website-legal-head {
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

html[data-theme="black"] .website-legal-head h2 {
  color: #f7f3ed;
}

html[data-theme="black"] .website-legal-text {
  color: #b8c0ca;
}

.cookie-consent {
  position: fixed;
  inset: 0;
  z-index: 2147483005;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 24px;
  background: rgba(12, 18, 24, 0.16);
}

.cookie-consent.is-hidden {
  display: none;
}

.cookie-consent-card {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(526px, calc(100vw - 32px));
  padding: 24px;
  border: 1px solid rgba(18, 24, 33, 0.12);
  border-radius: 8px;
  background: #ffffff;
  color: #1f2937;
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.22);
}

.cookie-consent-card h2,
.cookie-consent-card p {
  margin: 0;
}

.cookie-consent-card h2 {
  padding-right: 34px;
  font-size: 18px;
  line-height: 1.25;
}

.cookie-consent-card p {
  color: #374151;
  font-size: 14px;
  line-height: 1.55;
}

.cookie-consent-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #111827;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.cookie-consent-booking-note {
  padding: 12px 14px;
  border: 1px solid rgba(15, 143, 120, 0.28);
  border-radius: 8px;
  background: rgba(15, 143, 120, 0.08);
}

.cookie-consent-settings {
  display: grid;
  gap: 10px;
}

.cookie-consent-settings.is-hidden,
.cookie-consent-actions .is-hidden {
  display: none;
}

.cookie-consent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  border: 1px solid rgba(18, 24, 33, 0.12);
  border-radius: 8px;
  background: #f9fafb;
}

.cookie-consent-row span {
  display: grid;
  gap: 3px;
}

.cookie-consent-row strong {
  font-size: 14px;
}

.cookie-consent-row small {
  color: #6b7280;
  font-size: 12px;
}

.cookie-consent-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--site-accent, #0f8f78);
}

.cookie-consent-actions,
.cookie-consent-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-consent-actions button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(18, 24, 33, 0.1);
  border-radius: 4px;
  background: #f3f4f6;
  color: #1f2937;
  font-weight: 800;
  cursor: pointer;
}

.cookie-consent-actions .cookie-consent-primary {
  border-color: var(--site-accent, #0f8f78);
  background: var(--site-accent, #0f8f78);
  color: #ffffff;
}

.cookie-consent-links {
  justify-content: center;
  padding-top: 2px;
}

.cookie-consent-links a {
  color: #4b5563;
  font-size: 13px;
  text-decoration: none;
}

.cookie-consent-links a:hover {
  color: var(--site-accent-dark, #08705f);
}

html[data-theme="black"] .cookie-consent-card {
  border-color: rgba(255, 255, 255, 0.14);
  background: #171b21;
  color: #f7f3ed;
}

html[data-theme="black"] .cookie-consent-card p,
html[data-theme="black"] .cookie-consent-row small,
html[data-theme="black"] .cookie-consent-links a {
  color: #b8c0ca;
}

html[data-theme="black"] .cookie-consent-close {
  color: #f7f3ed;
}

html[data-theme="black"] .cookie-consent-row,
html[data-theme="black"] .cookie-consent-actions button {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: #f7f3ed;
}

@media (max-width: 640px) {
  .cookie-consent {
    align-items: flex-end;
    justify-content: center;
    padding: 12px;
  }

  .cookie-consent-card {
    width: 100%;
    padding: 20px;
  }

  .cookie-consent-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (min-width: 821px) {
  body.admin-page {
    --admin-scale: 0.9;
    overflow-x: hidden;
  }

  body.admin-page .admin-shell {
    width: calc(100% / var(--admin-scale));
    min-height: calc(100vh / var(--admin-scale));
    transform: scale(var(--admin-scale));
    transform-origin: top center;
  }
}

/* Customer mobile clean surface v1: remove unintended rounded container edges between sections. */
@media (max-width: 720px), (pointer: coarse) and (max-width: 900px) {
  .customer-page .customer-form,
  body.customer-native-phone-view .customer-page .customer-form,
  .customer-page .customer-step,
  body.customer-native-phone-view .customer-page .customer-step,
  .customer-page .selection-grid,
  body.customer-native-phone-view .customer-page .selection-grid {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
  }

  .customer-page .customer-step,
  body.customer-native-phone-view .customer-page .customer-step,
  .customer-page .selection-grid,
  body.customer-native-phone-view .customer-page .selection-grid {
    border-radius: 0 !important;
  }
}

/* Customer send button size v1: only make the final send button visually 2% smaller. */
.customer-page .send-order-button,
body.customer-native-phone-view .customer-page .send-order-button {
  transform: scale(0.98) !important;
  transform-origin: center !important;
}

/* Customer send button height v1: visual height only, no behavior change. */
.customer-page .send-order-button,
body.customer-native-phone-view .customer-page .send-order-button {
  height: 54px !important;
  min-height: 54px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Customer header logo size v2: keep the uploaded shop logo enlarged, then reduce it by 25%. */
.customer-page .customer-header,
body.customer-native-phone-view .customer-page .customer-header {
  grid-template-columns: 53px minmax(0, 1fr) auto !important;
}

.customer-page .brand-icon.customer-brand-logo,
body.customer-native-phone-view .customer-page .brand-icon.customer-brand-logo {
  width: 52px !important;
  height: 52px !important;
}

/* Customer send area position v1: remove the empty gap above the final button. */
@media (max-width: 720px), (pointer: coarse) and (max-width: 900px) {
  .customer-page .send-step,
  body.customer-native-phone-view .customer-page .send-step {
    min-height: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 8px !important;
  }

  .customer-page .send-step .step-title,
  body.customer-native-phone-view .customer-page .send-step .step-title,
  .customer-page .form-message:empty,
  body.customer-native-phone-view .customer-page .form-message:empty {
    display: none !important;
  }
}

/* Customer send button polish v1: simple button, light float, clean pressed state. */
.customer-page .send-order-button,
body.customer-native-phone-view .customer-page .send-order-button {
  border: 1px solid rgba(12, 116, 96, 0.18) !important;
  box-shadow: 0 8px 18px rgba(20, 56, 48, 0.10) !important;
  transform: scale(0.98) translateY(0) !important;
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease !important;
}

.customer-page .send-order-button:not(:disabled),
body.customer-native-phone-view .customer-page .send-order-button:not(:disabled) {
  box-shadow: 0 10px 22px rgba(13, 148, 118, 0.18) !important;
}

.customer-page .send-order-button:active:not(:disabled),
body.customer-native-phone-view .customer-page .send-order-button:active:not(:disabled) {
  transform: scale(0.98) translateY(2px) !important;
  box-shadow: 0 4px 10px rgba(20, 56, 48, 0.14) !important;
  filter: brightness(0.97) !important;
}

html[data-theme="black"] .customer-page .send-order-button,
html[data-theme="black"] body.customer-native-phone-view .customer-page .send-order-button,
html[data-theme="black"][data-theme-variant="black-gold"] .customer-page .send-order-button,
html[data-theme="black"][data-theme-variant="black-gold"] body.customer-native-phone-view .customer-page .send-order-button {
  border-color: rgba(255, 255, 255, 0.26) !important;
  box-shadow: 0 9px 20px rgba(0, 0, 0, 0.28) !important;
}

html[data-theme="black"] .customer-page .send-order-button:active:not(:disabled),
html[data-theme="black"] body.customer-native-phone-view .customer-page .send-order-button:active:not(:disabled),
html[data-theme="black"][data-theme-variant="black-gold"] .customer-page .send-order-button:active:not(:disabled),
html[data-theme="black"][data-theme-variant="black-gold"] body.customer-native-phone-view .customer-page .send-order-button:active:not(:disabled) {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.36) !important;
}

/* Admin neutral background v1: remove the green-tinted page wash. */
body.admin-page,
.admin-page {
  background: #ffffff !important;
}

.admin-page .admin-section-nav {
  background: #ffffff !important;
}

/* Admin QR text editor v1: edit flyer copy directly in the preview. */
.admin-page [data-admin-qr-editable] {
  min-height: 1em;
  border-radius: 6px;
  outline: 0;
  cursor: text;
  transition: box-shadow 120ms ease, background-color 120ms ease;
}

.admin-page [data-admin-qr-editable]:focus {
  background: rgba(15, 143, 120, 0.06);
  box-shadow: 0 0 0 2px rgba(15, 143, 120, 0.18);
}

.admin-page .admin-qr-editor-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  margin: 18px auto 0;
  max-width: 780px;
}

.admin-page .admin-qr-editor-panel label {
  display: grid;
  gap: 6px;
  color: #5d6f86;
  font-size: 12px;
  font-weight: 800;
}

.admin-page .admin-qr-editor-panel select {
  min-height: 42px;
  width: 100%;
  border: 1px solid rgba(15, 143, 120, 0.22);
  border-radius: 8px;
  background: #ffffff;
  color: #16202d;
  font: inherit;
  font-weight: 800;
  padding: 0 12px;
}

.admin-page .admin-qr-save-text-button {
  min-height: 48px;
}

.admin-page .admin-qr-text-message {
  max-width: 780px;
  min-height: 20px;
  margin: 8px auto 0;
  text-align: center;
}

@media (max-width: 720px) {
  .admin-page .admin-qr-editor-panel {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .admin-page .admin-qr-text-message {
    max-width: none;
  }
}

/* Admin appointment decline popup v2: textarea spans the full note area. */
.admin-confirm-dialog.admin-decline-dialog {
  width: min(100%, 640px) !important;
}

.admin-confirm-dialog.admin-decline-dialog > .admin-decline-note.is-hidden {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.admin-confirm-dialog.admin-decline-dialog > .admin-decline-note {
  display: grid !important;
  grid-template-columns: 1fr !important;
  justify-content: stretch !important;
  align-items: stretch !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 0 0 16px !important;
}

.admin-confirm-dialog.admin-decline-dialog > .admin-decline-note label,
.admin-confirm-dialog.admin-decline-dialog > .admin-decline-note textarea {
  grid-column: 1 / -1 !important;
  width: 100% !important;
}

.admin-confirm-dialog.admin-decline-dialog > .admin-decline-summary span {
  text-align: left !important;
}

.admin-confirm-dialog.admin-decline-dialog > .admin-decline-note textarea {
  box-sizing: border-box !important;
  min-height: 230px !important;
  padding: 16px 18px !important;
  resize: vertical !important;
}

/* Admin appointment status v1: align status pill like action buttons. */
.admin-page .admin-appointment-actions .admin-appointment-status {
  min-height: 54px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 16px !important;
  line-height: 1 !important;
  text-align: center !important;
}

/* Barber setup employee cards v1: keep the selectable content, remove the rectangular card shell. */
.barber-page .setup-employee-card {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.barber-page .setup-employee-card:hover,
.barber-page .setup-employee-card:focus-visible {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.barber-page .setup-employee-card::after,
.barber-page .setup-employee-card:hover::after,
.barber-page .setup-employee-card:focus-visible::after {
  content: none !important;
  display: none !important;
}

html[data-theme="black"] .barber-page .setup-employee-card,
html[data-theme="black"] .barber-page .setup-employee-card:hover,
html[data-theme="black"] .barber-page .setup-employee-card:focus-visible,
html[data-theme="black"][data-theme-variant="black-gold"] .barber-page .setup-employee-card,
html[data-theme="black"][data-theme-variant="black-gold"] .barber-page .setup-employee-card:hover,
html[data-theme="black"][data-theme-variant="black-gold"] .barber-page .setup-employee-card:focus-visible {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

html[data-theme="black"] .barber-page .setup-employee-card::after,
html[data-theme="black"] .barber-page .setup-employee-card:hover::after,
html[data-theme="black"] .barber-page .setup-employee-card:focus-visible::after,
html[data-theme="black"][data-theme-variant="black-gold"] .barber-page .setup-employee-card::after,
html[data-theme="black"][data-theme-variant="black-gold"] .barber-page .setup-employee-card:hover::after,
html[data-theme="black"][data-theme-variant="black-gold"] .barber-page .setup-employee-card:focus-visible::after {
  content: none !important;
  display: none !important;
}

/* Barber setup panel v1: remove the visible wrapper edge in dark themes without moving content. */
html[data-theme="black"] .barber-page .setup-panel,
html[data-theme="black"][data-theme-variant="black-gold"] .barber-page .setup-panel {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

/* Barber setup floating employees v2: photo, name, status and count lift gently as one unit. */
.barber-page .setup-employee-card {
  position: relative !important;
  --setup-text-shadow: rgba(15, 46, 38, 0.30);
  /* Release the entry animation's transform so hover transitions can run. */
  animation-fill-mode: none !important;
  transition: transform 450ms ease-in-out, filter 450ms ease-in-out !important;
  filter: drop-shadow(0 24px 34px rgba(15, 46, 38, 0.28)) !important;
}

.barber-page .setup-employee-card:hover,
.barber-page .setup-employee-card:focus-visible {
  transform: translateY(-5px) !important;
  filter: drop-shadow(0 38px 52px rgba(15, 46, 38, 0.40)) !important;
}

.barber-page .setup-employee-card strong,
.barber-page .setup-employee-card .employee-status-badge {
  text-shadow: 0 5px 9px var(--setup-text-shadow);
  transition: text-shadow 450ms ease-in-out;
}

.barber-page .setup-employee-card:is(:hover, :focus-visible) strong,
.barber-page .setup-employee-card:is(:hover, :focus-visible) .employee-status-badge {
  text-shadow: 0 8px 12px var(--setup-text-shadow);
}

.barber-page .setup-photo-placeholder {
  box-shadow:
    0 22px 42px rgba(15, 46, 38, 0.30),
    0 2px 0 rgba(255, 255, 255, 0.80) inset !important;
}

html[data-theme="black"] .barber-page .setup-employee-card,
html[data-theme="black"][data-theme-variant="black-gold"] .barber-page .setup-employee-card {
  --setup-text-shadow: rgba(94, 241, 188, 0.38);
  filter:
    drop-shadow(0 28px 44px rgba(0, 0, 0, 0.58))
    drop-shadow(0 0 18px rgba(94, 241, 188, 0.24)) !important;
}

html[data-theme="black"] .barber-page .setup-employee-card:hover,
html[data-theme="black"] .barber-page .setup-employee-card:focus-visible,
html[data-theme="black"][data-theme-variant="black-gold"] .barber-page .setup-employee-card:hover,
html[data-theme="black"][data-theme-variant="black-gold"] .barber-page .setup-employee-card:focus-visible {
  transform: translateY(-5px) !important;
  filter:
    drop-shadow(0 46px 64px rgba(0, 0, 0, 0.72))
    drop-shadow(0 0 30px rgba(94, 241, 188, 0.48))
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.20)) !important;
}

html[data-theme="black"] .barber-page .setup-photo-placeholder,
html[data-theme="black"][data-theme-variant="black-gold"] .barber-page .setup-photo-placeholder {
  box-shadow:
    0 28px 50px rgba(0, 0, 0, 0.62),
    0 0 22px rgba(94, 241, 188, 0.30),
    0 0 0 1px rgba(94, 241, 188, 0.26) !important;
}

html[data-theme="black"] .barber-page .setup-employee-card::after,
html[data-theme="black"][data-theme-variant="black-gold"] .barber-page .setup-employee-card::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 34px !important;
  right: 34px !important;
  bottom: 4px !important;
  height: 24px !important;
  pointer-events: none !important;
  border-radius: 999px !important;
  background: radial-gradient(ellipse at center, rgba(94, 241, 188, 0.34), rgba(94, 241, 188, 0.14) 46%, rgba(94, 241, 188, 0) 74%) !important;
  filter: blur(12px) !important;
  opacity: 0.72 !important;
  transform: translateY(30px) scaleX(1.18) !important;
  transition: opacity 450ms ease-in-out, transform 450ms ease-in-out, filter 450ms ease-in-out !important;
  z-index: -1 !important;
}

html[data-theme="black"] .barber-page .setup-employee-card:hover::after,
html[data-theme="black"] .barber-page .setup-employee-card:focus-visible::after,
html[data-theme="black"][data-theme-variant="black-gold"] .barber-page .setup-employee-card:hover::after,
html[data-theme="black"][data-theme-variant="black-gold"] .barber-page .setup-employee-card:focus-visible::after {
  content: "" !important;
  display: block !important;
  opacity: 0.92 !important;
  background: radial-gradient(ellipse at center, rgba(94, 241, 188, 0.48), rgba(94, 241, 188, 0.20) 48%, rgba(94, 241, 188, 0) 76%) !important;
  filter: blur(15px) !important;
  transform: translateY(34px) scaleX(1.22) !important;
}

@media (hover: none), (prefers-reduced-motion: reduce) {
  #barberSetup .setup-employee-card,
  #barberSetup .setup-employee-card:is(:hover, :focus-visible) {
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }

  #barberSetup .setup-employee-card strong,
  #barberSetup .setup-employee-card .employee-status-badge,
  html #barberSetup .setup-employee-card::after {
    transition: none !important;
  }

  html #barberSetup .setup-employee-card::after {
    transform: translateY(30px) scaleX(1.18) !important;
  }
}

/* Barber tablet code gate v1 */
body.barber-tablet-auth-locked .barber-page {
  pointer-events: none !important;
  user-select: none !important;
}

.barber-tablet-auth-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  display: grid !important;
  place-items: center !important;
  padding: 22px !important;
  background: rgba(5, 16, 14, 0.66) !important;
  backdrop-filter: blur(14px) !important;
}

.barber-tablet-auth-modal.is-hidden {
  display: none !important;
}

.barber-tablet-auth-card {
  width: min(420px, 100%) !important;
  display: grid !important;
  gap: 16px !important;
  padding: 24px !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 118, 98, 0.18) !important;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28) !important;
  color: #12201f !important;
}

.barber-tablet-auth-kicker {
  margin: 0 0 5px !important;
  color: #0f8b75 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
}

.barber-tablet-auth-card h2 {
  margin: 0 !important;
  font-size: 30px !important;
  line-height: 1.1 !important;
}

.barber-tablet-auth-card p {
  margin: 6px 0 0 !important;
  color: #60716e !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
}

.barber-tablet-auth-card label {
  display: grid !important;
  gap: 8px !important;
  color: #12201f !important;
  font-weight: 900 !important;
}

.barber-tablet-auth-input {
  width: 100% !important;
  min-height: 58px !important;
  box-sizing: border-box !important;
  padding: 0 18px !important;
  border: 1px solid #bfd9d3 !important;
  border-radius: 12px !important;
  background: #f8fbfa !important;
  color: #12201f !important;
  font-size: 26px !important;
  font-weight: 900 !important;
  letter-spacing: 8px !important;
  text-align: center !important;
  outline: none !important;
}

.barber-tablet-auth-input:focus {
  border-color: #13977f !important;
  box-shadow: 0 0 0 4px rgba(19, 151, 127, 0.14) !important;
}

.barber-tablet-auth-submit {
  min-height: 56px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #15957e !important;
  color: #ffffff !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  box-shadow: 0 14px 28px rgba(19, 151, 127, 0.22) !important;
}

.barber-tablet-auth-submit:disabled {
  cursor: wait !important;
  opacity: 0.68 !important;
}

.barber-tablet-auth-message {
  min-height: 20px !important;
  margin: -4px 0 0 !important;
  color: #b42318 !important;
  font-size: 14px !important;
}

html[data-theme="black"] .barber-tablet-auth-card,
html[data-theme="black"][data-theme-variant="black-gold"] .barber-tablet-auth-card {
  background: #141b22 !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
}

html[data-theme="black"] .barber-tablet-auth-card p,
html[data-theme="black"][data-theme-variant="black-gold"] .barber-tablet-auth-card p {
  color: #b8c4c1 !important;
}

html[data-theme="black"] .barber-tablet-auth-card label,
html[data-theme="black"][data-theme-variant="black-gold"] .barber-tablet-auth-card label {
  color: #ffffff !important;
}

html[data-theme="black"] .barber-tablet-auth-input,
html[data-theme="black"][data-theme-variant="black-gold"] .barber-tablet-auth-input {
  background: #20272f !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
}

/* Shared desktop scale; touch devices, narrow views and print stay unchanged. */
@media screen and (min-width: 821px) and (hover: hover) and (pointer: fine) {
  html {
    zoom: .9;
  }

  body.admin-page {
    max-width: 100% !important;
  }

  /* Let the fixed inset cover the viewport instead of scaling 100vw/100vh. */
  #appointmentModal {
    width: auto;
    height: auto;
    min-height: 0;
  }
}

/* Customer name v1: the name is required; the photo remains optional. */
.customer-page .name-row,
body.customer-native-phone-view .customer-page .name-row {
  grid-template-columns: minmax(0, 1fr) 90px !important;
}

.customer-page .camera-button,
body.customer-native-phone-view .customer-page .camera-button {
  width: 90px !important;
  padding: 0 6px !important;
  overflow: hidden !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  white-space: normal !important;
}

.customer-page .camera-button::before,
body.customer-native-phone-view .customer-page .camera-button::before {
  display: none !important;
  content: none !important;
}

.customer-page .name-row input[aria-invalid="true"],
body.customer-native-phone-view .customer-page .name-row input[aria-invalid="true"] {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14) !important;
}

/* Customer name reminder v1: compact glass notice above the lower controls. */
.customer-name-reminder {
  position: fixed;
  left: 50%;
  bottom: clamp(112px, 24vh, 220px);
  z-index: 2147482500;
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: calc(100vw - 28px);
  min-height: 44px;
  padding: 10px 16px 10px 10px;
  box-sizing: border-box;
  color: #075f49;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  box-shadow:
    0 16px 38px rgba(8, 72, 54, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(18px) saturate(155%);
  backdrop-filter: blur(18px) saturate(155%);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px) scale(0.97);
  transform-origin: center bottom;
  pointer-events: none;
  transition:
    opacity 280ms ease,
    transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.customer-name-reminder.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
}

.customer-name-reminder.is-leaving {
  opacity: 0;
  visibility: visible;
  transform: translate(-50%, -5px) scale(0.985);
}

.customer-name-reminder-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(145deg, #11b988, #087b60);
  box-shadow: 0 5px 12px rgba(9, 121, 91, 0.25);
  font-size: 15px;
  font-weight: 950;
  font-style: normal;
  line-height: 1;
}

.customer-name-reminder-text {
  min-width: 0;
  color: inherit;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.28;
  text-align: left;
  overflow-wrap: anywhere;
}

html[data-theme="black"] .customer-name-reminder,
html[data-theme="black"][data-theme-variant="black-gold"] .customer-name-reminder {
  color: #f4fff9;
  background: rgba(18, 27, 34, 0.84);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

@media (min-width: 721px) {
  .customer-name-reminder {
    bottom: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .customer-name-reminder,
  .customer-name-reminder.is-visible,
  .customer-name-reminder.is-leaving {
    transition-duration: 1ms;
  }
}

/* Der Archivhinweis muss auch in der kompakten Handyansicht sichtbar bleiben. */
.customer-page .customer-name-archive-note,
body.customer-native-phone-view .customer-page .customer-name-archive-note {
  display: block !important;
  margin: 7px 2px 0 !important;
  color: var(--muted, #64748b);
  font-size: 11px !important;
  font-weight: 650;
  line-height: 1.3 !important;
  text-align: left;
}

/* Admin security statistics: collapsed-by-default accessible accordion. */
.admin-page .admin-statistics {
  width: 100%;
  min-width: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  background: #ffffff;
}

.admin-page .admin-statistics-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-width: 0;
  min-height: 70px;
  margin: 0;
  padding: 14px 16px;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.admin-page .admin-statistics-toggle:hover {
  background: rgba(15, 143, 120, 0.055);
}

.admin-page .admin-statistics-toggle:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid rgba(15, 143, 120, 0.42);
  outline-offset: -3px;
}

.admin-page .admin-statistics-head-copy {
  display: block;
  min-width: 0;
}

.admin-page .admin-statistics-head-copy strong {
  display: block;
  color: var(--sarko-text);
  font-size: 17px;
  font-weight: 950;
  line-height: 1.25;
}

.admin-page .admin-statistics-head-copy > span {
  display: block;
  margin-top: 3px;
  color: var(--sarko-muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
}

.admin-page .admin-statistics-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  margin: 0;
  border-radius: 999px;
  color: #087c68;
  background: rgba(15, 143, 120, 0.1);
  font-size: 27px;
  font-weight: 800;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 180ms ease, background-color 160ms ease;
}

.admin-page .admin-statistics-toggle[aria-expanded="true"] .admin-statistics-chevron {
  transform: rotate(90deg);
  background: rgba(15, 143, 120, 0.16);
}

.admin-page .admin-statistics-panel {
  min-width: 0;
  padding: 12px 16px 16px;
  box-sizing: border-box;
  border-top: 1px solid rgba(148, 163, 184, 0.26);
}

.admin-page .admin-statistics-panel[hidden] {
  display: none !important;
}

.admin-page .admin-statistics-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.admin-page .admin-statistics-head-actions .admin-statistics-year-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0 2px 0 0;
  color: var(--sarko-text);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.admin-page .admin-statistics-head-actions .compact {
  grid-column: auto !important;
  width: auto !important;
  max-width: none !important;
  min-height: 30px !important;
  padding: 5px 9px !important;
  border-radius: 8px !important;
  font-size: 10px !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}

.admin-page .admin-statistics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
  margin-top: 14px;
}

.admin-page .admin-stat-card {
  min-width: 0;
  padding: 14px;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 12px;
  background: #f8fafc;
  box-shadow: 0 7px 20px rgba(15, 23, 42, 0.04);
}

.admin-page .admin-stat-card[data-stat-card="website"] {
  border-top: 3px solid #0f8f78;
}

.admin-page .admin-stat-card[data-stat-card="customer"] {
  border-top: 3px solid #2563eb;
}

.admin-page .admin-stat-card[data-stat-card="appointments"] {
  border-top: 3px solid #7c3aed;
}

.admin-page .admin-stat-card[data-stat-card="app"] {
  border-top: 3px solid #d97706;
}

.admin-page .admin-stat-card-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.admin-page .admin-stat-card-header > div {
  min-width: 0;
}

.admin-page .admin-stat-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 46px;
  min-height: 24px;
  padding: 4px 7px;
  box-sizing: border-box;
  border-radius: 999px;
  color: #075f50;
  background: rgba(15, 143, 120, 0.11);
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.035em;
}

.admin-page .admin-stat-card[data-stat-card="customer"] .admin-stat-card-badge {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.1);
}

.admin-page .admin-stat-card[data-stat-card="appointments"] .admin-stat-card-badge {
  color: #6d28d9;
  background: rgba(124, 58, 237, 0.1);
}

.admin-page .admin-stat-card[data-stat-card="app"] .admin-stat-card-badge {
  color: #a14f04;
  background: rgba(217, 119, 6, 0.12);
}

.admin-page .admin-stat-card-header h3 {
  margin: 0;
  color: var(--sarko-text);
  font-size: 15px !important;
  font-weight: 950;
  line-height: 1.25 !important;
  overflow-wrap: anywhere;
}

.admin-page .admin-stat-card-header p {
  margin: 3px 0 0;
  color: var(--sarko-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.admin-page .admin-stat-card-body {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.admin-page .admin-stat-metric + .admin-stat-metric {
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
}

.admin-page .admin-stat-metric-title {
  margin: 0 0 7px;
  color: var(--sarko-text);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
}

.admin-page .admin-stat-period-list {
  display: grid;
  gap: 6px;
}

.admin-page .admin-stat-period-row {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 38px;
  padding: 5px 6px 5px 10px;
  box-sizing: border-box;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 9px;
  background: #ffffff;
}

.admin-page .admin-stat-period-label {
  min-width: 0;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.admin-page .admin-stat-period-value {
  min-width: 32px;
  color: var(--sarko-text);
  font-size: 16px;
  font-weight: 950;
  line-height: 1;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.admin-page .admin-stat-legacy {
  margin: 10px 2px 0;
  color: var(--sarko-muted);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.35;
}

.admin-page .admin-statistics-archives {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
}

.admin-page .admin-statistics-archives h3 {
  margin: 0 0 8px;
  color: var(--sarko-text);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
}

.admin-page .admin-statistics-archive-list {
  display: grid;
  gap: 6px;
}

.admin-page .admin-statistics-archive-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 9px;
  background: #f8fafc;
}

.admin-page .admin-statistics-archive-row strong {
  color: var(--sarko-text);
  font-size: 12px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.admin-page .admin-statistics-archive-row span,
.admin-page .admin-statistics-archive-row small {
  min-width: 0;
  color: var(--sarko-muted);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.admin-page .admin-statistics-archive-row small {
  white-space: nowrap;
}

.admin-page .admin-statistics-archive-delete.admin-danger-button.compact {
  grid-column: auto;
  justify-self: end;
  min-height: 30px !important;
  padding: 6px 10px !important;
  border-radius: 7px;
  font-size: 10px !important;
  line-height: 1 !important;
}

.admin-page .admin-statistics-archive-delete:focus-visible {
  outline: 3px solid rgba(220, 38, 38, 0.28);
  outline-offset: 2px;
}

.admin-page #adminStatisticsMessage {
  margin-top: 10px;
}

html[data-theme="black"] .admin-page .admin-statistics {
  border-color: rgba(134, 239, 172, 0.2);
  background: rgba(8, 35, 29, 0.96);
}

html[data-theme="black"] .admin-page .admin-statistics-toggle:hover {
  background: rgba(52, 211, 153, 0.08);
}

html[data-theme="black"] .admin-page .admin-statistics-toggle:focus-visible {
  outline-color: rgba(110, 231, 183, 0.6);
}

html[data-theme="black"] .admin-page .admin-statistics-chevron {
  color: #a7f3d0;
  background: rgba(52, 211, 153, 0.13);
}

html[data-theme="black"] .admin-page .admin-statistics-toggle[aria-expanded="true"] .admin-statistics-chevron {
  background: rgba(52, 211, 153, 0.2);
}

html[data-theme="black"] .admin-page .admin-statistics-panel {
  border-top-color: rgba(148, 163, 184, 0.22);
}

html[data-theme="black"] .admin-page .admin-stat-card {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.76);
  box-shadow: none;
}

html[data-theme="black"] .admin-page .admin-stat-period-row {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(2, 6, 23, 0.4);
}

html[data-theme="black"] .admin-page .admin-statistics-archives {
  border-top-color: rgba(148, 163, 184, 0.22);
}

html[data-theme="black"] .admin-page .admin-statistics-archive-row {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(2, 6, 23, 0.4);
}

html[data-theme="black"] .admin-page .admin-statistics-head-copy strong,
html[data-theme="black"] .admin-page .admin-stat-card-header h3,
html[data-theme="black"] .admin-page .admin-stat-metric-title,
html[data-theme="black"] .admin-page .admin-stat-period-value,
html[data-theme="black"] .admin-page .admin-statistics-archives h3,
html[data-theme="black"] .admin-page .admin-statistics-archive-row strong,
html[data-theme="black"] .admin-page .admin-statistics-head-actions .admin-statistics-year-label {
  color: #f8fafc;
}

html[data-theme="black"] .admin-page .admin-statistics-head-copy > span,
html[data-theme="black"] .admin-page .admin-stat-card-header p,
html[data-theme="black"] .admin-page .admin-stat-period-label,
html[data-theme="black"] .admin-page .admin-stat-legacy,
html[data-theme="black"] .admin-page .admin-statistics-archive-row span,
html[data-theme="black"] .admin-page .admin-statistics-archive-row small {
  color: rgba(226, 232, 240, 0.78);
}

html[data-theme="black"] .admin-page .admin-stat-metric + .admin-stat-metric {
  border-top-color: rgba(148, 163, 184, 0.22);
}

@media (max-width: 880px) {
  .admin-page .admin-statistics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .admin-page .admin-statistics {
    padding: 0 !important;
  }

  .admin-page .admin-statistics-toggle {
    min-height: 64px;
    padding: 12px;
    gap: 10px;
  }

  .admin-page .admin-statistics-panel {
    padding: 10px 12px 12px;
  }

  .admin-page .admin-statistics-head-actions {
    justify-content: flex-start;
  }

  .admin-page .admin-statistics-head-actions .admin-statistics-year-label {
    flex: 1 0 100%;
  }

  .admin-page .admin-statistics-head-actions .compact {
    flex: 0 1 auto !important;
    width: auto !important;
  }

  .admin-page .admin-stat-card {
    padding: 12px;
  }

  .admin-page .admin-stat-period-row {
    grid-template-columns: minmax(76px, 1fr) auto;
    gap: 6px;
    padding-left: 8px;
  }

  .admin-page .admin-statistics-archive-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .admin-page .admin-statistics-archive-row small {
    grid-column: 2;
    white-space: normal;
  }

  .admin-page .admin-statistics-archive-delete.admin-danger-button.compact {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
  }
}

@media (max-width: 380px) {
  .admin-page .admin-stat-card-header {
    flex-direction: column;
    gap: 7px;
  }

  .admin-page .admin-statistics-head-actions .compact {
    flex: 0 1 auto !important;
    width: auto !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-page .admin-statistics-toggle,
  .admin-page .admin-statistics-chevron {
    transition: none;
  }
}

/* Keep the single combined chart full-width after the legacy card rules above. */
.admin-page .admin-statistics .admin-statistics-grid {
  display: block;
  grid-template-columns: none;
}

/* Customer title compact v1: fit the longer requested heading beside the language controls. */
@media (max-width: 720px), (pointer: coarse) and (max-width: 900px) {
  .customer-page .customer-header #page-title,
  body.customer-native-phone-view .customer-page .customer-header #page-title {
    max-width: 100% !important;
    margin-top: 2px !important;
    font-size: clamp(10px, 2.8vw, 12px) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.1px !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 340px) {
  .customer-page .customer-header #page-title,
  body.customer-native-phone-view .customer-page .customer-header #page-title {
    font-size: 9px !important;
    line-height: 1 !important;
    white-space: normal !important;
    text-wrap: balance;
  }
}

/* Customer vertical carousel columns v1: barber left, styles right, both swipe vertically. */
.customer-page .customer-vertical-carousel-columns,
body.customer-native-phone-view .customer-page .customer-vertical-carousel-columns {
  display: contents;
}

@media (max-width: 720px), (pointer: coarse) and (max-width: 900px) {
  .customer-page .customer-vertical-carousel-columns,
  body.customer-native-phone-view .customer-page .customer-vertical-carousel-columns {
    display: grid !important;
    flex: 1 1 0 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto minmax(0, 1fr);
    align-items: stretch;
    column-gap: 8px;
    row-gap: 4px;
    width: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    direction: ltr;
  }

  .customer-page .customer-vertical-carousel-columns > [aria-labelledby="step-employee"],
  .customer-page .customer-vertical-carousel-columns > [aria-labelledby="step-hairstyle"],
  body.customer-native-phone-view .customer-page .customer-vertical-carousel-columns > [aria-labelledby="step-employee"],
  body.customer-native-phone-view .customer-page .customer-vertical-carousel-columns > [aria-labelledby="step-hairstyle"] {
    display: contents !important;
  }

  .customer-page .customer-vertical-carousel-columns [aria-labelledby="step-employee"] .step-title,
  body.customer-native-phone-view .customer-page .customer-vertical-carousel-columns [aria-labelledby="step-employee"] .step-title {
    display: block !important;
    grid-column: 1 / -1;
    grid-row: 1;
    margin: 0 0 4px !important;
    direction: inherit;
  }

  .customer-page .customer-vertical-carousel-columns [aria-labelledby="step-hairstyle"] .step-title,
  body.customer-native-phone-view .customer-page .customer-vertical-carousel-columns [aria-labelledby="step-hairstyle"] .step-title {
    display: none !important;
  }

  .customer-page .customer-vertical-carousel-columns #employeeGrid,
  body.customer-native-phone-view .customer-page .customer-vertical-carousel-columns #employeeGrid {
    grid-column: 1;
    grid-row: 2;
  }

  .customer-page .customer-vertical-carousel-columns #hairstyleGrid,
  body.customer-native-phone-view .customer-page .customer-vertical-carousel-columns #hairstyleGrid {
    grid-column: 2;
    grid-row: 2;
  }

  .customer-page .customer-vertical-carousel-columns .selection-grid,
  .customer-page .customer-vertical-carousel-columns .selection-grid.is-loop-ready,
  body.customer-native-phone-view .customer-page .customer-vertical-carousel-columns .selection-grid,
  body.customer-native-phone-view .customer-page .customer-vertical-carousel-columns .selection-grid.is-loop-ready {
    display: block !important;
    align-self: stretch;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 3px !important;
    overflow: hidden !important;
    overscroll-behavior: contain !important;
    scroll-snap-type: none !important;
    touch-action: pan-x !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    cursor: grab;
  }

  .customer-page .customer-vertical-carousel-columns .selection-grid.is-dragging,
  body.customer-native-phone-view .customer-page .customer-vertical-carousel-columns .selection-grid.is-dragging {
    cursor: grabbing;
  }

  .customer-page .customer-vertical-carousel-columns .customer-loop-track,
  body.customer-native-phone-view .customer-page .customer-vertical-carousel-columns .customer-loop-track,
  html[data-text-direction="rtl"] .customer-page .customer-vertical-carousel-columns .customer-loop-track,
  html[data-text-direction="rtl"] body.customer-native-phone-view .customer-page .customer-vertical-carousel-columns .customer-loop-track {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    will-change: transform;
  }

  .customer-page .customer-vertical-carousel-columns .customer-loop-track .select-card,
  body.customer-native-phone-view .customer-page .customer-vertical-carousel-columns .customer-loop-track .select-card {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    scroll-snap-align: none !important;
  }

  .customer-page .customer-vertical-carousel-columns .customer-loop-track .employee-card,
  body.customer-native-phone-view .customer-page .customer-vertical-carousel-columns .customer-loop-track .employee-card {
    flex: 0 0 190px !important;
    min-height: 190px !important;
    height: 190px !important;
    max-height: 190px !important;
  }

  .customer-page .customer-vertical-carousel-columns .customer-loop-track .hairstyle-card,
  body.customer-native-phone-view .customer-page .customer-vertical-carousel-columns .customer-loop-track .hairstyle-card {
    flex: 0 0 170px !important;
    min-height: 170px !important;
    height: 170px !important;
    max-height: 170px !important;
  }

  .customer-page .customer-vertical-carousel-columns + [aria-labelledby="step-customer"],
  body.customer-native-phone-view .customer-page .customer-vertical-carousel-columns + [aria-labelledby="step-customer"] {
    flex: 0 0 auto !important;
    margin-top: 0 !important;
  }

  html[data-text-direction="rtl"] .customer-page .customer-vertical-carousel-columns [aria-labelledby="step-employee"] .step-title,
  html[data-text-direction="rtl"] body.customer-native-phone-view .customer-page .customer-vertical-carousel-columns [aria-labelledby="step-employee"] .step-title {
    direction: rtl;
  }
}

/* Admin style editor: darker contours for clearer editable areas. */
body.admin-page .admin-style-panel #hairstyleName {
  border-color: #64748b;
  border-width: 2px;
}

body.admin-page .admin-style-panel #hairstyleActive {
  border-color: #64748b;
  box-shadow: 0 0 0 1px #64748b;
}

body.admin-page .admin-style-panel .admin-hairstyle-item,
body.admin-page .admin-style-panel .admin-style-preview-main,
body.admin-page .admin-style-panel .admin-style-slot,
body.admin-page .admin-style-panel .admin-style-slot-preview {
  border-color: #9fb2c7;
}

body.admin-page .admin-style-panel .admin-style-preview-main {
  border-width: 1.5px;
}

body.admin-page .admin-style-panel .admin-style-slot {
  border-width: 1.5px;
}

body.admin-page .admin-style-panel .admin-style-slot-preview {
  border-width: 1.5px;
}

body.admin-page .admin-style-panel .admin-pixel-tool-button,
body.admin-page .admin-style-panel .admin-style-actions .admin-primary-button,
body.admin-page .admin-style-panel .admin-style-actions .admin-secondary-button,
body.admin-page .admin-style-panel .admin-style-actions .admin-danger-button,
body.admin-page .admin-style-panel #newHairstyleButton {
  border-width: 1.5px;
  border-color: #8ca69f;
}
