/* PWA install: floating hint + instructions modal (profile pages). */

/* ---- Install card (/profile info grid) ---- */
.au-profile-install-card {
  grid-column: 1 / -1;
}

.au-profile-install-card .au-profile-section-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.au-profile-install-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #02100F;
  background: linear-gradient(135deg, #4CDDCE, #36CBBE);
  box-shadow: 0 14px 30px rgba(76, 221, 206, .18);
}

.au-profile-install-icon svg { width: 22px; height: 22px; }

.au-profile-install-text {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  max-width: 62ch;
}


/* ---- Floating hint (mobile, one-time) ---- */
.wc-pwa-hint {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 1200;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  padding: 12px 14px;
  border: 1px solid var(--c-border);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(76, 221, 206, .12), rgba(20, 30, 30, .96));
  box-shadow: 0 18px 44px rgba(0, 0, 0, .34);
  backdrop-filter: blur(10px);
}

html[data-aurora-scheme="light"] .wc-pwa-hint {
  background: linear-gradient(135deg, rgba(76, 221, 206, .18), rgba(255, 255, 255, .96));
  box-shadow: 0 16px 38px rgba(22, 80, 75, .14);
}

.wc-pwa-hint__icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #02100F;
  background: linear-gradient(135deg, #4CDDCE, #36CBBE);
  box-shadow: 0 12px 28px rgba(76, 221, 206, .16);
}

.wc-pwa-hint__icon svg { width: 18px; height: 18px; }

.wc-pwa-hint__text {
  flex: 1 1 180px;
  min-width: 0;
  color: var(--c-text-2);
  font-size: 14px;
  line-height: 1.42;
}

.wc-pwa-hint__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
}

@media (min-width: 720px) {
  .wc-pwa-hint {
    left: auto;
    right: 24px;
    max-width: 420px;
  }
}

/* ---- Instructions modal ---- */
.wc-pwa-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(4, 12, 12, .62);
  backdrop-filter: blur(4px);
}

.wc-pwa-modal[hidden] { display: none; }

.wc-pwa-modal__card {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding: 26px 24px 24px;
  border: 1px solid var(--c-border);
  border-radius: 22px;
  background: var(--c-surface, #121b1b);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .42);
}

html[data-aurora-scheme="light"] .wc-pwa-modal__card {
  background: #fff;
}

.wc-pwa-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c-border);
  border-radius: 11px;
  background: transparent;
  color: var(--c-text-2);
  cursor: pointer;
}

.wc-pwa-modal__close svg { width: 17px; height: 17px; }
.wc-pwa-modal__close:hover { color: var(--c-text); }

.wc-pwa-modal__icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #02100F;
  background: linear-gradient(135deg, #4CDDCE, #36CBBE);
  box-shadow: 0 14px 32px rgba(76, 221, 206, .2);
}

.wc-pwa-modal__icon svg { width: 24px; height: 24px; }

.wc-pwa-modal__title {
  margin: 16px 0 6px;
  font-size: 20px;
  line-height: 1.25;
}

.wc-pwa-modal__subtitle {
  margin: 0 0 18px;
  color: var(--c-text-2);
  font-size: 14px;
  line-height: 1.5;
}

.wc-pwa-steps__intro {
  margin: 0 0 10px;
  font-weight: 600;
  font-size: 14px;
}

.wc-pwa-steps__list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--c-text-2);
  font-size: 14px;
  line-height: 1.45;
}

.wc-pwa-steps__list li { padding-left: 4px; }

.wc-pwa-steps__note {
  margin: 14px 0 0;
  color: var(--c-text-3, var(--c-text-2));
  font-size: 13px;
  line-height: 1.45;
  opacity: .85;
}
