@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Outfit:wght@300;400;500;600;700&display=swap");

:root {
  --bg: #0b0f17;
  --panel: rgba(17, 24, 39, 0.92);
  --ink: #f7f7f9;
  --muted: #a8b0c0;
  --accent: #e0432c;
  --accent-dark: #b93424;
  --accent-blue: #0aa0ff;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Outfit", sans-serif;
  background: radial-gradient(circle at top, #1d2636 0%, #0b0f17 55%, #070b12 100%);
  color: var(--ink);
  min-height: 100vh;
}

body.overlay-open {
  overflow: hidden;
}

.splash-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, #1d2636 0%, #0b0f17 55%, #070b12 100%);
  display: grid;
  place-items: center;
  z-index: 2500;
  transition: opacity 0.3s ease;
}

.splash-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.splash-content {
  display: grid;
  gap: 12px;
  text-align: center;
}

.splash-logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  padding: 8px;
  background: rgba(12, 18, 30, 0.9);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

a {
  color: inherit;
  text-decoration: none;
}

.app {
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px 20px 48px;
  display: grid;
  gap: 24px;
}

.page-map .app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.page-map .legal-footer {
  margin-top: auto;
}

.page-panel .app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.page-panel .legal-footer {
  margin-top: auto;
}

.hero {
  display: grid;
  gap: 20px;
  padding: 24px;
  background: linear-gradient(130deg, rgba(15, 23, 42, 0.95), rgba(14, 20, 32, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.header-right {
  display: grid;
  gap: 12px;
  justify-items: end;
  align-items: center;
  text-align: right;
  justify-self: end;
}

.page-panel .header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.page-panel .session-box {
  display: flex;
  align-items: center;
  gap: 0;
}

body.page-panel.panel-detail .hero {
  display: none;
}

body.page-panel.panel-detail .app {
  gap: 12px;
  padding-top: 16px;
}

.header-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.icon-button.active {
  background: rgba(224, 67, 44, 0.25);
  border-color: rgba(224, 67, 44, 0.5);
}

.panel-group {
  display: grid;
  gap: 24px;
}

.dashboard-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.dashboard-filter {
  align-items: end;
  margin-bottom: 10px;
}

.dashboard-filter label {
  min-width: 140px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: -50% 0 auto auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(10, 160, 255, 0.25), transparent 70%);
  opacity: 0.7;
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: var(--muted);
}

h1 {
  margin: 0 0 12px;
  font-size: 44px;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.04em;
}

h2 {
  margin-top: 0;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.05em;
}

h3 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.04em;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.subtitle:empty {
  display: none;
}

.brand {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
}

.logo-stack {
  display: flex;
  gap: 10px;
  align-items: center;
}

.page-map .logo-stack.dual {
  position: relative;
  display: block;
  width: 68px;
  height: 68px;
}

.page-map .logo-stack.dual .logo-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-map .logo-stack.dual .logo-wrap:first-child {
  animation: page-map-logo-a 5.2s ease-in-out infinite;
}

.page-map .logo-stack.dual .logo-wrap:last-child {
  animation: page-map-logo-b 5.2s ease-in-out infinite;
}

.logo-stack.single .logo-wrap {
  width: 86px;
  height: 86px;
}

.logo-stack.dual .logo-wrap {
  width: 68px;
  height: 68px;
}

.logo-wrap.dual {
  width: 68px;
  height: 68px;
}

.logo-stack .logo-wrap.hidden {
  display: none;
}

.logo-wrap {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(135deg, rgba(224, 67, 44, 0.5), rgba(10, 160, 255, 0.5));
  box-shadow: 0 0 30px rgba(10, 160, 255, 0.35);
}

.logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
  background: #0b0f17;
}

@keyframes page-map-logo-a {
  0%,
  44% {
    opacity: 1;
    transform: scale(1);
  }
  50%,
  94% {
    opacity: 0;
    transform: scale(0.94);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes page-map-logo-b {
  0%,
  44% {
    opacity: 0;
    transform: scale(0.94);
  }
  50%,
  94% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.94);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-map .logo-stack.dual .logo-wrap {
    animation: none !important;
  }

  .page-map .logo-stack.dual .logo-wrap:last-child {
    opacity: 0;
  }
}

.panel {
  background: rgba(12, 18, 30, 0.92);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 10, 16, 0.82);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 2000;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.auth-panel {
  width: min(520px, 92vw);
  display: grid;
  gap: 16px;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
}

.contract-modal {
  width: min(620px, 94vw);
  display: grid;
  gap: 12px;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
}

.contract-scroll {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(10, 14, 22, 0.75);
  padding: 12px;
  max-height: min(52vh, 360px);
  overflow-y: auto;
}

.contract-scroll p {
  margin: 0 0 10px;
  line-height: 1.45;
}

.contract-scroll p:last-child {
  margin-bottom: 0;
}

.password-modal {
  width: min(460px, 92vw);
  display: grid;
  gap: 12px;
}

.logout-modal {
  width: min(420px, 92vw);
  display: grid;
  gap: 12px;
}

.sale-edit-modal {
  width: min(980px, 98vw);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  display: grid;
  gap: 14px;
}

.queue-product-modal {
  width: min(720px, 96vw);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  display: grid;
  gap: 12px;
}

.queue-product-list {
  display: grid;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  overflow: hidden;
  max-height: min(66vh, 620px);
  overflow-y: auto;
}

.queue-product-option {
  width: 100%;
  text-align: left;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 0;
  padding: 12px 14px;
  display: grid;
  gap: 2px;
  color: #0e1523;
}

.queue-product-option:last-child {
  border-bottom: none;
}

.queue-product-option.odd {
  background: #f5f6f8;
}

.queue-product-option.even {
  background: #bccbd8;
}

.queue-product-option-name {
  font-size: 22px;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.02em;
  line-height: 1;
}

.queue-product-option-meta {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.queue-product-option.active {
  outline: 2px solid #0ea5e9;
  outline-offset: -2px;
}

.queue-product-option:hover {
  filter: brightness(0.98);
  transform: none;
}

.queue-product-picker-btn {
  width: 100%;
  text-align: left;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 600;
}

.queue-product-picker-btn::after {
  content: "▾";
  font-size: 14px;
  line-height: 1;
  opacity: 0.9;
}

.logout-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 560px) {
  .logout-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  #sale-edit-overlay {
    padding: 0;
    place-items: stretch;
  }

  #sale-edit-overlay .sale-edit-modal {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border-color: transparent;
    padding: 14px 12px 18px;
  }

  #sale-edit-overlay .sale-edit-product-grid {
    grid-template-columns: 1fr;
    max-height: 38vh;
  }

  #queue-product-overlay {
    padding: 0;
    place-items: stretch;
  }

  #queue-product-overlay .queue-product-modal {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border-color: transparent;
    padding: 14px 12px 18px;
  }

  #queue-product-overlay .queue-product-list {
    max-height: none;
    flex: 1;
  }

  .queue-product-option {
    padding: 14px 12px;
  }

  .queue-product-option-name {
    font-size: 20px;
  }
}

.password-modal-action {
  width: 100%;
  justify-content: center;
}

.password-modal .panel-title h2 {
  margin: 0;
}

#sale-edit-overlay {
  align-items: center;
  justify-items: center;
}

.sale-edit-product-grid {
  margin-top: 8px;
  display: grid;
  gap: 6px;
  grid-template-columns: 1fr;
  max-height: min(44vh, 320px);
  overflow-y: auto;
  padding-right: 2px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(5, 10, 20, 0.55);
  padding: 6px;
}

.sale-product-chip {
  width: 100%;
  text-align: left;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 9px 12px;
  font-size: 13px;
  line-height: 1.35;
  background: rgba(255, 255, 255, 0.05);
  color: #e8edf8;
}

.sale-product-chip.tone-1 {
  background: rgba(13, 42, 76, 0.78) !important;
  border-color: rgba(65, 143, 207, 0.55) !important;
}

.sale-product-chip.tone-2 {
  background: rgba(11, 58, 49, 0.78) !important;
  border-color: rgba(58, 163, 139, 0.55) !important;
}

.sale-product-chip.tone-3 {
  background: rgba(74, 49, 11, 0.78) !important;
  border-color: rgba(205, 152, 42, 0.55) !important;
}

.sale-product-chip.active {
  border-color: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55) inset;
}

.sale-product-chip:hover {
  transform: translateY(-1px);
}

.auth-panel .panel-title {
  align-items: center;
}

.google-login {
  display: grid;
  gap: 8px;
}

.google-button {
  background: #fff;
  color: #1f2937;
  border: 1px solid rgba(0, 0, 0, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: 12px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.google-button:hover {
  background: #f3f4f6;
  border-color: rgba(0, 0, 0, 0.2);
}

.google-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
}

.google-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.logo-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.logo-preview img {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 18, 30, 0.9);
  object-fit: cover;
}

.agenda-panel {
  width: min(1000px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 12px;
}

.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.module-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

button.module-card {
  display: grid;
  gap: 6px;
  text-align: left;
  align-content: start;
  min-height: 96px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(16, 22, 36, 0.9);
}

.module-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.module-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.module-icon-scissors {
  background: rgba(10, 160, 255, 0.12);
  border-color: rgba(10, 160, 255, 0.35);
}

.module-icon-scissors .status-anim.scissors {
  width: 22px;
  height: 16px;
}

.module-icon-scissors .scissor-icon {
  width: 22px;
  height: 16px;
}

button.module-card strong {
  font-size: 19px;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.04em;
}

button.module-card:hover {
  background: rgba(20, 28, 46, 0.95);
  border-color: rgba(10, 160, 255, 0.45);
}

.card {
  background: rgba(16, 22, 36, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.chair-card.free {
  border-color: rgba(31, 200, 136, 0.3);
  box-shadow: inset 0 0 0 1px rgba(31, 200, 136, 0.1);
}

.chair-card.busy {
  border-color: rgba(224, 67, 44, 0.35);
  box-shadow: inset 0 0 0 1px rgba(224, 67, 44, 0.1);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-section {
  display: grid;
  gap: 8px;
}

.section-label {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.queue-count {
  font-size: 36px;
  font-weight: 700;
}

.queue-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.queue-list span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 13px;
}

.estimate {
  margin: 0;
  font-weight: 600;
  color: #c6d3ea;
}

.current-service {
  margin: 0;
  color: #f0f2f7;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-anim {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.status-anim.scissors {
  width: 30px;
  height: 22px;
  color: #f7f7f9;
}

.scissor-icon {
  width: 30px;
  height: 22px;
  display: block;
}

.scissor-icon .blade {
  transform-origin: 24px 16px;
  transform-box: fill-box;
  animation: scissor-blade 0.7s ease-in-out infinite;
}

.scissor-icon .blade.right {
  animation-direction: alternate-reverse;
}

.scissor-icon .metal {
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.scissor-icon .handle {
  stroke: #f7f7f9;
  stroke-width: 2.2;
  fill: none;
}

.scissor-icon .pivot {
  fill: #f7f7f9;
}

@keyframes scissor-blade {
  0% {
    transform: rotate(18deg);
  }
  50% {
    transform: rotate(-18deg);
  }
  100% {
    transform: rotate(18deg);
  }
}

.status-anim.wind {
  flex-direction: column;
  gap: 4px;
  width: 26px;
  height: 18px;
}

.status-anim.wind span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: rgba(120, 200, 255, 0.9);
  animation: wind 1.4s ease-in-out infinite;
}

.status-anim.wind span:nth-child(1) {
  width: 20px;
}

.status-anim.wind span:nth-child(2) {
  width: 14px;
  animation-delay: 0.2s;
  background: rgba(120, 200, 255, 0.7);
}

.status-anim.wind span:nth-child(3) {
  width: 18px;
  animation-delay: 0.4s;
  background: rgba(120, 200, 255, 0.5);
}

@keyframes wind {
  0% {
    transform: translateX(0);
    opacity: 0.6;
  }
  50% {
    transform: translateX(6px);
    opacity: 1;
  }
  100% {
    transform: translateX(0);
    opacity: 0.6;
  }
}

.status-anim.off {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.queue-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.estimate-box {
  background: rgba(10, 160, 255, 0.14);
  border: 1px solid rgba(10, 160, 255, 0.35);
  border-radius: 12px;
  padding: 8px 12px;
  display: grid;
  gap: 4px;
  text-align: right;
}

.queue-items {
  display: grid;
  gap: 6px;
}

.queue-row {
  display: grid;
  grid-template-columns: 40px 1fr 60px;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
}

.status-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid transparent;
}

.status-pill.free {
  background: rgba(31, 200, 136, 0.18);
  border-color: rgba(31, 200, 136, 0.3);
  color: #b6f3d7;
}

.status-pill.busy {
  background: rgba(224, 67, 44, 0.2);
  border-color: rgba(224, 67, 44, 0.35);
  color: #ffc1b8;
}

.status-pill.away {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #c8d0da;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.type-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  background: rgba(224, 67, 44, 0.2);
  color: #ffd0c8;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.tag.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.calendar-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 16px;
}

.legend {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}

.dot.available {
  background: #1fc888;
}

.dot.unavailable {
  background: rgba(255, 255, 255, 0.3);
}

.calendar-header {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.calendar-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.map-wrap {
  position: relative;
}

.map {
  height: 320px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.map-recenter-control {
  margin-top: 8px;
}

.map-recenter {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  border: none;
  background: #fff;
  color: #111827;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.map-recenter:hover {
  background: #f3f4f6;
}

.map-recenter-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.company-list {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.staff-panel {
  display: grid;
  gap: 14px;
}

.entry-choice {
  display: grid;
  gap: 12px;
}

.hero-entry {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-entry-btn {
  min-width: 180px;
}

.hero-session {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 12, 24, 0.72);
}

.hero-session-label {
  color: var(--muted);
  font-size: 13px;
}

.hero-session-label strong {
  color: var(--ink);
}

.hero-entry-staff {
  min-width: 120px;
}

.hero-entry #entry-open {
  width: fit-content;
  min-width: 170px;
}

.entry-modal {
  width: min(440px, 94vw);
  display: grid;
  gap: 12px;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
}

.entry-modal .form-grid {
  grid-template-columns: 1fr;
}

.entry-block {
  display: grid;
  gap: 10px;
  position: relative;
}

.entry-switch-link {
  width: auto;
  justify-self: end;
  padding: 6px 10px;
  font-size: 12px;
  opacity: 0.9;
}

#entry-user-block .entry-switch-link {
  position: static;
  padding: 6px 10px;
  font-size: 12px;
}

#entry-user-block form {
  margin-top: 0;
}

#entry-user-block .inline-group {
  justify-content: flex-end;
}

#entry-login-message {
  margin: 0;
  min-height: 18px;
}

.entry-helper {
  margin: 0;
}

.remember-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.remember-option input {
  width: auto;
  min-width: 0;
}

.terms-box {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px;
  background: rgba(10, 14, 22, 0.7);
  display: grid;
  gap: 8px;
}

.terms-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #cfe6ff;
}

.terms-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

.terms-actions {
  justify-content: space-between;
  align-items: center;
}

.terms-open-btn {
  font-size: 12px;
  padding: 7px 10px;
}

.terms-status {
  font-size: 12px;
  color: #ffb3b3;
  border: 1px solid rgba(255, 95, 95, 0.35);
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(255, 95, 95, 0.12);
}

.terms-status.accepted {
  color: #bff5d9;
  border-color: rgba(31, 200, 136, 0.5);
  background: rgba(31, 200, 136, 0.15);
}

.terms-details {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
}

.terms-details[open] {
  max-height: 180px;
  overflow-y: auto;
}

.terms-details summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: #b8d8ff;
}

.terms-details p {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

.terms-accept {
  font-size: 12px;
}

.staff-session {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(16, 22, 36, 0.8);
}

.theme-all .staff-session {
  border-color: rgba(33, 197, 138, 0.22);
  background: rgba(16, 28, 36, 0.9);
}

.theme-salon .staff-session {
  border-color: rgba(236, 72, 153, 0.2);
  background: #fff;
}

.page-map #staff-panel {
  display: none !important;
}

.company-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(16, 22, 36, 0.8);
  flex-wrap: wrap;
}

.contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.contact-pill {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  color: var(--muted);
}

.offer-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.offer-badge {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(31, 200, 136, 0.5);
  background: rgba(31, 200, 136, 0.18);
  color: #b6f3d7;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.offer-badge.pulse {
  animation: offer-pulse 1.6s ease-in-out infinite;
  box-shadow: 0 0 0 rgba(31, 200, 136, 0.6);
}

.offer-price {
  color: #b6f3d7;
  font-weight: 700;
}

.offer-base {
  color: var(--muted);
  font-size: 12px;
  text-decoration: line-through;
}

.map-popup-offer .offer-badge {
  color: #e8fff4;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.leaflet-popup-content-wrapper {
  background: rgba(12, 18, 30, 0.96);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.leaflet-popup-tip {
  background: rgba(12, 18, 30, 0.96);
}

.theme-salon .leaflet-popup-content-wrapper,
.popup-salao .leaflet-popup-content-wrapper {
  background: #fff;
  color: #2b1b2b;
  border-color: rgba(236, 72, 153, 0.25);
  box-shadow: 0 18px 40px rgba(236, 72, 153, 0.18);
}

.theme-salon .leaflet-popup-tip,
.popup-salao .leaflet-popup-tip {
  background: #fff;
}

.theme-salon .map-popup-line,
.popup-salao .map-popup-line {
  color: #7c6b7c;
}

.theme-salon .map-popup-question,
.popup-salao .map-popup-question {
  color: #7c6b7c;
}

.theme-salon .popup-fav,
.popup-salao .popup-fav {
  background: rgba(236, 72, 153, 0.08);
  border-color: rgba(236, 72, 153, 0.3);
  color: #e11d48;
}

.theme-salon .popup-fav.active,
.popup-salao .popup-fav.active {
  background: rgba(236, 72, 153, 0.18);
  border-color: rgba(236, 72, 153, 0.45);
}

.leaflet-popup-content {
  margin: 12px 14px;
}

.company-marker {
  background: transparent;
  border: none;
}

.leaflet-marker-icon {
  overflow: visible !important;
}

.marker-wrap {
  width: 54px;
  height: 54px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: visible;
}

.mascot {
  position: absolute;
  left: -36px;
  top: -6px;
  width: 34px;
  height: 34px;
  pointer-events: none;
  animation: mascot-walk 7s ease-in-out infinite;
}

.mascot-video {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  object-fit: cover;
  mix-blend-mode: screen;
  pointer-events: none;
}

.mascot-call {
  position: absolute;
  top: -22px;
  left: -8px;
  background: rgba(17, 24, 39, 0.92);
  color: #fff;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 9px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  animation: mascot-call 7s ease-in-out infinite;
}

@keyframes mascot-walk {
  0% { transform: translateX(0) translateY(0) scale(1); }
  25% { transform: translateX(10px) translateY(-2px) scale(1); }
  45% { transform: translateX(18px) translateY(-8px) scale(0.75); }
  60% { transform: translateX(8px) translateY(-2px) scale(0.85); }
  80% { transform: translateX(18px) translateY(-6px) scale(1); }
  100% { transform: translateX(0) translateY(0) scale(1); }
}

@keyframes mascot-call {
  0% { opacity: 0; }
  62% { opacity: 0; transform: translateY(4px); }
  70% { opacity: 1; transform: translateY(0); }
  92% { opacity: 1; }
  100% { opacity: 0; }
}

.marker-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(10, 160, 255, 0.85);
  background: rgba(12, 18, 30, 0.95);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
}

.marker-badge {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.marker-badge.offer {
  top: -18px;
  background: rgba(31, 200, 136, 0.95);
  color: #0b2a1d;
}

.marker-badge.availability {
  bottom: -18px;
  background: rgba(10, 160, 255, 0.92);
  color: #051826;
}

.marker-badge.availability.free {
  background: rgba(31, 200, 136, 0.95);
  color: #0b2a1d;
}

.marker-badge.availability.busy {
  background: rgba(255, 196, 64, 0.95);
  color: #3b2b00;
}

.marker-badge.availability.off {
  background: rgba(200, 200, 200, 0.85);
  color: #232323;
}

.marker-badge.pulse {
  animation: offer-pulse 1.6s ease-in-out infinite;
}

.map-popup {
  display: grid;
  gap: 8px;
  min-width: 190px;
}

.map-popup-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.popup-fav {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #9fb0c2;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.popup-fav.active {
  background: rgba(255, 211, 106, 0.2);
  border-color: rgba(255, 211, 106, 0.5);
  color: #ffd36a;
}

.map-popup-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(12, 18, 30, 0.95);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35);
}

.map-popup-title {
  font-weight: 700;
  font-size: 16px;
}

.map-popup-line {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.map-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #9cc7ff;
}

.map-icon .icon-fill {
  fill: currentColor;
}

.map-icon .icon-cut {
  fill: #0b0f17;
}

.map-icon.phone {
  color: #8fd3ff;
}

.map-icon.whatsapp {
  color: #25d366;
}

.map-icon.instagram {
  color: #e1306c;
}

.map-link {
  color: #cfe7ff;
  text-decoration: none;
}

.map-link:hover {
  text-decoration: underline;
}

.map-popup-offer {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.map-popup-question {
  font-size: 12px;
  color: var(--muted);
}

.map-popup-actions button {
  width: 100%;
  padding: 8px 12px;
  font-size: 14px;
}

.map-popup-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: 90px 1fr;
}

.popup-route {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(10, 160, 255, 0.5);
  background: rgba(10, 160, 255, 0.18);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.popup-route:hover {
  background: rgba(255, 255, 255, 0.16);
}

.map-popup-availability {
  font-size: 12px;
  font-weight: 600;
  color: #cfe7ff;
}

.map-popup-availability.free {
  color: #b6f3d7;
}

.map-popup-availability.busy {
  color: #ffd48a;
}

.map-popup-availability.off {
  color: var(--muted);
}

.theme-salon {
  background: linear-gradient(180deg, #fff 0%, #fff0f6 55%, #ffe4f1 100%);
  color: #2b1b2b;
  --ink: #2b1b2b;
  --muted: #7c6b7c;
  --accent: #ec4899;
  --accent-dark: #db2777;
  --accent-blue: #ec4899;
  --line: rgba(236, 72, 153, 0.22);
  --shadow: 0 18px 40px rgba(236, 72, 153, 0.18);
}

.theme-all {
  background: radial-gradient(circle at top, #1d2f38 0%, #14232c 55%, #0f1b23 100%);
  color: #f7fbff;
  --ink: #f7fbff;
  --muted: #b8c8d2;
  --accent: #21c58a;
  --accent-dark: #16966a;
  --accent-blue: #32d3f2;
  --line: rgba(33, 197, 138, 0.22);
  --shadow: 0 20px 40px rgba(8, 28, 34, 0.45);
}

.theme-all .hero {
  background: linear-gradient(130deg, rgba(20, 46, 52, 0.95), rgba(18, 36, 44, 0.92));
  border-color: rgba(33, 197, 138, 0.3);
}

.theme-all .hero::after {
  background: radial-gradient(circle, rgba(34, 211, 238, 0.22), transparent 70%);
}

.theme-all .panel,
.theme-all .card,
.theme-all .company-item {
  background: rgba(16, 28, 36, 0.92);
  border-color: rgba(33, 197, 138, 0.22);
}

.theme-all .logo-wrap {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.55), rgba(34, 211, 238, 0.5));
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.25);
}

.theme-all .ghost.active {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.45);
}

.theme-all .leaflet-popup-content-wrapper {
  border-color: rgba(33, 197, 138, 0.3);
  box-shadow: 0 18px 36px rgba(10, 30, 36, 0.4);
}

.theme-all .map-popup-line {
  color: #b9cdd6;
}

.theme-salon .hero {
  background: #fff;
  border-color: rgba(236, 72, 153, 0.2);
}

.theme-salon .hero::after {
  background: radial-gradient(circle, rgba(236, 72, 153, 0.2), transparent 70%);
}

.theme-salon .panel,
.theme-salon .card,
.theme-salon .calendar-day,
.theme-salon .availability-block,
.theme-salon .queue-row,
.theme-salon .company-item {
  background: #fff;
  border-color: rgba(236, 72, 153, 0.16);
}

.theme-salon .queue-list span,
.theme-salon .estimate-box,
.theme-salon .slot-button,
.theme-salon .queue-row {
  background: rgba(236, 72, 153, 0.08);
  border-color: rgba(236, 72, 153, 0.2);
}

.theme-salon .slot-button:hover,
.theme-salon .calendar-day:hover {
  border-color: rgba(236, 72, 153, 0.45);
}

.theme-salon input,
.theme-salon select {
  background: #fff;
  color: #2b1b2b;
  border-color: rgba(236, 72, 153, 0.2);
}

.theme-salon .tag {
  background: rgba(236, 72, 153, 0.16);
  color: #9d174d;
}

.theme-salon .tag.ghost {
  background: rgba(236, 72, 153, 0.08);
  color: #b4235d;
}

.theme-salon .google-button {
  border-color: rgba(236, 72, 153, 0.3);
}

.theme-salon .status-pill.free {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.3);
  color: #0f766e;
}

.theme-salon .status-pill.busy {
  background: rgba(236, 72, 153, 0.15);
  border-color: rgba(236, 72, 153, 0.35);
  color: #9d174d;
}

.theme-salon .status-pill.away {
  background: rgba(148, 163, 184, 0.2);
  border-color: rgba(148, 163, 184, 0.3);
  color: #64748b;
}

.theme-salon .current-service {
  color: #2b1b2b;
}

.theme-salon .section-label {
  color: #7c6b7c;
}

.agenda-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  margin-right: 6px;
  font-size: 14px;
}

@keyframes offer-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(31, 200, 136, 0.6);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(31, 200, 136, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(31, 200, 136, 0);
  }
}

.company-item.active {
  border-color: rgba(10, 160, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(10, 160, 255, 0.2);
}

.company-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.company-fav-btn {
  width: 40px;
  min-width: 40px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #9fb0c2;
}

.company-fav-btn.active {
  width: auto;
  min-width: 108px;
  padding: 0 10px;
  font-size: 13px;
  line-height: 1.1;
  border-color: rgba(255, 211, 106, 0.55);
  background: rgba(255, 211, 106, 0.18);
  color: #ffd36a;
}

.distance {
  font-size: 12px;
  color: var(--muted);
}

.calendar-day {
  background: rgba(16, 22, 36, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px;
  color: var(--ink);
  text-align: left;
  display: grid;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.calendar-day:hover {
  transform: translateY(-2px);
  border-color: rgba(10, 160, 255, 0.5);
}

.calendar-day.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.calendar-day.selected {
  border-color: rgba(224, 67, 44, 0.7);
  box-shadow: 0 0 0 1px rgba(224, 67, 44, 0.3);
}

.day-label {
  font-weight: 600;
}

.day-count {
  color: var(--muted);
  font-size: 13px;
}

.slots-panel {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.slots-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.slot-button {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(10, 160, 255, 0.15);
  border: 1px solid rgba(10, 160, 255, 0.4);
  color: var(--ink);
  cursor: pointer;
}

.slot-button:hover {
  background: rgba(10, 160, 255, 0.3);
}

.company-form,
.form-grid {
  display: grid;
  gap: 12px;
}

.form-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  align-items: end;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 500;
}

input,
select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 16px;
  font-family: inherit;
  background: rgba(10, 14, 22, 0.9);
  color: var(--ink);
}

input.readonly {
  background: rgba(255, 255, 255, 0.08);
  color: #c6d3ea;
}

input::placeholder {
  color: rgba(168, 176, 192, 0.7);
}

button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

button.google-button:hover {
  background: #f3f4f6;
  border-color: rgba(0, 0, 0, 0.2);
  color: #1f2937;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--ink);
}

.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.ghost.active {
  background: rgba(224, 67, 44, 0.2);
  border-color: rgba(224, 67, 44, 0.45);
}

.ghost.danger {
  border-color: rgba(224, 67, 44, 0.45);
  color: #ffb4a8;
}

.ghost.danger:hover {
  background: rgba(224, 67, 44, 0.2);
}

.availability {
  display: grid;
  gap: 16px;
}

.availability-block {
  background: rgba(16, 22, 36, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 16px;
}

.availability-days {
  display: grid;
  gap: 8px;
}

.availability-days > div {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 14, 22, 0.7);
}

.availability-days strong {
  display: block;
  margin-bottom: 6px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  color: var(--muted);
}

.legal-footer {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
  margin-top: 8px;
}

.legal-links {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
  align-items: center;
  white-space: nowrap;
}

.powered-by {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}

.powered-by img {
  width: 132px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px;
  background: transparent;
  padding: 0;
  box-shadow: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
}

.powered-by strong {
  color: #cfe6ff;
  font-size: 14px;
}

.session {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.session-name {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.session-box {
  display: grid;
  gap: 8px;
  text-align: right;
  justify-self: end;
}

.inline-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.agenda-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.agenda-tabs .ghost {
  min-width: 120px;
  text-align: center;
}

.queue-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: end;
  min-width: 0;
}

.queue-service-preview {
  margin-top: 6px;
  min-height: 18px;
  overflow-wrap: anywhere;
}

.current-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  align-items: end;
  min-width: 0;
}

.queue-actions > label,
.queue-actions > button,
.current-actions > button {
  min-width: 0;
  width: 100%;
}

.queue-actions label {
  min-width: 0;
}

.queue-actions input,
.queue-actions select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.availability-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  transition: 0.2s;
}

.slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}

.switch input:checked + .slider {
  background: rgba(31, 200, 136, 0.6);
}

.switch input:checked + .slider::before {
  transform: translateX(20px);
}

@media (max-width: 720px) {
  .queue-actions,
  .current-actions {
    grid-template-columns: 1fr;
  }

  .company-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .staff-panel {
    padding: 16px;
  }

  .staff-session {
    align-items: flex-start;
  }

  .staff-session .inline-group {
    width: 100%;
  }
}

body.page-map.is-mobile {
  overflow-x: hidden;
  font-size: 14px;
}

body.page-map.is-mobile .app {
  max-width: 100%;
  width: 100%;
  padding: 8px 6px 16px;
}

body.page-map.is-mobile .hero {
  padding: 10px;
  gap: 10px;
  position: relative;
}

body.page-map.is-mobile .brand {
  grid-template-columns: 1fr;
  row-gap: 8px;
}

body.page-map.is-mobile .brand-text {
  text-align: left;
}

body.page-map.is-mobile .logo-stack {
  justify-content: flex-start;
  gap: 6px;
  flex-wrap: wrap;
}

body.page-map.is-mobile h1 {
  font-size: clamp(17px, 5.2vw, 20px);
  line-height: 1.12;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
  margin-bottom: 6px;
}

body.page-map.is-mobile h2 {
  font-size: clamp(14px, 4vw, 17px);
}

body.page-map.is-mobile h3 {
  font-size: clamp(13px, 3.8vw, 16px);
}

body.page-map.is-mobile .eyebrow {
  font-size: 8px;
  letter-spacing: 0.12em;
}

body.page-map.is-mobile .subtitle {
  font-size: 11px;
  line-height: 1.4;
}

body.page-map.is-mobile .panel,
body.page-map.is-mobile .hero {
  border-radius: 12px;
}

body.page-map.is-mobile .panel {
  padding: 10px;
}

body.page-map.is-mobile .logo-wrap {
  width: 54px;
  height: 54px;
  padding: 4px;
}

body.page-map.is-mobile .logo-stack.single .logo-wrap {
  width: 54px;
  height: 54px;
}

body.page-map.is-mobile .logo-stack.dual .logo-wrap,
body.page-map.is-mobile .logo-wrap.dual {
  width: 44px;
  height: 44px;
}

body.page-map.is-mobile .logo-stack.dual {
  width: 44px;
  height: 44px;
}

body.page-map.is-mobile .panel-title {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

body.page-map.is-mobile .type-filter {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

body.page-map.is-mobile .hero-entry #entry-open {
  width: auto;
  min-width: 96px;
}

body.page-map.is-mobile .hero-entry {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: auto;
  justify-content: flex-end;
  gap: 0;
  margin: 0;
}

body.page-map.is-mobile .hero-entry-btn {
  flex: 0 0 auto;
  min-width: 96px;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 10px;
}

body.page-map.is-mobile .hero-session {
  max-width: min(92vw, 360px);
  padding: 6px 8px;
  gap: 6px;
}

body.page-map.is-mobile .hero-session-label {
  font-size: 11px;
}

body.page-map.is-mobile .type-filter button {
  width: 100%;
  min-width: 0;
  padding: 6px 4px;
  font-size: 10px;
  white-space: nowrap;
}

body.page-map.is-mobile .map-wrap {
  margin-top: 10px;
}

body.page-map.is-mobile .map {
  height: 45vh;
  min-height: 270px;
  max-height: 400px;
}

body.page-map.is-mobile .map-popup {
  min-width: 160px;
  max-width: 240px;
  gap: 6px;
}

body.page-map.is-mobile .map-popup-title {
  font-size: 13px;
}

body.page-map.is-mobile .map-popup-line,
body.page-map.is-mobile .map-popup-question,
body.page-map.is-mobile .map-popup-availability {
  font-size: 10px;
}

body.page-map.is-mobile .leaflet-popup-content {
  margin: 10px 12px;
  max-height: 260px;
  overflow-y: auto;
}

body.page-map.is-mobile .map-popup-offer .offer-badge {
  font-size: 10px;
  padding: 3px 6px;
}

body.page-map.is-mobile .offer-price {
  font-size: 12px;
}

body.page-map.is-mobile .map-popup-actions {
  grid-template-columns: 1fr 1fr;
}

body.page-map.is-mobile .map-popup-actions button,
body.page-map.is-mobile .map-popup-actions .popup-route {
  width: 100%;
  font-size: 12px;
  padding: 6px 8px;
}

body.page-map.is-mobile .company-item {
  flex-direction: column;
  align-items: flex-start;
  padding: 10px;
}

body.page-map.is-mobile .company-actions {
  width: 100%;
  align-items: stretch;
}

body.page-map.is-mobile .company-actions button {
  width: 100%;
}

body.page-map.is-mobile .company-actions .company-fav-btn {
  width: 40px;
  min-width: 40px;
}

body.page-map.is-mobile .company-actions .company-fav-btn.active {
  width: auto;
  min-width: 108px;
}

body.page-map.is-mobile .form-grid {
  grid-template-columns: 1fr;
}

body.page-map.is-mobile input,
body.page-map.is-mobile select,
body.page-map.is-mobile button {
  font-size: 13px;
}

@media (max-width: 480px) {
  .page-map .app {
    max-width: 100%;
    width: 100%;
    padding: 8px 6px 16px;
  }

  .page-map .hero,
  .page-map .panel {
    padding: 10px;
    border-radius: 12px;
  }

  .page-map .brand {
    grid-template-columns: 1fr;
  }

  .page-map .logo-stack {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
  }

  .page-map h1 {
    font-size: 20px;
    line-height: 1.12;
    letter-spacing: 0.01em;
    overflow-wrap: anywhere;
  }

  .page-map h2 {
    font-size: 17px;
  }

  .page-map h3 {
    font-size: 16px;
  }

  .page-map .eyebrow {
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .page-map .subtitle {
    font-size: 11px;
    line-height: 1.4;
  }

  .page-map .type-filter button {
    padding: 6px 4px;
    font-size: 10px;
  }

  .page-map .map {
    height: 41vh;
    min-height: 235px;
    max-height: 320px;
  }
}

@media (max-width: 680px) {
  .legal-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 8px;
    padding-top: 10px;
    margin-top: 6px;
  }

  .legal-links {
    flex-wrap: nowrap;
    white-space: nowrap;
    font-size: 13px;
  }

  .overlay {
    place-items: start center;
    padding: 10px;
  }

  .contract-modal .inline-group {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contract-scroll {
    max-height: min(48vh, 300px);
  }

  .terms-actions {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .powered-by {
    width: fit-content;
    justify-content: center;
    gap: 5px;
    padding: 5px 7px;
    border-radius: 10px;
  }

  .powered-by img {
    width: 72px;
    height: 20px;
  }

  .powered-by span {
    font-size: 11px;
    white-space: nowrap;
  }

  .powered-by strong {
    font-size: 11px;
  }

  .page-map .app {
    max-width: 100%;
    width: 100%;
    padding: 6px;
    gap: 12px;
  }

  .page-map .hero,
  .page-map .panel {
    width: 100%;
    margin: 0;
    border-radius: 10px;
    padding: 10px;
  }

  .page-map .hero {
    box-shadow: none;
  }

  .page-map .brand {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .page-map .logo-stack {
    gap: 4px;
  }

  .page-map .logo-wrap {
    width: 52px;
    height: 52px;
    padding: 4px;
  }

  .page-map .logo-stack.single .logo-wrap {
    width: 52px;
    height: 52px;
  }

  .page-map .logo-stack.dual .logo-wrap,
  .page-map .logo-wrap.dual {
    width: 42px;
    height: 42px;
  }

  .page-map h1 {
    font-size: 20px;
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  .page-map h2 {
    font-size: 17px;
  }

  .page-map .subtitle {
    font-size: 11px;
  }

  .page-map .type-filter {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .page-map .type-filter button {
    width: 100%;
    min-width: 0;
    padding: 6px 4px;
    font-size: 10px;
    white-space: nowrap;
  }

  .page-map .entry-switch-link {
    font-size: 13px;
  }

  .page-map .map-wrap {
    margin-top: 8px;
  }

  .page-map .map {
    height: 43vh;
    min-height: 250px;
    max-height: 340px;
  }
}

@media (max-width: 480px) {
  .page-map .app {
    padding: 0;
    gap: 10px;
  }

  .page-map .hero,
  .page-map .panel {
    border-radius: 0;
    padding: 10px;
  }

  .page-map .map {
    height: 37vh;
    min-height: 210px;
    max-height: 280px;
  }
}

.inline {
  display: flex;
  gap: 8px;
  align-items: center;
}

.list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(16, 22, 36, 0.9);
  flex-wrap: wrap;
}

.field-span {
  grid-column: 1 / -1;
}

.settings-save {
  justify-self: start;
  min-width: 220px;
}

.professional-types-field {
  align-items: stretch;
}

.professional-types-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(16, 22, 36, 0.75);
}

.professional-types-box .inline-group {
  flex-wrap: nowrap;
  align-items: stretch;
}

.professional-types-box #professional-type-input {
  flex: 1;
  min-width: 0;
}

.professional-types-box #professional-type-add {
  white-space: nowrap;
}

.professional-types-scroll {
  max-height: 200px;
  overflow-y: auto;
  padding-right: 4px;
  margin-top: 0;
}

.professional-types-scroll .list-item {
  padding: 10px 12px;
}

@media (max-width: 720px) {
  .professional-types-box .inline-group {
    flex-wrap: wrap;
  }

  .settings-save {
    width: 100%;
    min-width: 0;
  }
}

.product-row {
  gap: 16px;
}

.sale-row {
  align-items: flex-start;
  cursor: pointer;
}

.sale-row-readonly {
  cursor: default;
}

.sale-row-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.sale-row-main strong {
  line-height: 1.2;
}

.sale-row-meta {
  overflow-wrap: anywhere;
}

.sale-row-actions {
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.sale-edit-actions {
  justify-content: flex-end;
}

.product-row .product-fields {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  width: 100%;
}

.product-field {
  display: grid;
  gap: 4px;
}

.product-field-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-row input {
  min-width: 0;
}

@media (max-width: 720px) {
  .product-row {
    flex-direction: column;
    align-items: stretch;
  }

  .product-row .product-fields {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .product-row .product-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .sale-edit-actions {
    width: 100%;
    justify-content: stretch;
  }

  .sale-edit-actions button {
    flex: 1;
  }
}

.hidden {
  display: none !important;
}

@media (min-width: 768px) {
  .hero {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (max-width: 900px) {
  .header-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .header-right {
    justify-items: start;
  }
}

@media (max-width: 900px) {
  .page-establishment > .app {
    max-width: 100%;
    width: 100%;
    padding: 0;
    gap: 10px;
  }

  .page-establishment > .app > .hero,
  .page-establishment > .app > .panel {
    width: 100%;
    margin: 0;
    border-radius: 0;
    padding: 12px 10px;
    box-shadow: none;
  }

  .page-establishment .brand {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .page-establishment h1 {
    font-size: 24px;
    line-height: 1.12;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 900px) {
  .page-panel > .app {
    max-width: 100%;
    width: 100%;
    padding: 0;
    gap: 8px;
  }

  .page-panel > .app > .hero {
    width: 100%;
    margin: 0;
    border-radius: 0;
    padding: 10px 8px;
    box-shadow: none;
    border-color: transparent;
    background: transparent;
    backdrop-filter: none;
  }

  .page-panel > .app .panel {
    width: 100%;
    margin: 0;
    border-radius: 0;
    padding: 8px;
    box-shadow: none;
    border-color: transparent;
    background: transparent;
    backdrop-filter: none;
    font-size: 14px;
  }

  .page-panel .panel-group {
    gap: 8px;
  }

  .page-panel .brand {
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
  }

  .page-panel .logo-wrap {
    width: 48px;
    height: 48px;
    padding: 4px;
  }

  .page-panel h1 {
    font-size: 24px;
    line-height: 1.06;
    margin-bottom: 4px;
  }

  .page-panel .panel h2 {
    font-size: 20px;
    margin-bottom: 4px;
  }

  .page-panel .eyebrow {
    margin-bottom: 4px;
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .page-panel .subtitle {
    font-size: 10px;
    line-height: 1.2;
  }

  .page-panel .header-actions {
    justify-content: flex-start;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 2px;
  }

  .page-panel .icon-button {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 16px;
    flex: 0 0 auto;
  }

  .page-panel .panel {
    font-size: 13px;
  }

  .page-panel .panel h2 {
    font-size: 18px;
    margin-bottom: 2px;
  }

  .page-panel .panel h3 {
    font-size: 16px;
  }

  .page-panel .panel label {
    gap: 4px;
    font-size: 12px;
  }

  .page-panel .panel input,
  .page-panel .panel select {
    padding: 7px 9px;
    font-size: 13px;
    border-radius: 10px;
  }

  .page-panel .panel button {
    padding: 8px 10px;
    font-size: 13px;
    border-radius: 10px;
  }

  .page-panel .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .page-panel .module-card {
    min-height: 84px;
    padding: 10px;
    border-radius: 12px;
  }

  .page-panel .module-card strong {
    font-size: 16px;
  }

  .page-panel .dashboard-filter {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .page-panel .dashboard-filter label,
  .page-panel .dashboard-filter button {
    width: 100%;
    min-width: 0;
  }

  .page-panel .agenda-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .page-panel .agenda-tabs .ghost {
    min-width: 0;
    width: 100%;
    padding: 7px 6px;
    font-size: 12px;
  }

  .page-panel .list-item {
    padding: 8px;
    gap: 8px;
  }

  .page-panel .session-box {
    gap: 4px;
  }

  .page-panel .session {
    gap: 6px;
  }

  .page-panel .session strong {
    font-size: 13px;
  }

  .page-panel .session-name {
    max-width: 120px;
  }

  .page-panel .module-card-head {
    gap: 8px;
  }

  .page-panel .module-icon {
    width: 30px;
    height: 30px;
    font-size: 16px;
    border-radius: 9px;
  }

  .page-panel .module-icon-scissors .status-anim.scissors,
  .page-panel .module-icon-scissors .scissor-icon {
    width: 20px;
    height: 14px;
  }
}
