/* ==========================================================================
   BEWA Pages — page-scoped styles
   ========================================================================== */

/* ---- Home ---- */
html[data-page="home"] #appCapsule {
  padding-top: 4px;
}

.bewa-home-hero {
  padding: 8px 16px 12px !important;
}

.bewa-home-logo {
  max-height: 48px !important;
  width: auto !important;
  display: block;
}

.appHeader.home-header .pageTitle {
  left: 0;
  right: 0;
  display: flex !important;
  align-items: center;
  justify-content: center;
  line-height: 1 !important;
  pointer-events: none;
  z-index: 1;
}

.appHeader.home-header .left,
.appHeader.home-header .right {
  z-index: 2;
}

.appHeader.home-header .pageTitle .bewa-header-logo {
  height: 34px !important;
  width: auto !important;
  max-width: 168px;
  max-height: 34px !important;
  line-height: 0 !important;
  display: block;
}

.bewa-home-tagline {
  margin: 10px 0 0;
  font-size: var(--bewa-fs-subhead);
  font-weight: 500;
  color: var(--bewa-ink-muted);
  line-height: 1.35;
}

.bewa-home-hello {
  margin: 8px 0 0;
  font-family: var(--bewa-display);
  font-size: var(--bewa-fs-title-2);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--bewa-ink);
}

.home-discover-title .subtitle {
  display: none;
}

html[data-page="home"] .header-large-title {
  padding: 18px 16px 4px;
}

html[data-page="home"] .header-large-title .title {
  font-size: var(--bewa-fs-title-1);
  margin: 0;
}

html[data-page="home"] .header-large-title .subtitle {
  margin-top: 2px;
  font-size: var(--bewa-fs-footnote);
}

/* ---- Cerca: icona in header, pannello a scomparsa, tab fissi ---- */
html[data-page="cerca_categorie"] .appHeader .headerButton,
html[data-page="cerca_categorie"] .appHeader.bg-primary .left .headerButton,
html[data-page="cerca_categorie"] .appHeader.bg-primary .right .headerButton,
html[data-page="cerca_categorie"] .appHeader .headerButton i,
html[data-page="cerca_categorie"] .appHeader.bg-primary .left .headerButton i,
html[data-page="cerca_categorie"] .appHeader.bg-primary .right .headerButton i {
  color: #141515 !important;
  -webkit-text-fill-color: #141515 !important;
}

html[data-page="cerca_categorie"] .extraHeader.bewa-cerca-dock {
  height: auto !important;
  display: block !important;
  padding: 0 !important;
  background: var(--bewa-glass-strong) !important;
  border-bottom: 0.5px solid var(--bewa-line) !important;
  box-shadow: none !important;
  backdrop-filter: saturate(1.8) blur(20px);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
}

html[data-page="cerca_categorie"] .bewa-cerca-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s var(--bewa-ease-ios);
}

html[data-page="cerca_categorie"] .bewa-cerca-dock.is-open .bewa-cerca-panel {
  grid-template-rows: 1fr;
}

html[data-page="cerca_categorie"] .bewa-cerca-panel .search-form {
  overflow: hidden;
  min-height: 0;
  margin: 0;
}

html[data-page="cerca_categorie"] .bewa-cerca-panel .searchbox {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 40px;
}

html[data-page="cerca_categorie"] .bewa-cerca-dock.is-open .bewa-cerca-panel .search-form {
  padding: 8px 16px 6px;
}

html[data-page="cerca_categorie"] .bewa-cerca-panel .searchbox .form-control {
  border-radius: 12px !important;
  background: rgba(20, 21, 21, 0.06) !important;
  border: 0 !important;
  box-shadow: none !important;
  height: 40px;
  min-height: 40px;
  padding-left: 40px !important;
}

html[data-page="cerca_categorie"] .bewa-cerca-panel .searchbox .input-icon {
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  font-size: 18px;
}

html[data-page="cerca_categorie"] .bewa-cerca-panel .searchbox .form-control:focus {
  background: var(--bewa-surface) !important;
  box-shadow: 0 0 0 3px var(--bewa-brand-soft) !important;
}

html[data-page="cerca_categorie"] .nav-tabs.lined.bewa-cerca-tabs {
  width: 100% !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 8px !important;
  border: 0 !important;
  border-radius: 0 !important;
  border-top: 0 !important;
  background: transparent !important;
}

html[data-page="cerca_categorie"] .nav-tabs.lined.bewa-cerca-tabs .nav-item .nav-link {
  min-height: 44px;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-bottom: 2px solid transparent !important;
  color: var(--bewa-ink-muted) !important;
}

html[data-page="cerca_categorie"] .nav-tabs.lined.bewa-cerca-tabs .nav-item .nav-link.active {
  background: transparent !important;
  box-shadow: none !important;
  color: var(--bewa-brand-deep) !important;
  border-bottom: 2px solid var(--bewa-brand) !important;
}

html[data-page="cerca_categorie"] #appCapsule.extra-header-active {
  padding-top: calc(108px + env(safe-area-inset-top, 0px)) !important;
  padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)) !important;
}

html.is-webview[data-page="cerca_categorie"] #appCapsule.extra-header-active {
  padding-top: 108px !important;
}

/* ---- Prenotazioni: tab fisse sotto header, stesso stile di cerca_categorie ---- */
html[data-page="bookings_list"] .extraHeader.bewa-bookings-dock {
  height: auto !important;
  display: block !important;
  padding: 0 !important;
  background: var(--bewa-glass-strong) !important;
  border-bottom: 0.5px solid var(--bewa-line) !important;
  box-shadow: none !important;
  backdrop-filter: saturate(1.8) blur(20px);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
}

html[data-page="bookings_list"] .nav-tabs.lined.bewa-bookings-dock-tabs {
  width: 100% !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 8px !important;
  border: 0 !important;
  border-radius: 0 !important;
  border-top: 0 !important;
  background: transparent !important;
}

html[data-page="bookings_list"] .nav-tabs.lined.bewa-bookings-dock-tabs .nav-item .nav-link {
  min-height: 44px;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-bottom: 2px solid transparent !important;
  color: var(--bewa-ink-muted) !important;
}

html[data-page="bookings_list"] .nav-tabs.lined.bewa-bookings-dock-tabs .nav-item .nav-link.active {
  background: transparent !important;
  box-shadow: none !important;
  color: var(--bewa-brand-deep) !important;
  border-bottom: 2px solid var(--bewa-brand) !important;
}

html[data-page="bookings_list"] #appCapsule.extra-header-active {
  padding-top: calc(102px + env(safe-area-inset-top, 0px)) !important;
}

html.is-webview[data-page="bookings_list"] #appCapsule.extra-header-active {
  padding-top: 102px !important;
}

html[data-page="cerca_resulta_category"] .extraHeader,
html[data-page="cerca"] .extraHeader {
  padding-top: 8px;
}

.extraHeader .searchbox .form-control {
  border-radius: var(--bewa-radius-pill) !important;
  background: rgba(20, 21, 21, 0.06) !important;
  border: 0 !important;
  min-height: 42px;
  padding-left: 40px !important;
  font-size: var(--bewa-fs-subhead);
}

.extraHeader .searchbox .form-control:focus {
  background: var(--bewa-surface) !important;
  box-shadow: 0 0 0 4px var(--bewa-brand-soft) !important;
}

html[data-page="cerca_categorie"] .category-block,
html[data-page="cerca_categorie"] .accordion-item {
  background: var(--bewa-surface);
  border-radius: var(--bewa-radius-lg);
  border: 1px solid var(--bewa-line);
  margin: 8px 16px;
  overflow: hidden;
}

.profile-head h5.subtext,
.profile-head .subtext {
  font-weight: 500;
  color: var(--bewa-ink-muted);
  font-size: 0.92rem;
}

/* ---- Auth modals: allineamenti ---- */
#registerModal .modal-body,
#loginModal .modal-body {
  padding-bottom: 1.25rem;
}

#registerModal .form-group.basic,
#loginModal .form-group.basic {
  margin-bottom: 0.85rem;
}

#registerModal .bewa-password-field,
#loginModal .bewa-password-field {
  position: relative;
  display: block;
}

#registerModal .bewa-password-field .form-control,
#loginModal .bewa-password-field .form-control {
  padding-right: 3rem !important;
}

#registerModal .bewa-password-field .bewa-btn-toggle-password,
#loginModal .bewa-password-field .bewa-btn-toggle-password,
.bewa-password-field .bewa-btn-toggle-password {
  position: absolute !important;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  -webkit-appearance: none;
  border: 0 !important;
  border-radius: 0 !important;
  outline: none !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  color: #6b7280 !important;
  box-shadow: none !important;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

#registerModal .bewa-password-field .bewa-btn-toggle-password:hover,
#registerModal .bewa-password-field .bewa-btn-toggle-password:focus,
#registerModal .bewa-password-field .bewa-btn-toggle-password:active,
#loginModal .bewa-password-field .bewa-btn-toggle-password:hover,
#loginModal .bewa-password-field .bewa-btn-toggle-password:focus,
#loginModal .bewa-password-field .bewa-btn-toggle-password:active,
.bewa-password-field .bewa-btn-toggle-password:hover,
.bewa-password-field .bewa-btn-toggle-password:focus,
.bewa-password-field .bewa-btn-toggle-password:active {
  border: 0 !important;
  outline: none !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  color: var(--bewa-ink, #141515) !important;
}

.bewa-password-field .bewa-btn-toggle-password i {
  font-size: 1.15rem;
  line-height: 1;
  pointer-events: none;
}

/* Toggle password anche fuori dalle modali login/registrazione (es. cambio password) */
.bewa-password-field {
  position: relative;
  display: block;
}
.bewa-password-field .form-control {
  padding-right: 3rem !important;
}

#registerModal .form-check,
#loginModal .form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding-left: 0 !important;
  margin-bottom: 0.75rem;
  min-height: auto;
}

#registerModal .form-check .form-check-input,
#loginModal .form-check .form-check-input {
  display: inline-block;
  float: none;
  margin: 0.15rem 0 0 0;
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--bewa-brand);
  cursor: pointer;
}

/* Il tema disegna il box via label::after con input nascosto: qui usiamo
   l'input nativo affiancato al testo, quindi si disattivano i cerchi assoluti */
#registerModal .form-check .form-check-label::after,
#loginModal .form-check .form-check-label::after,
#registerModal .form-check .form-check-label::before,
#loginModal .form-check .form-check-label::before {
  content: none !important;
}

#registerModal .form-check .form-check-label,
#loginModal .form-check .form-check-label {
  position: static;
  margin: 0;
  padding: 0;
  line-height: 1.35;
  font-size: 0.95rem;
  text-align: left;
}

#registerModal .form-check .form-check-label a {
  color: var(--bewa-brand);
  font-weight: 600;
  text-decoration: none;
}

/* Header modale Registrati (modalbox): titolo visibile come nelle headbar */
#registerModal.modalbox .modal-dialog .modal-content .modal-header {
  background: var(--bewa-surface, #fff) !important;
}
#registerModal.modalbox .modal-dialog .modal-content .modal-header .modal-title {
  color: var(--bewa-ink, #141515) !important;
  -webkit-text-fill-color: var(--bewa-ink, #141515);
  font-size: 17px;
  font-weight: 700;
}

/* ---- Place profile (iOS) ---- */
html[data-page="page_profile_place"] #appCapsule,
.bewa-place-page {
  background: var(--bewa-bg);
  padding-top: 0 !important;
  padding-bottom: 120px !important;
}

html[data-page="page_profile_place"] .appHeader,
html[data-page="page_profile_place"] .appHeader.bg-primary,
html[data-page="page_profile_place"] .appHeader.bg-primary.scrolled,
html[data-page="page_profile_place"] .appHeader.scrolled.bg-primary.is-active {
  background: transparent !important;
  border-bottom-color: transparent !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html[data-page="page_profile_place"] .appHeader .pageTitle {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--bewa-dur) var(--bewa-ease-ios), transform var(--bewa-dur) var(--bewa-ease-ios);
}

html[data-page="page_profile_place"] .appHeader .headerButton,
html[data-page="page_profile_place"] .appHeader.bg-primary .left .headerButton,
html[data-page="page_profile_place"] .appHeader.bg-primary .right .headerButton,
html[data-page="page_profile_place"] .appHeader .headerButton i,
html[data-page="page_profile_place"] .appHeader.bg-primary .left i,
html[data-page="page_profile_place"] .appHeader.bg-primary .right i {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

html[data-page="page_profile_place"] .appHeader .headerButton,
html[data-page="page_profile_place"] .appHeader.bg-primary .left .headerButton,
html[data-page="page_profile_place"] .appHeader.bg-primary .right .headerButton {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  margin: 0 6px;
  background: rgba(20, 21, 21, 0.32) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--bewa-dur) var(--bewa-ease-ios), transform var(--bewa-dur-fast) var(--bewa-ease-ios);
}

html[data-page="page_profile_place"] .appHeader.is-scrolled,
html[data-page="page_profile_place"] .appHeader.is-scrolled.bg-primary,
html[data-page="page_profile_place"] .appHeader.is-scrolled.scrolled.bg-primary.is-active {
  background: var(--bewa-glass-strong) !important;
  border-bottom-color: var(--bewa-line) !important;
  backdrop-filter: saturate(1.8) blur(20px);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
}

html[data-page="page_profile_place"] .appHeader.is-scrolled .pageTitle {
  opacity: 1;
  transform: none;
}

html[data-page="page_profile_place"] .appHeader.is-scrolled .headerButton,
html[data-page="page_profile_place"] .appHeader.is-scrolled.bg-primary .left .headerButton,
html[data-page="page_profile_place"] .appHeader.is-scrolled.bg-primary .right .headerButton {
  background: transparent !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html[data-page="page_profile_place"] .appHeader.is-scrolled .headerButton,
html[data-page="page_profile_place"] .appHeader.is-scrolled.bg-primary .left .headerButton,
html[data-page="page_profile_place"] .appHeader.is-scrolled.bg-primary .right .headerButton,
html[data-page="page_profile_place"] .appHeader.is-scrolled .headerButton i,
html[data-page="page_profile_place"] .appHeader.is-scrolled.bg-primary .left i,
html[data-page="page_profile_place"] .appHeader.is-scrolled.bg-primary .right i {
  color: #000 !important;
  -webkit-text-fill-color: #000;
}

/* L'hero scorre sotto l'header trasparente (il padding-top di #appCapsule è inline !important) */
.bewa-place-hero {
  position: relative;
  background: #0b1a26;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 62vh;
  margin-top: calc(-56px - env(safe-area-inset-top, 0px));
}

html.is-webview .bewa-place-hero {
  margin-top: -56px;
}

.bewa-place-hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.bewa-place-hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(5, 20, 30, 0.42) 0%, rgba(5, 20, 30, 0) 32%),
    linear-gradient(to top, rgba(245, 244, 242, 1) 0%, rgba(245, 244, 242, 0) 26%);
}

.bewa-place-card {
  position: relative;
  z-index: 2;
  margin: -44px 12px 0;
  padding: 16px 16px 14px;
  background: var(--bewa-surface);
  border: 1px solid var(--bewa-line);
  border-bottom: 0;
  border-radius: var(--bewa-radius-lg) var(--bewa-radius-lg) 0 0;
  box-shadow: none;
}

.bewa-place-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.bewa-place-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(118, 118, 118, 0.14);
  border: 0;
  font-size: var(--bewa-fs-caption);
  font-weight: 700;
  color: var(--bewa-brand-deep);
}

.bewa-place-chip--rating {
  background: var(--bewa-warning-soft);
  color: #9a5b00;
}

.bewa-place-chip--rating i {
  color: var(--bewa-warning);
  font-size: 0.7rem;
}

.bewa-place-distance {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--bewa-ink-muted);
  font-size: var(--bewa-fs-caption);
  font-weight: 600;
  white-space: nowrap;
  flex: 0 0 auto;
}

.bewa-place-name {
  margin: 0 0 6px;
  font-family: var(--bewa-display);
  font-size: var(--bewa-fs-title-2);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--bewa-ink);
}

.bewa-place-address {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--bewa-ink-muted);
  text-decoration: none !important;
  font-size: var(--bewa-fs-footnote);
  line-height: 1.35;
  margin-bottom: 10px;
}

.bewa-place-address i {
  color: var(--bewa-brand);
  flex: 0 0 auto;
  margin-top: 1px;
}

.bewa-place-address span {
  min-width: 0;
}

.bewa-place-bio {
  margin: 0 0 12px;
  font-size: var(--bewa-fs-subhead);
  line-height: 1.45;
  color: var(--bewa-ink);
}

.bewa-place-quick {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.bewa-place-quick-btn {
  flex: 1 1 100%;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--bewa-bg);
  border: 1px solid var(--bewa-line);
  color: var(--bewa-ink) !important;
  font-size: var(--bewa-fs-footnote);
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  overflow: hidden;
  transition: background var(--bewa-dur-fast) var(--bewa-ease-ios), transform var(--bewa-dur-fast) var(--bewa-ease-ios);
}

.bewa-place-quick-btn i {
  color: var(--bewa-brand);
  font-size: 1rem;
}

.bewa-place-quick-btn:active {
  background: var(--bewa-brand-soft);
  transform: scale(0.97);
}

.bewa-place-stats {
  display: none; /* nascosta per ora — non eliminare */
  /* display: grid; */
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.bewa-place-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 6px;
  background: #f6f7f9;
  border: 1px solid var(--bewa-line);
  border-radius: 14px;
  text-align: center;
  text-decoration: none !important;
  color: inherit;
  min-height: 64px;
}

.bewa-place-stat strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bewa-ink);
  line-height: 1.2;
}

.bewa-place-stat span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--bewa-ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.bewa-img-skel {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(90deg, #ebe7e1 25%, #f4f1ec 50%, #ebe7e1 75%);
  background-size: 200% 100%;
  animation: bewa-shimmer 1.1s ease-in-out infinite;
}

.bewa-img-skel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  display: block;
}

.bewa-img-skel.is-loaded {
  animation: none;
  background: #ebe7e1;
}

.bewa-img-skel.is-loaded img {
  opacity: 1;
}

.bewa-img-skel--card {
  border-radius: 0;
  aspect-ratio: 4 / 3;
}

html[data-page="page_profile_place"] #team .wide-block {
  background: transparent;
  border: 0;
  padding: 0 12px 8px;
}

html[data-page="page_profile_place"] #team .bewa-team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0 12px !important;
  padding: 18px 16px 16px !important;
  border: 1px solid var(--bewa-line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--bewa-shadow);
  background: var(--bewa-surface);
}

html[data-page="page_profile_place"] #team .bewa-team-card .bewa-img-skel,
html[data-page="page_profile_place"] #team .bewa-team-card .bewa-img-skel--card {
  width: 112px;
  height: 112px;
  aspect-ratio: 1;
  margin: 0 auto 12px;
  border-radius: 50%;
  flex: 0 0 auto;
}

html[data-page="page_profile_place"] #team .bewa-team-card .bewa-img-skel img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center top !important;
  border-radius: 50%;
}

html[data-page="page_profile_place"] #team .bewa-team-card .card-body {
  padding: 0;
  width: 100%;
}

html[data-page="page_profile_place"] #team .bewa-team-card .card-subtitle {
  margin: 0 0 4px;
  font-size: var(--bewa-fs-caption);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bewa-ink-muted);
}

html[data-page="page_profile_place"] #team .bewa-team-card .card-title {
  margin: 0;
  font-size: var(--bewa-fs-title-3);
  font-weight: 700;
}

html[data-page="page_profile_place"] #team .bewa-team-card .card-text:empty {
  display: none;
}

.bewa-place-stats a.bewa-place-stat:active {
  transform: scale(0.98);
  background: #eef1f4;
}

/* Tab attaccati alla card (niente isola grigia). In scroll diventano una barra piena sotto l'header. */
.bewa-place-tabs {
  position: sticky;
  top: calc(56px + env(safe-area-inset-top, 0px));
  z-index: 30 !important;
  margin: 0 12px 16px;
  padding: 0;
  background: var(--bewa-surface);
  border: 1px solid var(--bewa-line);
  border-top: 0.5px solid var(--bewa-line);
  border-radius: 0 0 var(--bewa-radius-lg) var(--bewa-radius-lg);
  box-shadow: var(--bewa-shadow);
}

html.is-webview .bewa-place-tabs {
  top: 56px;
}

.bewa-place-tabs.is-stuck {
  position: fixed;
  top: calc(56px + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  z-index: 1100;
  width: auto;
  margin: 0;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  box-shadow: 0 8px 20px rgba(20, 21, 21, 0.06);
}

html.is-webview .bewa-place-tabs.is-stuck {
  top: 56px;
}

.bewa-place-tabs.is-stuck + .bewa-place-tabcontent {
  margin-top: var(--bewa-tabs-h, 48px);
}

.bewa-place-nav,
.nav-tabs.lined.bewa-place-nav {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: auto !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 6px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.nav-tabs.lined.bewa-place-nav .nav-item .nav-link,
.nav-tabs.lined.iconed.bewa-place-nav .nav-item .nav-link {
  min-height: 46px;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-bottom: 2px solid transparent !important;
  color: var(--bewa-ink-muted) !important;
}

.nav-tabs.lined.bewa-place-nav .nav-item .nav-link.active,
.nav-tabs.lined.iconed.bewa-place-nav .nav-item .nav-link.active {
  background: transparent !important;
  box-shadow: none !important;
  color: var(--bewa-brand-deep) !important;
  border-bottom: 2px solid var(--bewa-brand) !important;
}

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

.bewa-place-nav .nav-item {
  flex: 1 1 auto;
}

.bewa-place-tabcontent {
  background: transparent;
  padding: 4px 0 24px;
}

.bewa-place-tabcontent .tab-pane > .header-large-title {
  background: transparent !important;
  padding: 14px 16px 6px;
}

.bewa-place-tabcontent .tab-pane > .header-large-title .title {
  font-size: var(--bewa-fs-title-2);
}

.bewa-place-tabcontent .wide-block,
.bewa-place-tabcontent .row.bg-white {
  background: transparent !important;
  border: 0 !important;
}

/* Team cards nel tab */
#team .card {
  border-radius: var(--bewa-radius-lg) !important;
  border: 1px solid var(--bewa-line);
  margin-bottom: 12px;
  padding: 14px 12px 10px;
}

#team .card .card-img-top {
  width: 72px !important;
  height: 72px !important;
  border-radius: 50% !important;
  object-fit: cover;
  margin: 0 auto;
  display: block;
}

#team .card .card-subtitle {
  font-size: var(--bewa-fs-caption);
  color: var(--bewa-ink-muted);
}

#team .card .card-title {
  font-size: var(--bewa-fs-headline);
  font-weight: 700;
}

/* Gallery */
#gallery .imaged {
  border-radius: 14px !important;
  box-shadow: none !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Info tab: liste inset grouped */
#infoPlaces .listview-title {
  background: transparent !important;
  padding: 14px 28px 6px;
  font-size: var(--bewa-fs-footnote);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bewa-ink-muted) !important;
}

#infoPlaces .listview.image-listview {
  margin: 0 12px 8px;
  border-radius: var(--bewa-radius-lg);
  overflow: hidden;
  border: 1px solid var(--bewa-line);
  background: var(--bewa-surface) !important;
  padding-top: 0 !important;
}

#infoPlaces .listview.image-listview > li:last-child .item {
  border-bottom: 0;
}

#infoPlaces .badge.bg-secondary {
  background: var(--bewa-success-soft) !important;
  color: #1b7a36 !important;
  font-weight: 600;
}

#infoPlaces .badge.bg-danger {
  background: var(--bewa-danger-soft) !important;
  color: #c62828 !important;
  font-weight: 600;
}

/* Services list (inset grouped) */
.bewa-services-head {
  padding: 14px 16px 6px;
  background: transparent;
}

.bewa-services-title {
  margin: 0;
  font-family: var(--bewa-display);
  font-size: var(--bewa-fs-title-2);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--bewa-ink);
}

.bewa-services-sub {
  margin: 4px 0 0;
  font-size: var(--bewa-fs-footnote);
  color: var(--bewa-ink-muted);
  line-height: 1.35;
}

.bewa-services-section {
  margin: 8px 12px 0;
}

.bewa-services-colhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 16px 6px;
  background: transparent;
  color: var(--bewa-ink-muted);
  font-size: var(--bewa-fs-caption);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bewa-services-list {
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--bewa-surface);
  border: 1px solid var(--bewa-line);
  border-radius: var(--bewa-radius-lg);
  overflow: hidden;
}

.bewa-services-list.listview,
.bewa-services-list.simple-listview {
  border: 1px solid var(--bewa-line) !important;
}

.bewa-service-row {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px !important;
  border-bottom: 0.5px solid var(--bewa-line) !important;
  background: var(--bewa-surface);
  min-height: 64px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: background var(--bewa-dur-fast) var(--bewa-ease-ios);
}

.bewa-service-row:last-child {
  border-bottom: 0 !important;
}

.bewa-service-row:has(.bewa-service-check:checked) {
  background: var(--bewa-brand-soft);
}

.bewa-service-row.is-pressed {
  transform: none !important;
  background: rgba(20, 21, 21, 0.04);
}

.bewa-service-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bewa-service-name {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--bewa-ink);
  line-height: 1.25;
}

.bewa-service-desc {
  font-size: 0.8rem;
  color: var(--bewa-ink-muted);
  line-height: 1.3;
}

/* Vetrina BASIC / BASIC + BACKOFFICE (senza prenotazione): tipografia servizi più leggera */
.bewa-services--basic .bewa-service-name {
  font-weight: 500;
  color: var(--bewa-ink);
  line-height: 1.25;
}

.bewa-services--basic .bewa-service-price {
  font-weight: 500;
}

.bewa-service-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.bewa-service-price {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--bewa-ink);
  white-space: nowrap;
}

.bewa-service-sep {
  opacity: 0.45;
  margin: 0 2px;
}

.bewa-service-check {
  width: 1.25rem !important;
  height: 1.25rem !important;
  margin: 0 !important;
  flex: 0 0 auto;
  border-radius: 6px !important;
  cursor: pointer;
}

.bewa-service-check:checked {
  background: var(--bewa-brand-gradient) !important;
  border-color: transparent !important;
}

/* Booking footer bar — floating glass */
.bewa-book-bar,
#barraInferiore.bewa-book-bar,
#barraInferiore,
#barraInferioreContatti {
  position: fixed !important;
  left: 12px !important;
  right: 12px !important;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
  width: auto !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: 10px 10px 10px 16px !important;
  background: var(--bewa-glass-strong) !important;
  backdrop-filter: saturate(1.8) blur(24px);
  -webkit-backdrop-filter: saturate(1.8) blur(24px);
  border: 0.5px solid rgba(255, 255, 255, 0.55) !important;
  border-radius: var(--bewa-radius-xl) !important;
  box-shadow: 0 12px 40px rgba(20, 21, 21, 0.16), 0 2px 8px rgba(20, 21, 21, 0.06) !important;
  z-index: 1100 !important;
  height: auto !important;
  min-height: 64px;
}

#barraInferioreContatti {
  padding: 8px !important;
}

.bewa-book-bar--static {
  position: relative !important;
  margin-top: 12px;
  box-shadow: none;
  border-top: 0;
}

.bewa-book-summary {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0;
  flex: 1 1 auto !important;
  width: auto !important;
  max-width: none !important;
  overflow: hidden;
  white-space: nowrap !important;
  margin: 0 !important;
  padding: 0 !important;
}

#barraInferiore br {
  display: none !important;
}

.bewa-book-summary label,
.bewa-book-bar label,
#barraInferiore label {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  float: none !important;
}

.bewa-book-line,
.bewa-book-price {
  display: inline !important;
  font-size: 0.92rem;
  color: var(--bewa-ink);
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.bewa-book-line strong,
.bewa-book-price strong {
  font-weight: 700;
}

.bewa-book-line .bewa-service-sep {
  margin: 0 4px;
  opacity: 0.45;
}

.bewa-book-meta {
  display: inline !important;
  font-size: 0.82rem;
  color: var(--bewa-ink-muted);
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bewa-book-btn,
#barraInferiore .bewa-book-btn,
#prenotaBtn {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  min-width: 110px;
  margin: 0 !important;
  white-space: nowrap !important;
  float: none !important;
}

.bewa-book-btn--full,
#barraInferioreContatti .bewa-book-btn {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0;
  text-align: center;
}

#barraInferioreContatti {
  justify-content: stretch !important;
}


/* Override eventuali regole bootstrap row sul book bar */
.bewa-book-bar .row,
#barraInferiore.row,
#barraInferiore .row {
  display: contents !important;
}

#barraInferiore [class*="col-"] {
  width: auto !important;
  max-width: none !important;
  flex: 0 0 auto !important;
  padding: 0 !important;
}

.chip.chip-outline {
  border-radius: 999px;
  border-color: var(--bewa-line);
}

.chip.chip-outline.chip-primary,
.chip.chip-primary {
  border-color: var(--bewa-brand);
  color: var(--bewa-brand-deep);
}

.fixed-bottom .btn-primary,
.fixed-bottom .btn.bg-primary {
  border-radius: 999px !important;
}

/* ---- Bookings ---- */
.bookings-list .card,
#appCapsule .booking-card {
  border-radius: var(--bewa-radius) !important;
  border: 1px solid var(--bewa-line);
}

/* Lista prenotazioni: niente bordino sotto i tab, fondo contrastato, card compatte */
#bookingTabsContent.bewa-bookings-tabs,
#appCapsule .bewa-bookings-tabs {
  margin-top: 0 !important;
  padding: 10px 12px 16px;
  border: 0 !important;
  background: var(--bewa-bg) !important;
  box-shadow: none !important;
}

#bookingTabsContent .tab-pane,
.bewa-bookings-tabs .tab-pane {
  background: var(--bewa-bg) !important;
}

.bewa-bookings-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: transparent;
}

/* Scroll-to-load: loader in fondo alla lista mentre arrivano gli altri dati */
.bewa-bookings-loader {
  padding: 12px 0 28px;
  text-align: center;
}
.bewa-bookings-loader[hidden] {
  display: none !important;
}

.bewa-booking-item {
  margin: 0 !important;
  padding: 0 !important;
}

.bewa-booking-card {
  margin: 0 !important;
  border-radius: var(--bewa-radius) !important;
  border: 1px solid var(--bewa-line) !important;
  background: #fff !important;
  box-shadow: 0 1px 4px rgba(20, 21, 21, 0.04);
  overflow: hidden;
}

.bewa-booking-card .listview,
.bewa-booking-card .image-listview {
  background: transparent !important;
  border: 0 !important;
  margin: 0 !important;
}

.bewa-booking-card .listview > li .item {
  min-height: 48px;
  padding-top: 8px;
  padding-bottom: 8px;
}

/* ---- Override Mobilekit solid blues ---- */
.footer-logo-icon {
  /* default resta scuro; active gestito sopra */
}

/* Radio / checkbox branding — stesso blue gradient dell'header */
.radio_btn:checked,
input[type="radio"]:checked,
input[type="checkbox"]:checked,
input[type="checkbox"].form-check-input:checked,
.form-check-input[type="checkbox"]:checked,
.bewa-service-check:checked {
  accent-color: var(--bewa-brand);
  background-color: hsla(202, 60%, 35%, 1) !important;
  background-image: var(--bewa-brand-gradient) !important;
  background: var(--bewa-brand-gradient) !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

/* Spinner primary */
.spinner-border.text-primary,
.text-primary.spinner-border {
  color: var(--bewa-brand) !important;
  border-right-color: transparent !important;
}

/* Toast / alert primary */
.alert-primary {
  background: var(--bewa-brand-soft) !important;
  border-color: rgba(35, 103, 141, 0.28) !important;
  color: var(--bewa-brand-deep) !important;
}

/* Theme-color meta already set; status bar feel */
.bg-blue,
.btn.bg-blue,
.text-blue {
  background: var(--bewa-brand-gradient) !important;
  color: #fff !important;
  border-color: transparent !important;
}

.text-blue {
  background: none !important;
  color: var(--bewa-brand) !important;
}

/* ---- Booking timeSlot (Quando?) ---- */
body.bewa-timeslot-page #appCapsule.bewa-ts-capsule {
  background: var(--bewa-bg);
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
  max-height: none;
}

.bewa-ts {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: calc(100vh - 56px);
}

.bewa-ts-summary {
  background: #fff;
  border-bottom: 1px solid var(--bewa-line);
}

.bewa-ts-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  min-height: 44px;
  list-style: none;
  cursor: pointer;
}

.bewa-ts-summary-bar .bewa-ts-place {
  font-size: 0.9rem;
}

.bewa-ts-summary-bar .bewa-ts-summary-meta {
  font-size: 0.75rem;
}

.bewa-ts-summary-bar::-webkit-details-marker {
  display: none;
}

.bewa-ts-summary-left {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bewa-ts-place {
  font-size: 0.95rem;
  color: var(--bewa-ink);
  line-height: 1.25;
}

.bewa-ts-summary-meta {
  font-size: 0.8rem;
  color: var(--bewa-ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bewa-ts-summary-chevron {
  flex: 0 0 auto;
  color: var(--bewa-ink-muted);
  transition: transform 0.2s ease;
}

.bewa-ts-summary[open] .bewa-ts-summary-chevron {
  transform: rotate(180deg);
}

.bewa-ts-summary-body {
  padding: 0;
  border-top: 1px solid var(--bewa-line);
}

.bewa-ts-summary-body--listview {
  background: #fff;
}

.bewa-ts-listview {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.bewa-ts-listview > li .item {
  padding-top: 12px;
  padding-bottom: 12px;
}

.bewa-ts-listview .icon-box.bg-primary {
  background: var(--bewa-brand-gradient) !important;
  border: 0 !important;
}

.bewa-ts-dates {
  background: #fff;
  border-bottom: 1px solid var(--bewa-line);
  position: sticky;
  top: calc(56px + env(safe-area-inset-top, 0px));
  z-index: 20 !important;
  padding: 10px 0 12px;
}

html.is-webview .bewa-ts-dates {
  top: 56px;
}

.bewa-ts-dates-label {
  padding: 0 16px 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--bewa-ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.bewa-ts-dates-scroll,
.bewa-ts .horizontal-scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px;
  white-space: nowrap;
}

.bewa-ts-day,
.bewa-ts .card-button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 56px;
  height: 64px;
  margin: 0;
  padding: 6px 4px;
  border-radius: 14px;
  border: 1px solid var(--bewa-line);
  background: #fff;
  color: var(--bewa-ink);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.bewa-ts-day-num {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.1;
}

.bewa-ts-day-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--bewa-ink-muted);
  margin-top: 2px;
}

.bewa-ts-day.selected-day .bewa-ts-day-name,
.bewa-ts .card-button.selected-day .bewa-ts-day-name {
  color: rgba(255, 255, 255, 0.85);
}

.bewa-ts-day.card-deactive,
.bewa-ts .card-button.card-deactive {
  background: #eef0f2;
  color: #9aa0a6;
  border-color: transparent;
  cursor: not-allowed;
  opacity: 0.75;
}

.bewa-ts-slots {
  flex: 1 1 auto;
  background: #fff;
  padding: 16px;
  min-height: 180px;
  position: relative;
}

.bewa-ts-loader {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  width: 100%;
}

.bewa-ts-loader .spinner-border {
  width: 2.25rem;
  height: 2.25rem;
  border-width: 0.22em;
}

.bewa-ts-slots-head {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--bewa-ink);
  margin-bottom: 12px;
  text-align: left;
}

.bewa-ts-slots-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.bewa-ts-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 8px;
  border-radius: 12px;
  border: 1.5px solid #d1d5db !important;
  background: #fff;
  color: var(--bewa-ink);
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(20, 21, 21, 0.04);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.bewa-ts-slot:hover {
  border-color: #9ca3af !important;
}

.bewa-ts-slot:active {
  transform: scale(0.97);
  background: var(--bewa-brand-gradient) !important;
  color: #fff !important;
  border-color: transparent !important;
}

.bewa-ts-empty {
  text-align: center;
  padding: 28px 16px;
  color: var(--bewa-ink);
  font-size: 0.95rem;
  line-height: 1.4;
}

.bewa-ts-empty p {
  margin: 0 0 12px;
  color: var(--bewa-ink-muted);
}

.bewa-ts-next-date {
  display: inline-block;
  margin: 0 auto;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--bewa-line);
  background: #f6f7f9;
  color: var(--bewa-ink);
  font-size: 0.9rem;
  line-height: 1.35;
  cursor: pointer;
}

.bewa-ts-next-date strong {
  color: var(--bewa-brand-deep);
}

.bewa-ts-waitlist {
  margin-top: 18px;
  padding-top: 4px;
}

.bewa-ts-waitlist-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 2px solid var(--bewa-brand) !important;
  background: #fff !important;
  color: var(--bewa-brand-deep) !important;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.bewa-ts-waitlist-btn i {
  font-size: 1.15rem;
  color: var(--bewa-brand);
}

.bewa-ts-waitlist-btn:hover,
.bewa-ts-waitlist-btn:focus {
  background: var(--bewa-brand-soft) !important;
  color: var(--bewa-brand-deep) !important;
  border-color: var(--bewa-brand-deep) !important;
  outline: none;
}

.bewa-ts-waitlist-btn:active {
  background: var(--bewa-brand-gradient) !important;
  color: #fff !important;
  border-color: transparent !important;
}

.bewa-ts-waitlist-btn:active i {
  color: #fff;
}

/* Conferma prenotazione — card lista d'attesa */
.bewa-waitlist-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 12px 16px;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(180, 83, 9, 0.22);
  background: #fff7ed;
  box-shadow: none;
}

.bewa-waitlist-ico {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffedd5;
  color: #c2410c;
  font-size: 1.15rem;
}

.bewa-waitlist-body {
  min-width: 0;
  flex: 1 1 auto;
}

.bewa-waitlist-title {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  color: #9a3412;
}

.bewa-waitlist-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.4;
  color: #7c2d12;
}

.bewa-ts-empty-inline {
  margin: 8px 0;
  color: var(--bewa-ink-muted);
  font-size: 0.9rem;
}

/* ---- Account / Profile / Favorites ---- */
body.bewa-account-page #appCapsule.bewa-account-capsule {
  background: var(--bewa-bg);
  padding-bottom: calc(var(--bewa-bottom-h) + 20px);
}

body.bewa-account-page #appCapsule.bewa-account-page-pad {
  padding-left: 12px;
  padding-right: 12px;
}

body.bewa-account-page #appCapsule.bewa-account-page-pad .bewa-profile-hero {
  margin-left: -12px;
  margin-right: -12px;
}

body.bewa-account-page #appCapsule.bewa-account-page-pad .bewa-profile-actions,
body.bewa-account-page #appCapsule.bewa-account-page-pad .bewa-account-card {
  margin-left: 0;
  margin-right: 0;
}

.bewa-account-head {
  padding: 16px 12px 8px;
}

.bewa-account-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--bewa-ink);
  line-height: 1.2;
}

.bewa-account-sub {
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: var(--bewa-ink-muted);
  line-height: 1.35;
}

.bewa-account-card {
  background: #fff;
  margin: 8px 0;
  padding: 4px 0;
  border-radius: 14px;
  border: 1px solid var(--bewa-line);
  overflow: hidden;
}

.bewa-account-card-title {
  margin: 0;
  padding: 10px 12px 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--bewa-ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bewa-account-row,
.bewa-account-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  color: var(--bewa-ink);
  text-decoration: none !important;
  border-top: 1px solid var(--bewa-line);
  font-size: 0.95rem;
  font-weight: 500;
  background: #fff;
}

.bewa-account-row {
  justify-content: space-between;
}

.bewa-account-row .form-switch {
  flex: 0 0 auto;
  margin: 0;
  min-height: 30px;
}

.bewa-account-card > .form-group.basic {
  padding: 10px 12px 4px;
  margin-bottom: 0;
}

.bewa-account-card > .form-group.basic.mb-0 {
  padding-bottom: 12px;
}

.bewa-account-card > .bewa-account-row:first-of-type,
.bewa-account-card > .bewa-account-link:first-of-type {
  border-top: 0;
}

.bewa-account-link i:first-child {
  width: 22px;
  text-align: center;
  color: var(--bewa-brand);
  font-size: 1.1rem;
}

.bewa-account-link--danger i:first-child,
.bewa-account-link--danger span {
  color: #b42318;
}

.bewa-account-link:active {
  background: #f6f7f9;
}

.bewa-profile-hero {
  background: #fff;
  text-align: center;
  padding: 28px 20px 20px;
  border-bottom: 1px solid var(--bewa-line);
}

.bewa-profile-avatar {
  width: 88px;
  height: 88px;
  margin: 0 auto 12px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 4px 16px rgba(20, 21, 21, 0.12);
  background: var(--bewa-bg);
}

.bewa-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bewa-profile-avatar--lg {
  width: 96px;
  height: 96px;
  margin: 0;
}

.bewa-profile-name {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--bewa-ink);
}

.bewa-profile-fullname {
  margin: 4px 0 0;
  font-size: 0.95rem;
  color: var(--bewa-ink-muted);
}

.bewa-profile-bio {
  margin: 10px auto 0;
  max-width: 320px;
  font-size: 0.9rem;
  color: var(--bewa-ink);
  line-height: 1.4;
}

.bewa-profile-actions {
  margin: 10px 12px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--bewa-line);
  overflow: hidden;
}

.bewa-profile-action {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  text-decoration: none !important;
  color: var(--bewa-ink);
  border-top: 1px solid var(--bewa-line);
}

.bewa-profile-action:first-child {
  border-top: 0;
}

.bewa-profile-action-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bewa-brand-gradient);
  color: #fff;
  -webkit-text-fill-color: #fff;
  flex: 0 0 auto;
}

.bewa-profile-action-ico i {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.bewa-profile-action-label {
  flex: 1 1 auto;
  font-weight: 600;
  font-size: 0.95rem;
}

.bewa-profile-action-chevron {
  color: #9aa0a6;
}

.bewa-account-form {
  padding: 8px 12px 24px;
}

.bewa-account-form .form-group.basic {
  margin-bottom: 10px;
}

.bewa-account-form .form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bewa-ink-muted);
  margin-bottom: 6px;
}

.bewa-account-form .form-control,
.bewa-account-form .form-group.basic .form-control,
.bewa-account-card .form-group.basic .form-control {
  border-radius: 12px !important;
  border: 1px solid var(--bewa-line) !important;
  border-bottom: 1px solid var(--bewa-line) !important;
  background: #fff !important;
  min-height: 46px;
  height: auto !important;
  padding: 10px 14px !important;
  box-shadow: none !important;
}

.bewa-account-form .form-group.basic textarea.form-control,
.bewa-account-card .form-group.basic textarea.form-control {
  padding: 10px 14px !important;
  min-height: 96px;
}

.bewa-account-form .form-control:focus,
.bewa-account-card .form-group.basic .form-control:focus {
  border-color: var(--bewa-brand) !important;
  box-shadow: 0 0 0 3px var(--bewa-brand-soft) !important;
}

.bewa-account-form .btn-block {
  margin-top: 8px;
  border-radius: 999px !important;
}

.bewa-account-alert {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 0.9rem;
}

.bewa-edit-photo {
  padding: 12px !important;
}

.bewa-edit-photo-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bewa-edit-photo-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.bewa-edit-photo-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--bewa-line);
  background: #f6f7f9;
  color: var(--bewa-brand-deep);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  margin: 0;
}

.bewa-empty {
  text-align: center;
  padding: 48px 24px 32px;
}

.bewa-empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  color: var(--bewa-ink-muted);
  font-size: 1.8rem;
}

.bewa-empty--danger .bewa-empty-icon {
  background: #fef2f2;
  color: #b42318;
}

.bewa-empty-title {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--bewa-ink);
}

.bewa-empty-text {
  margin: 0 auto 20px;
  max-width: 280px;
  font-size: 0.92rem;
  color: var(--bewa-ink-muted);
  line-height: 1.4;
}

.bewa-empty-cta {
  border-radius: 999px !important;
  min-width: 160px;
  padding: 10px 20px;
}

.bewa-fav-listview {
  border: 0 !important;
  margin: 0 !important;
}

.bewa-favorites-list {
  background: transparent;
  min-height: 160px;
  padding: 8px 12px 16px;
}

html[data-page="favorites"] .bewa-fav-feed .card {
  border: 0 !important;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(20, 21, 21, 0.08);
  margin: 0 0 14px !important;
}

html[data-page="favorites"] .bewa-fav-feed .card .card-img-top {
  border-radius: 0;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

html[data-page="favorites"] .bewa-fav-feed .card .badge.badge-primary {
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(7, 58, 87, 0.22);
}

/* ---- Coverflow iOS (nearby_evidenza) ---- */
.bewa-coverflow {
  position: relative;
  display: block;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  perspective: 1200px;
  /* l'ombra sta dentro il padding: overflow-x non può essere visible */
  padding: 36px 0 59px;
  margin: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#nearby_evidenza,
.bewa-home-page .section.full {
  overflow: visible;
}

@media (min-width: 768px) {
  .bewa-coverflow {
    padding: 36px 0 48px;
  }
}

.bewa-coverflow::-webkit-scrollbar {
  display: none;
}

.bewa-coverflow-track {
  display: flex;
  align-items: center;
  padding-left: 0;
  padding-right: 0;
  transform-style: preserve-3d;
}

.bewa-coverflow-spacer {
  flex: 0 0 auto;
  width: 0;
  height: 1px;
  pointer-events: none;
}

.bewa-coverflow-item {
  flex: 0 0 auto;
  width: min(64vw, 230px);
  margin: 0 -12px;
  transform-origin: center center;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.35s ease;
  will-change: transform, opacity;
  cursor: pointer;
}

.bewa-coverflow-item .card {
  position: relative;
  margin: 0 !important;
  height: 330px;
  border: 0 !important;
  border-radius: 24px;
  overflow: hidden;
  background: #0b1a26;
  box-shadow: 0 12px 22px rgba(7, 58, 87, 0.22);
}

.bewa-coverflow-item.is-active .card {
  box-shadow: 0 16px 28px rgba(7, 58, 87, 0.3);
}

.bewa-coverflow-item .card-img-top {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  border-radius: 24px;
  display: block;
}

.bewa-coverflow-item .card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 16px 16px 18px !important;
  background: linear-gradient(to top, rgba(5, 20, 30, 0.9) 0%, rgba(5, 20, 30, 0.45) 55%, transparent 100%);
  color: #fff;
}

.bewa-coverflow-item .card-title {
  color: #fff !important;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.bewa-coverflow-item .card-subtitle {
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 0.82rem;
}

.bewa-coverflow-item .text-card {
  color: rgba(255, 255, 255, 0.92) !important;
}

.bewa-coverflow-item .chip {
  margin-top: 8px !important;
  background: rgba(255, 255, 255, 0.16) !important;
  border: 0 !important;
  backdrop-filter: blur(6px);
}

.bewa-coverflow-item .chip .chip-label {
  color: #fff !important;
  font-size: 0.72rem;
  font-weight: 600;
}

.bewa-coverflow-item .badge.badge-primary {
  top: 10px;
  right: 10px !important;
  margin-top: 0 !important;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.95) !important;
  color: var(--bewa-brand-deep) !important;
  box-shadow: 0 4px 14px rgba(7, 58, 87, 0.25);
}

/* ---- Home iOS restyle (scoped) ---- */
.bewa-home-page .bewa-home-hero {
  padding-top: 10px;
  padding-bottom: 2px;
}

.bewa-home-page .header-large-title .title {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 10px;
}

.bewa-home-page .header-large-title .subtitle {
  font-size: 0.92rem;
  color: var(--bewa-ink-muted);
  margin-top: 2px;
}

.bewa-home-page .bewa-home-servizi {
  margin-top: 4px !important;
  margin-bottom: 0 !important;
}

.bewa-home-page .bewa-home-servizi + .header-large-title {
  padding-top: 0;
  margin-top: 0;
}

.bewa-home-page .bewa-home-servizi + .header-large-title .title {
  margin-top: 2px;
}

/* Carosello servizi — card iOS con titolo in overlay */
.bewa-home-page .carousel-multiple .card {
  position: relative;
  border: 0 !important;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(20, 21, 21, 0.12);
}

.bewa-home-page .carousel-multiple .card-img-top {
  height: 150px;
  object-fit: cover;
  border-radius: 20px;
}

.bewa-home-page .carousel-multiple .card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px !important;
  background: linear-gradient(to top, rgba(5, 20, 30, 0.82), transparent);
}

.bewa-home-page .carousel-multiple .card-body h4 {
  color: #fff !important;
  font-weight: 700;
  text-align: left !important;
  margin: 0 !important;
}

/* Feed "Intorno a te" — card morbide iOS */
.bewa-home-page #main_content .card {
  border: 0 !important;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(20, 21, 21, 0.08);
}

.bewa-home-page #main_content .card .card-img-top {
  border-radius: 0;
}

.bewa-home-page #main_content .card .badge.badge-primary {
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(7, 58, 87, 0.22);
}

/* ---- Misc motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* ==========================================================================
   Page enhancements — iOS restyle
   ========================================================================== */

/* Cerca accordion / sticky headers */
#categories .listview-title.sticky-title[role="button"] { cursor: pointer; }
#categories .category-chevron { transition: transform var(--bewa-dur) var(--bewa-ease-ios); }
#categories .listview-title.sticky-title[aria-expanded="true"] .category-chevron { transform: rotate(180deg); }
#appCapsule.extra-header-active {
  padding-top: calc(112px + env(safe-area-inset-top, 0px)) !important;
}
html.is-webview #appCapsule.extra-header-active {
  padding-top: 112px !important;
}
body .appHeader {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
}
body .extraHeader {
  position: fixed !important;
  top: calc(56px + env(safe-area-inset-top, 0px)) !important;
  left: 0 !important;
  right: 0 !important;
  margin-top: 0 !important;
}
html.is-webview body .extraHeader {
  top: 56px !important;
}
#categories .listview-title.sticky-title {
  position: relative !important;
  top: auto !important;
  z-index: 1 !important;
  background: transparent !important;
  font-weight: 700;
  font-size: var(--bewa-fs-subhead);
  color: var(--bewa-ink);
  padding: 14px 16px;
}

/* Place: book bar spring enter + bottom nav nascosta */
html[data-page="page_profile_place"] .appBottomMenu {
  display: none !important;
}

html[data-page="page_profile_place"] .bewa-book-bar,
html[data-page="page_profile_place"] #barraInferiore,
html[data-page="page_profile_place"] #barraInferioreContatti {
  animation: none !important;
  transform: none !important;
}

html[data-page="page_profile_place"] .bewa-service-check:checked {
  animation: bewa-check 0.4s var(--bewa-ease-spring) both;
}

/* Employ team cards */
html[data-page="employ"] .employ_scroll {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 12px;
  padding: 12px 16px 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
html[data-page="employ"] .employ_scroll::-webkit-scrollbar { display: none; }
html[data-page="employ"] .employ_card_wrap { flex: 0 0 auto; width: 108px; }
html[data-page="employ"] .employ_card {
  width: 108px;
  border-radius: var(--bewa-radius-lg) !important;
  border: 1.5px solid var(--bewa-line) !important;
  background: var(--bewa-surface);
  box-shadow: none;
  transition: border-color var(--bewa-dur) var(--bewa-ease-ios),
              transform var(--bewa-dur-fast) var(--bewa-ease-ios),
              box-shadow var(--bewa-dur) var(--bewa-ease-ios);
}
html[data-page="employ"] .employ_card .card-img-top {
  width: 64px !important;
  height: 64px !important;
  border-radius: 50% !important;
  margin: 14px auto 0;
  object-fit: cover;
  display: block;
}
html[data-page="employ"] .employ_card .card-body { padding: 8px 6px 12px; }
html[data-page="employ"] .employ_card .card-title {
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html[data-page="employ"] .employ_card.selected,
html[data-page="employ"] .selected.employ_card {
  border-color: var(--bewa-brand) !important;
  box-shadow: 0 0 0 4px var(--bewa-brand-soft);
  transform: scale(1.02);
}

/* TimeSlot date strip + slots */
html[data-page="timeSlot"] .bewa-ts-date.selected-day,
html[data-page="timeSlot"] .card-button.selected-day {
  background: var(--bewa-brand-gradient) !important;
  color: #fff !important;
  transform: scale(1.04);
  box-shadow: var(--bewa-shadow-brand);
}
html[data-page="timeSlot"] .bewa-ts-slot.is-selected,
html[data-page="timeSlot"] .bewa-ts-slot.selected {
  animation: bewa-pop var(--bewa-dur) var(--bewa-ease-ios);
}

/* Booking confirm */
html[data-page="booking_confirm"] .bewa-confirm-timer,
html[data-page="booking_confirm"] #timer,
html[data-page="booking_confirm"] .timer-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--bewa-radius-pill);
  background: var(--bewa-warning-soft);
  color: #b45309;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Bookings status pills */
.bewa-booking-status,
.bewa-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--bewa-radius-pill);
  font-size: var(--bewa-fs-caption);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.bewa-status-confirmed,
.badge-success.bewa-booking-status {
  background: var(--bewa-success-soft);
  color: #1b7a36;
}
.bewa-status-wait,
.bewa-status-waitlist {
  background: var(--bewa-warning-soft);
  color: #b45309;
}
.bewa-status-cancelled {
  background: var(--bewa-danger-soft);
  color: #c62828;
}

/* Auth sheets — nasconde header fisso sotto la system bar nera */
html[data-page="login"] .appHeader,
html[data-page="page_register"] .appHeader,
html[data-page="page-forgot-password"] .appHeader,
html[data-page="login"] .extraHeader,
html[data-page="page_register"] .extraHeader,
html[data-page="page-forgot-password"] .extraHeader,
html[data-page="login"] #search.appHeader,
html[data-page="page_register"] #search.appHeader,
html[data-page="page-forgot-password"] #search.appHeader {
  display: none !important;
}

/* Auth sheets */
html[data-page="login"] #appCapsule,
html[data-page="page_register"] #appCapsule,
html[data-page="page-forgot-password"] #appCapsule {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 20px calc(var(--bewa-bottom-h) + 24px);
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(35, 103, 141, 0.16), transparent 55%),
    var(--bewa-bg);
}
html[data-page="login"] .form-group.basic .form-control,
html[data-page="page_register"] .form-group.basic .form-control,
html[data-page="page-forgot-password"] .form-group.basic .form-control {
  min-height: 52px;
  border-radius: 14px !important;
}
#loginModal .modal-dialog,
#registerModal .modal-dialog,
#forgotPasswordModal .modal-dialog {
  margin: 0;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  max-width: 100%;
}
#loginModal .modal-content,
#registerModal .modal-content,
#forgotPasswordModal .modal-content {
  border-radius: 20px 20px 0 0 !important;
  border: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
#loginModal .modal-content::before,
#registerModal .modal-content::before,
#forgotPasswordModal .modal-content::before {
  content: "";
  display: block;
  width: 36px;
  height: 5px;
  margin: 10px auto 4px;
  border-radius: 999px;
  background: rgba(20, 21, 21, 0.18);
}

/* Sidebar: hide dark mode */
#sidebarPanel .form-check.form-switch,
#sidebarPanel .dark-mode-switch,
#sidebarPanel [data-bs-toggle="offline"] + *,
.sidebar-dark-switch,
#darkmode-switch,
.form-check.form-switch.ms-2 {
  /* keep generic; specific hide below */
}
#sidebarPanel .dark-mode,
#sidebarPanel .item.dark-mode-switch,
.sidebar-end .form-check.form-switch {
  display: none !important;
}

/* Misc legal / FAQ */
html[data-page="page_faq"] .accordion-item,
html[data-page="page_privacy_policies"] .card,
html[data-page="page_terms_condition"] .card {
  border-radius: var(--bewa-radius-lg) !important;
  border: 1px solid var(--bewa-line);
  overflow: hidden;
  margin-bottom: 10px;
}

/* Chat bubbles */
html[data-page="page_chat_details"] .message-item,
html[data-page="page_chat_details"] .chatBubble {
  border-radius: 18px !important;
}
html[data-page="page_chat_details"] .message-item.user,
html[data-page="page_chat_details"] .chatBubble.me {
  background: var(--bewa-brand-soft) !important;
  color: var(--bewa-ink);
}

/* Notifications / followers inset */
html[data-page="notifications"] .image-listview,
html[data-page="profile_followers_list"] .image-listview,
html[data-page="place_followers_list"] .image-listview {
  margin: 8px 12px;
  border-radius: var(--bewa-radius-lg);
  overflow: hidden;
  background: var(--bewa-surface);
  border: 1px solid var(--bewa-line);
}

/* Rating stars */
html[data-page="place_rating"] .bi-star-fill {
  color: var(--bewa-warning);
}


/* Booking confirm inset grouped */
html[data-page="booking_confirm"] .listview,
html[data-page="booking_confirm"] .bewa-confirm-summary {
  margin: 12px;
  border-radius: var(--bewa-radius-lg);
  overflow: hidden;
  background: var(--bewa-surface);
  border: 1px solid var(--bewa-line);
}
html[data-page="booking_confirm"] .btn-primary.is-loading,
html[data-page="booking_confirm"] .btn-primary.loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
html[data-page="booking_confirm"] .btn-primary.is-loading::after,
html[data-page="booking_confirm"] .btn-primary.loading::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 22px; height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  animation: bewa-spin 0.7s linear infinite;
}
@keyframes bewa-spin { to { transform: rotate(360deg); } }

/* Bookings detail check */
html[data-page="bookings"] .bewa-check-ok,
html[data-page="bookings"] .icon-box.bg-success i {
  animation: bewa-check 0.5s var(--bewa-ease-spring) both;
}
html[data-page="bookings"] img[src*="qr"],
html[data-page="bookings"] #qrcode,
html[data-page="bookings"] .qr-code {
  display: block;
  margin: 12px auto;
  padding: 16px;
  background: #fff;
  border-radius: var(--bewa-radius-lg);
  border: 1px solid var(--bewa-line);
  box-shadow: var(--bewa-shadow-sm);
}

/* FAQ accordion iOS */
html[data-page="page_faq"] .accordion-item {
  border: 1px solid var(--bewa-line) !important;
  border-radius: var(--bewa-radius-lg) !important;
  margin: 0 12px 10px;
  overflow: hidden;
  background: var(--bewa-surface);
}
html[data-page="page_faq"] .accordion-button {
  font-weight: 600;
  font-size: var(--bewa-fs-subhead);
  background: var(--bewa-surface) !important;
  box-shadow: none !important;
}
html[data-page="page_faq"] .accordion-button:not(.collapsed) {
  color: var(--bewa-brand);
}

/* Lingua inset */
html[data-page="page_lingua"] .listview {
  margin: 12px;
  border-radius: var(--bewa-radius-lg);
  overflow: hidden;
  background: var(--bewa-surface);
  border: 1px solid var(--bewa-line);
}

/* Sidebar glass */
#sidebarPanel.offcanvas,
#sidebarPanel.offcanvas-start {
  background: var(--bewa-glass-strong) !important;
  backdrop-filter: saturate(1.8) blur(24px);
  -webkit-backdrop-filter: saturate(1.8) blur(24px);
  border-right: 0.5px solid var(--bewa-line);
}

#sidebarPanel .offcanvas-body,
.offcanvas-start .offcanvas-body {
  background: transparent !important;
  margin-top: 74px !important;
  padding: 0 0 70px !important;
}

#sidebarPanel .profileBox,
.offcanvas-start .profileBox {
  display: flex !important;
  align-items: center;
  gap: 12px;
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
  background: var(--bewa-glass-strong) !important;
  backdrop-filter: saturate(1.8) blur(20px);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  border-bottom: 0.5px solid var(--bewa-line);
  box-shadow: none !important;
  z-index: 5;
}

#sidebarPanel .profileBox:before,
.offcanvas-start .profileBox:before {
  background: var(--bewa-glass-strong) !important;
  backdrop-filter: saturate(1.8) blur(20px);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  width: 100%;
}

#sidebarPanel .profileBox .image-wrapper {
  margin-right: 0;
  flex: 0 0 auto;
}

#sidebarPanel .profileBox .in {
  flex: 1 1 auto;
  min-width: 0;
  float: none !important;
  padding: 16px 44px 16px 0 !important;
}

#sidebarPanel .profileBox .in strong,
#sidebarPanel .profileBox .in a:not(.btn) {
  color: var(--bewa-ink) !important;
}

#sidebarPanel .profileBox .in .btn,
#sidebarPanel .profileBox .in .btn-primary {
  width: auto !important;
  max-width: 100%;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

#sidebarPanel .close-sidebar-button {
  color: var(--bewa-ink-muted) !important;
  background: rgba(20, 21, 21, 0.06);
}

#sidebarPanel .close-sidebar-button:active {
  background: rgba(20, 21, 21, 0.12);
}

#sidebarPanel .listview {
  margin: 12px;
  border-radius: var(--bewa-radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--bewa-line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Favorites align tokens */
html[data-page="favorites"] .bewa-fav-card,
html[data-page="favorites"] .card {
  border-radius: var(--bewa-radius-lg) !important;
}

/* Goodbye */
html[data-page="goodbye"] #appCapsule {
  text-align: center;
  padding-top: 48px;
}
