:root {
  color-scheme: light;
  --font-body: Helvetica, Arial, sans-serif;
  --font-display: Helvetica, Arial, sans-serif;
  --bg: #fbfcff;
  --surface: #ffffff;
  --surface-soft: #f6f7f8;
  --surface-strong: #111111;
  --text: #000000;
  --text-inverse: #ffffff;
  --muted: #565656;
  --muted-strong: #3a3a3a;
  --border: #e7e7e7;
  --primary: #000000;
  --primary-contrast: #ffffff;
  --accent: #f82586;
  --accent-contrast: #ffffff;
  --success: #2f7d4f;
  --danger: #a40000;
  --hero-image: url('https://www.hairstudios.it/wp-content/uploads/2026/01/mockup-lovers-home.jpg');
  --gift-image: url('https://www.hairstudios.it/wp-content/uploads/2025/10/gift-hs-25.png');
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.08);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.app-shell {
  min-height: 100dvh;
  padding-bottom: calc(92px + var(--safe-bottom));
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 800;
}

.brand-name {
  display: block;
  overflow: hidden;
  max-width: 48vw;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-subtitle {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.view {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 16px 28px;
}

.hero {
  position: relative;
  display: grid;
  min-height: clamp(300px, 48dvh, 540px);
  margin: 0 -16px 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.72)),
    var(--hero-image) center / cover no-repeat;
  color: #ffffff;
}

.hero-content {
  align-self: end;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 104px 16px 28px;
}

.hero-logo {
  width: min(230px, 58vw);
  max-height: 54px;
  margin-bottom: 24px;
  object-fit: contain;
  object-position: left center;
}

.hero-kicker,
.eyebrow {
  margin: 0 0 8px;
  color: color-mix(in srgb, currentColor 76%, transparent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-title {
  max-width: 720px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 8vw, 82px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.98;
}

.hero-copy {
  max-width: 620px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 2.6vw, 19px);
}

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

.section {
  margin: 28px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-title {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.05;
}

.section-note {
  margin: 6px 0 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 14px;
}

.quick-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.rewards-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.home-rewards-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}

.two-col {
  grid-template-columns: 1fr;
}

.action-tile,
.panel,
.salon-card,
.reward-card,
.stat-card,
.booking-card,
.gift-panel,
.auth-panel,
.empty-state {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.action-tile {
  display: grid;
  min-height: 120px;
  padding: 18px;
  text-decoration: none;
}

.action-tile svg,
.nav-link svg,
.btn svg,
.icon-button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  stroke-width: 2;
}

.action-tile strong {
  align-self: end;
  display: block;
  margin-top: 28px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.05;
}

.action-tile span {
  color: var(--muted);
  font-size: 13px;
}

.panel,
.empty-state {
  padding: 18px;
}

.salon-card,
.reward-card,
.booking-card {
  overflow: hidden;
}

.salon-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 430px;
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--surface-soft);
}

.reward-card .card-media {
  aspect-ratio: 1;
}

.reward-claim-layout {
  align-items: start;
  max-width: 860px;
  margin-right: auto;
  margin-left: auto;
}

.reward-claim-card {
  width: min(100%, 320px);
  justify-self: center;
}

.reward-claim-card .card-media {
  aspect-ratio: 4 / 3;
}

.reward-claim-form {
  width: min(100%, 420px);
  justify-self: center;
  align-self: start;
  gap: 12px;
  padding: 16px;
}

.reward-claim-form .field select {
  min-height: 42px;
}

.reward-claim-form .btn {
  min-height: 42px;
}

button.card-media {
  width: 100%;
  border: 0;
  padding: 0;
  color: inherit;
  cursor: pointer;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 14px;
}

.card-title {
  display: -webkit-box;
  min-height: 40px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 12px 0 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
}

.card-meta {
  display: -webkit-box;
  min-height: 40px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 8px;
  background: var(--surface-soft);
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 800;
}

.badge.primary {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--accent);
}

.badge.alt {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
  color: var(--accent);
}

.btn,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.btn {
  padding: 10px 14px;
}

.icon-button {
  width: 42px;
  padding: 0;
}

.btn.primary {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-contrast);
}

.btn.accent {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-contrast);
}

.btn.ghost {
  background: transparent;
  color: currentColor;
}

.btn.full {
  width: 100%;
}

.btn.text {
  min-height: auto;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  text-decoration: underline;
}

.filter-row,
.segmented {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.segmented {
  margin: 12px 0 16px;
}

.segment {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 800;
}

.segment.active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-contrast);
}

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

.form-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 800;
}

.control,
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--surface);
  color: var(--text);
  outline: 0;
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.amount-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.amount-value {
  min-width: 74px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 10px;
  background: var(--surface-soft);
  text-align: center;
  font-weight: 900;
}

.gift-panel {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: 18px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--surface) 95%, transparent), color-mix(in srgb, var(--surface) 72%, transparent)),
    var(--gift-image) right center / contain no-repeat,
    var(--surface);
}

.gift-panel .panel-content {
  max-width: 560px;
}

.app-download-panel {
  display: grid;
  gap: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  background: linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--accent) 8%, var(--surface)));
  box-shadow: var(--shadow-soft);
}

.app-download-copy .card-actions {
  margin-top: 16px;
}

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

.store-qr-card {
  display: grid;
  place-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface);
  color: var(--text);
  text-align: center;
  text-decoration: none;
}

.store-qr-card img {
  width: min(138px, 100%);
  aspect-ratio: 1;
  border-radius: 6px;
  padding: 8px;
  background: #ffffff;
}

.store-qr-card strong {
  font-size: 13px;
}

.salon-map-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.map-copy {
  padding: 18px 18px 0;
}

.italy-map-wrap {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  background: var(--surface-soft);
}

.leaflet-map {
  z-index: 1;
  width: 100%;
  height: 420px;
  min-height: 380px;
}

.leaflet-container {
  width: 100%;
  height: 420px;
  min-height: 380px;
  background: var(--surface-soft);
  font-family: var(--font-body);
}

.leaflet-container .leaflet-tile {
  width: 256px !important;
  height: 256px !important;
  max-width: none !important;
  max-height: none !important;
}

.leaflet-container img.leaflet-tile {
  display: block;
}

.leaflet-container .leaflet-tile-container {
  transform-origin: 0 0;
}

.leaflet-salon-marker {
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.leaflet-salon-marker span {
  width: 18px;
  height: 18px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 24%, transparent), 0 8px 18px rgba(0, 0, 0, 0.26);
}

.leaflet-salon-marker.active span {
  width: 24px;
  height: 24px;
  background: var(--primary);
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 34%, transparent), var(--shadow);
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: var(--surface);
  color: var(--text);
}

.leaflet-popup-content {
  min-width: 170px;
  margin: 12px;
  color: var(--muted);
}

.leaflet-popup-content strong {
  color: var(--text);
}

.leaflet-popup-content a {
  color: var(--accent);
  font-weight: 800;
}

.map-fallback {
  display: grid;
  min-height: 380px;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.salon-card.nearest {
  border-color: color-mix(in srgb, var(--accent) 62%, var(--border));
}

.auth-panel {
  max-width: 520px;
  margin: 24px auto;
  padding: 20px;
}

.booking-auth-section {
  display: flex;
  justify-content: center;
}

.booking-auth-panel {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 24px;
  text-align: center;
}

.booking-auth-panel .section-title {
  font-size: clamp(24px, 5vw, 36px);
  line-height: 1.12;
}

.booking-auth-title {
  display: grid;
  gap: 7px;
}

.booking-auth-title strong {
  color: var(--accent);
}

.booking-auth-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
  padding-top: 0;
}

.booking-auth-actions .btn,
.booking-auth-actions .segment {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  justify-content: center;
  white-space: normal;
  text-align: center;
}

.booking-auth-panel .form-grid {
  margin-top: 18px;
}

.booking-auth-panel .field label {
  text-align: center;
}

.booking-shell {
  display: grid;
  gap: 14px;
}

.booking-tabs {
  margin: 0;
}

.booking-layout {
  display: grid;
  gap: 14px;
}

.booking-panel {
  display: grid;
  gap: 18px;
}

.booking-summary-side {
  align-self: start;
}

.booking-progress {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.booking-progress-step {
  display: grid;
  min-width: 0;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

.booking-progress-step span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin: 0 auto;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: var(--surface);
}

.booking-progress-step.active,
.booking-progress-step.done {
  color: var(--primary);
}

.booking-progress-step.active span,
.booking-progress-step.done span {
  background: var(--primary);
  color: var(--primary-contrast);
}

.booking-step-panel {
  min-height: 320px;
}

.booking-step-head {
  margin-bottom: 14px;
}

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

.service-grid {
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
}

.choice-card {
  position: relative;
  display: grid;
  gap: 7px;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  background: var(--surface);
  color: var(--text);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.choice-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 14%, transparent);
}

.choice-media {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface-soft);
}

.choice-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.choice-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.choice-placeholder svg {
  width: 32px;
  height: 32px;
}

.choice-card strong {
  display: -webkit-box;
  min-height: 32px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 13px;
  line-height: 1.18;
}

.choice-card .card-meta {
  min-height: 18px;
  margin: 0;
  font-size: 12px;
  -webkit-line-clamp: 1;
}

.choice-check {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-contrast);
}

.choice-check svg {
  width: 15px;
  height: 15px;
}

.service-category-row {
  margin-bottom: 14px;
}

.date-panel {
  display: grid;
  max-width: 360px;
}

.date-panel input {
  min-height: 54px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
  gap: 10px;
}

.time-chip {
  min-height: 46px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-weight: 900;
}

.time-chip.selected {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-contrast);
}

.booking-alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid color-mix(in srgb, var(--danger) 34%, var(--border));
  border-radius: 8px;
  margin-bottom: 14px;
  padding: 14px;
  background: color-mix(in srgb, var(--danger) 6%, var(--surface));
  color: var(--danger);
}

.booking-alert p {
  margin: 0;
}

.booking-alert .btn {
  margin-top: 12px;
}

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

.alternative-chip {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-contrast);
}

.booking-bottom {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.booking-bottom .btn {
  min-width: 0;
}

.summary-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
}

.summary-list div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.summary-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.summary-list dd {
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

.summary-services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.appointments-panel {
  display: grid;
  gap: 14px;
}

.appointment-note {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  font-size: 13px;
  font-style: italic;
}

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

.appointment-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.appointment-card .card-title {
  min-height: 0;
  margin-top: 0;
}

.appointment-date {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.appointment-price {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.appointment-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 12px;
}

.appointment-service {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  overflow-wrap: anywhere;
}

.appointment-service .card-meta {
  margin: 4px 0 0;
}

.rules-text {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.45;
}

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

.stat-card {
  padding: 16px;
}

.stat-value {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

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

.profile-layout {
  display: grid;
  gap: 16px;
  max-width: 880px;
  margin-right: auto;
  margin-left: auto;
}

.profile-edit-form {
  padding: 18px;
}

.profile-form-actions {
  justify-content: flex-end;
}

.code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px dashed color-mix(in srgb, var(--accent) 56%, var(--border));
  border-radius: 8px;
  padding: 14px;
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
}

.code-box strong {
  font-family: var(--font-display);
  font-size: 24px;
}

.personal-card {
  min-width: 0;
  overflow-wrap: anywhere;
}

.personal-description {
  white-space: pre-line;
}

.personal-list {
  margin-top: 16px;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(20px);
  padding: 8px max(8px, env(safe-area-inset-left)) calc(8px + var(--safe-bottom)) max(8px, env(safe-area-inset-right));
}

.bottom-nav-inner {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  width: min(720px, 100%);
  margin: 0 auto;
  gap: 4px;
}

.nav-link {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 58px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.nav-link.active {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}

.notice {
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--border));
  border-radius: 8px;
  margin: 16px 0;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  color: var(--text);
}

.notice.error {
  border-color: color-mix(in srgb, var(--danger) 44%, var(--border));
  background: color-mix(in srgb, var(--danger) 7%, var(--surface));
}

.loader {
  display: inline-grid;
  width: 28px;
  height: 28px;
  border: 3px solid color-mix(in srgb, var(--muted) 24%, transparent);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: end;
  background: rgba(0, 0, 0, 0.42);
  padding: 16px;
}

.modal {
  width: min(620px, 100%);
  max-height: min(720px, 90dvh);
  margin: 0 auto;
  overflow: auto;
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding: 16px;
}

.modal-body {
  padding: 16px;
}

.modal-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.1;
}

.force-update-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
}

.force-update-card {
  width: min(440px, 100%);
  border-radius: 8px;
  padding: 24px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  text-align: center;
}

.force-update-card h2 {
  margin: 6px 0 10px;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.1;
}

.force-update-card p {
  margin: 0 0 12px;
}

.hidden {
  display: none !important;
}

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

@media (min-width: 720px) {
  .view {
    padding-inline: 24px;
  }

  .hero {
    margin-inline: -24px;
  }

  .hero-content {
    padding-inline: 24px;
  }

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

  .app-download-panel {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
    align-items: center;
  }

  .two-col {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  }

  .reward-claim-layout {
    grid-template-columns: minmax(220px, 320px) minmax(280px, 420px);
    justify-content: center;
  }

  .salon-map-panel {
    grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1.2fr);
    align-items: stretch;
  }

  .map-copy {
    align-self: center;
    padding: 26px 0 26px 26px;
  }

  .italy-map-wrap {
    min-height: 440px;
  }

  .leaflet-map,
  .leaflet-container {
    height: 440px;
  }

  .form-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booking-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.38fr);
    align-items: start;
  }

  .choice-grid {
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  }

  .service-grid {
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  }

  .modal-backdrop {
    align-items: center;
  }
}

@media (min-width: 980px) {
  .app-shell {
    padding-bottom: 0;
  }

  .home-rewards-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .header-inner {
    padding-inline: 24px;
  }

  .bottom-nav {
    top: 76px;
    right: auto;
    bottom: auto;
    left: max(16px, calc((100vw - 1180px) / 2));
    width: 86px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
    box-shadow: var(--shadow-soft);
  }

  .bottom-nav-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .nav-link {
    min-height: 66px;
  }

  .view {
    padding-left: 120px;
  }
}

@media (max-width: 420px) {
  .brand-name {
    max-width: 40vw;
  }

  .hero-title {
    font-size: 38px;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .booking-tabs,
  .booking-bottom {
    display: grid;
    grid-template-columns: 1fr;
  }

  .choice-grid,
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .btn {
    padding-inline: 12px;
  }
}
