body.portal-body.portal-ui-v2.portal-standalone .portal-header,
body.portal-body.portal-ui-v2.portal-standalone .portal-auth-header {
  padding-top: calc(12px + env(safe-area-inset-top));
}

body.portal-body.portal-ui-v2 .portal-pwa-splash {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  place-items: center;
  background:
    radial-gradient(48% 36% at 14% 8%, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0) 78%),
    linear-gradient(135deg, #f5e3e6 0%, #f2d5d9 33%, #e9c2c8 66%, #d8a8b1 100%);
  transition: opacity 260ms ease;
}

body.portal-body.portal-ui-v2 .portal-pwa-splash.is-visible {
  display: grid;
  opacity: 1;
}

body.portal-body.portal-ui-v2 .portal-pwa-splash.is-hidden {
  opacity: 0;
  pointer-events: none;
}

body.portal-body.portal-ui-v2 .portal-pwa-splash-brand {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

body.portal-body.portal-ui-v2 .portal-pwa-splash-brand img {
  width: 74px;
  height: 74px;
  border-radius: 20px;
  box-shadow: 0 16px 30px rgba(89, 51, 66, 0.3);
}

body.portal-body.portal-ui-v2 .portal-pwa-splash-brand strong {
  color: #402930;
  font-size: 24px;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
}

body.portal-body.portal-ui-v2 .portal-pwa-splash-brand span {
  color: #6c4f5b;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body.portal-body.portal-ui-v2 .portal-install-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 130;
  border-radius: 18px;
  border: 1px solid rgba(132, 87, 95, 0.3);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 36px rgba(91, 52, 66, 0.26);
  backdrop-filter: blur(14px);
  padding: 12px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 250ms ease, transform 250ms ease;
}

body.portal-body.portal-ui-v2 .portal-install-banner[hidden] {
  display: none;
}

body.portal-body.portal-ui-v2 .portal-install-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

body.portal-body.portal-ui-v2 .portal-install-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  box-shadow: 0 12px 18px rgba(89, 51, 66, 0.2);
}

body.portal-body.portal-ui-v2 .portal-install-content {
  min-width: 0;
  display: grid;
  gap: 6px;
}

body.portal-body.portal-ui-v2 .portal-install-content strong {
  font-size: 14px;
  color: #3f2a31;
}

body.portal-body.portal-ui-v2 .portal-install-content span {
  font-size: 12px;
  color: #674d59;
}

body.portal-body.portal-ui-v2 .portal-install-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

body.portal-body.portal-ui-v2 .portal-install-btn {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 0 12px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}

body.portal-body.portal-ui-v2 .portal-install-btn--primary {
  background: linear-gradient(135deg, #165a42 0%, #1f6d51 100%);
  color: #fff;
  box-shadow: 0 10px 18px rgba(17, 88, 64, 0.24);
}

body.portal-body.portal-ui-v2 .portal-install-btn--secondary {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(132, 87, 95, 0.32);
  color: #553f49;
}

body.portal-body.portal-ui-v2 .portal-ios-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

body.portal-body.portal-ui-v2 .portal-ios-modal[aria-hidden="false"] {
  display: flex;
}

body.portal-body.portal-ui-v2 .portal-ios-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(36, 22, 28, 0.5);
}

body.portal-body.portal-ui-v2 .portal-ios-modal-card {
  position: relative;
  width: min(420px, 94vw);
  border-radius: 20px;
  border: 1px solid rgba(133, 88, 98, 0.26);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 28px 42px rgba(79, 45, 58, 0.32);
  padding: 18px;
  display: grid;
  gap: 12px;
}

body.portal-body.portal-ui-v2 .portal-ios-modal-card h3 {
  margin: 0;
  color: #3f2931;
  font-size: 20px;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
}

body.portal-body.portal-ui-v2 .portal-ios-modal-card p {
  margin: 0;
  color: #654c58;
  font-size: 13px;
  line-height: 1.5;
}

body.portal-body.portal-ui-v2 .portal-ios-steps {
  margin: 0;
  padding-left: 18px;
  color: #4b353f;
  display: grid;
  gap: 7px;
  font-size: 13px;
}

body.portal-body.portal-ui-v2 .portal-ios-share {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(133, 88, 98, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1f6d51;
  background: rgba(255, 255, 255, 0.84);
}

body.portal-body.portal-ui-v2 .portal-ios-share svg {
  width: 16px;
  height: 16px;
}

body.portal-body.portal-ui-v2 .portal-ios-actions {
  display: flex;
  justify-content: flex-end;
}

body.portal-body.portal-ui-v2 .portal-ios-close {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(132, 87, 95, 0.3);
  background: #fff;
  color: #553f49;
  padding: 0 12px;
  font-weight: 700;
  cursor: pointer;
}

@media (min-width: 1024px) {
  body.portal-body.portal-ui-v2 .portal-install-banner {
    display: none !important;
  }
}
