/* Applica App Engine runtime */

html.wvmhp-engine {
  --wvmhp-theme: #1e73be;
  --wvmhp-radius: 22px;
}

html.wvmhp-has-sa {
  min-height: 100%;
}

html.wvmhp-has-sa body {
  padding-top: calc(var(--wvmhp-orig-pt, 0px) + env(safe-area-inset-top, 0px));
  padding-bottom: calc(var(--wvmhp-orig-pb, 0px) + var(--wvmhp-dock-space, 0px) + env(safe-area-inset-bottom, 0px));
  padding-left: calc(var(--wvmhp-orig-pl, 0px) + env(safe-area-inset-left, 0px));
  padding-right: calc(var(--wvmhp-orig-pr, 0px) + env(safe-area-inset-right, 0px));
}

html.wvmhp-has-sa .wvmhp-dock,
html.wvmhp-has-sa .header.mobile,
html.wvmhp-has-sa .wvmhp-sheet,
html.wvmhp-has-sa .wvmhp-toast {
  padding-left: max(12px, env(safe-area-inset-left, 0px));
  padding-right: max(12px, env(safe-area-inset-right, 0px));
}

html.wvmhp-zoom-lock input,
html.wvmhp-zoom-lock select,
html.wvmhp-zoom-lock textarea {
  font-size: 16px !important;
}

#wvmhp-sa-probe {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: env(safe-area-inset-top, 0px);
  pointer-events: none;
  visibility: hidden;
}

.wvmhp-overlay,
.wvmhp-sheet-backdrop,
.wvmhp-control-panel,
.wvmhp-toast,
.wvmhp-ptr,
.wvmhp-guide,
.wvmhp-sheet,
.wvmhp-install-trigger,
.wvmhp-control-trigger,
.wvmhp-fab {
  font-family: "Vazirmatn", Tahoma, sans-serif;
}

.wvmhp-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}

.wvmhp-overlay.is-on {
  opacity: 1;
  pointer-events: auto;
}

.wvmhp-overlay[data-theme="blur"] {
  background: rgba(8, 12, 24, .28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.wvmhp-overlay[data-theme="portal"] {
  background: radial-gradient(circle at center, rgba(15, 23, 42, .15), rgba(2, 6, 23, .72) 70%);
}

.wvmhp-overlay[data-theme="portal"] .wvmhp-overlay__box {
  animation: wvmhp-portal .7s ease;
}

.wvmhp-overlay[data-theme="aurora"] {
  background: linear-gradient(120deg, rgba(56, 189, 248, .35), rgba(167, 139, 250, .35), rgba(244, 114, 182, .3));
  background-size: 220% 220%;
  animation: wvmhp-aurora 4s linear infinite;
  backdrop-filter: blur(10px);
}

.wvmhp-overlay[data-theme="neon"] {
  background: rgba(2, 6, 23, .72);
}

.wvmhp-overlay[data-theme="neon"] .wvmhp-overlay__box {
  box-shadow: 0 0 0 1px #22d3ee, 0 0 32px rgba(34, 211, 238, .45);
}

.wvmhp-overlay__box {
  min-width: 180px;
  max-width: min(280px, calc(100vw - 40px));
  padding: 22px 18px 16px;
  border-radius: var(--wvmhp-radius);
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
  text-align: center;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.wvmhp-overlay__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
  margin-bottom: 10px;
}

.wvmhp-overlay__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.wvmhp-spinner {
  width: 28px;
  height: 28px;
  margin: 12px auto 0;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.25);
  border-top-color: #fff;
  animation: wvmhp-spin .8s linear infinite;
}

.wvmhp-progress {
  height: 3px;
  width: 78%;
  margin: 14px auto 0;
  border-radius: 99px;
  background: rgba(255,255,255,.2);
  overflow: hidden;
}

.wvmhp-progress > span {
  display: block;
  height: 100%;
  width: 30%;
  background: #fff;
  animation: wvmhp-progress 1.1s ease-in-out infinite;
}

.wvmhp-skeleton {
  width: 78%;
  margin: 12px auto 0;
  display: grid;
  gap: 8px;
}

.wvmhp-skeleton i {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: rgba(255,255,255,.28);
  animation: wvmhp-pulse 1.2s ease-in-out infinite;
}

.wvmhp-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  background: rgba(2, 6, 23, .46);
  display: none;
}

.wvmhp-sheet-backdrop.is-on {
  display: block;
}

.wvmhp-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483002;
  transform: translateY(110%);
  transition: transform .28s ease;
  background: var(--wvmhp-sheet-bg, #fff);
  color: #0f172a;
  border-radius: 24px 24px 0 0;
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -18px 50px rgba(2, 6, 23, .18);
}

.wvmhp-sheet.is-on {
  transform: translateY(0);
}

.wvmhp-sheet__handle {
  width: 42px;
  height: 4px;
  border-radius: 99px;
  background: rgba(15, 23, 42, .18);
  margin: 0 auto 14px;
}

.wvmhp-sheet__top {
  display: flex;
  gap: 12px;
  align-items: center;
}

.wvmhp-sheet__top img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
}

.wvmhp-sheet h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.wvmhp-sheet p {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
}

.wvmhp-sheet__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.wvmhp-sheet__actions button,
.wvmhp-install-trigger {
  border: 0;
  border-radius: 12px;
  padding: 11px 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: "Vazirmatn", Tahoma, sans-serif;
}

.wvmhp-btn-install {
  flex: 1;
  min-width: 120px;
}

.wvmhp-btn-close {
  flex: 1;
  min-width: 90px;
}

.wvmhp-btn-guide {
  width: 100%;
}

.wvmhp-sheet__guide {
  display: none;
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(15, 23, 42, .06);
  font-size: 13px;
  line-height: 1.9;
}

.wvmhp-sheet__guide.is-on {
  display: block;
}

.wvmhp-fab,
.wvmhp-control-trigger {
  position: fixed;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  z-index: 2147482600;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 16px;
  background: rgba(15, 23, 42, .72);
  color: #fff;
  backdrop-filter: blur(16px);
  cursor: pointer;
}

.wvmhp-fab.is-left,
.wvmhp-control-trigger.is-left { left: 12px; }
.wvmhp-fab.is-right,
.wvmhp-control-trigger.is-right { right: 12px; }

.wvmhp-control-panel {
  position: fixed;
  inset: auto 12px calc(148px + env(safe-area-inset-bottom, 0px));
  z-index: 2147482700;
  display: none;
  width: min(340px, calc(100vw - 24px));
  padding: 16px;
  border-radius: 22px;
  background: rgba(15, 23, 42, .78);
  color: #fff;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255,255,255,.14);
}

.wvmhp-control-panel.is-on { display: block; }
.wvmhp-control-panel.is-left { left: 12px; right: auto; }
.wvmhp-control-panel.is-right { right: 12px; left: auto; }

.wvmhp-control-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.wvmhp-control-grid button {
  border: 0;
  border-radius: 14px;
  padding: 12px 8px;
  background: rgba(255,255,255,.1);
  color: #fff;
  cursor: pointer;
  font-family: "Vazirmatn", Tahoma, sans-serif;
}

.wvmhp-control-status {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.8;
  opacity: .88;
}

.wvmhp-toast {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 2147482800;
  display: none;
  padding: 12px 14px;
  border-radius: 14px;
  background: #0f172a;
  color: #fff;
  text-align: center;
}

.wvmhp-toast.is-on { display: block; }

.wvmhp-ptr {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%) scale(.6);
  z-index: 2147482500;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 10px 24px rgba(2,6,23,.18);
}

.wvmhp-ptr.is-on { opacity: 1; }

.wvmhp-ptr__ring {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: currentColor;
}

.wvmhp-ptr.is-spin .wvmhp-ptr__ring {
  animation: wvmhp-spin .7s linear infinite;
}

.wvmhp-back-fx {
  transform-origin: right center;
}

.wvmhp-guide {
  position: fixed;
  inset: 0;
  z-index: 2147483003;
  background: rgba(2,6,23,.62);
  color: #fff;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 24px;
}

.wvmhp-guide.is-on { display: flex; }

.wvmhp-guide__card {
  width: min(420px, 100%);
  background: rgba(15,23,42,.9);
  border-radius: 22px;
  padding: 18px;
}

.wvmhp-guide__card button {
  margin-top: 12px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 11px;
  background: #22c55e;
  color: #052e16;
  font-weight: 800;
  cursor: pointer;
}

@keyframes wvmhp-spin {
  to { transform: rotate(360deg); }
}

@keyframes wvmhp-progress {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

@keyframes wvmhp-pulse {
  50% { opacity: .45; }
}

@keyframes wvmhp-aurora {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes wvmhp-portal {
  from { transform: scale(.2); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
