/* PWA Guide Modal */
#pwaGuideModal {
  position: fixed;
  inset: 0;
  z-index: 9990;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
#pwaGuideModal.open {
  opacity: 1;
  pointer-events: all;
}
#pwaGuideModal.open .pg-box {
  transform: translateY(0);
}

.pg-back {
  position: absolute;
  inset: 0;
  background: rgba(15, 22, 35, .48);
  backdrop-filter: blur(3px);
}

.pg-box {
  position: relative;
  background: #fff;
  border-radius: 22px 22px 0 0;
  width: 100%;
  max-width: 500px;
  transform: translateY(50px);
  transition: transform .32s cubic-bezier(.34, 1.2, .64, 1);
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
}
.pg-box::before {
  content: '';
  display: block;
  width: 38px;
  height: 4px;
  background: #e5e7eb;
  border-radius: 4px;
  margin: 14px auto 0;
}

.pg-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid #f3f4f6;
}
.pg-top-txt { flex: 1; }
.pg-top-txt strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #0f1623;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.pg-top-txt span {
  font-size: 12.5px;
  color: #6b7280;
}
.pg-x {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  color: #6b7280;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}
.pg-x:hover { background: #fee2e2; color: #dc2626; border-color: #fca5a5; }

.pg-body { padding: 14px 20px 6px; }

.pg-step {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 13.5px;
  color: #374151;
  line-height: 1.55;
}
.pg-step:last-child { border-bottom: none; }
.pg-step strong { color: #0f1623; }

.pg-num {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #125028;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.pg-ok {
  display: block;
  width: calc(100% - 40px);
  margin: 14px 20px 16px;
  padding: 13px;
  background: #125028;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  transition: background .15s;
}
.pg-ok:hover { background: #0d3d1d; }

/* Desktop centering */
@media (min-width: 600px) {
  #pwaGuideModal { align-items: center; }
  .pg-box { border-radius: 20px; }
}
