/* ╔══════════════════════════════════════════════════════════════╗
   ║  pwa.css — Install App button, modal and toast styles       ║
   ╠══════════════════════════════════════════════════════════════╣
   ║  BEGINNER TIPS:                                             ║
   ║  • FAB button color → find #pwa-fab background:            ║
   ║  • Modal size → find max-width: 480px in .pwa-modal        ║
   ║  • Step number circles → find .ps-num                      ║
   ║  • Device switcher pills → find .pwa-switch-pills button   ║
   ╚══════════════════════════════════════════════════════════════╝ */
/* ── Nav install button ── */
#nav-install-btn {
  display: flex; align-items: center; gap: 6px;
  background: transparent; border: 2px solid var(--green); color: var(--green);
  padding: 8px 18px; border-radius: 9px; font-size: 0.85rem; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: all 0.22s; white-space: nowrap; margin-left: 6px;
}
#nav-install-btn:hover { background: var(--green); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(26,107,60,.25); }
@media (display-mode: standalone) { #nav-install-btn, #pwa-fab { display: none !important; } }

/* ── FAB hidden — Install App lives only in the navbar ── */
#pwa-fab { display: none !important; }

/* ── Android bottom banner ── */
#pwa-banner {
  position: fixed; bottom: -160px; left: 50%; transform: translateX(-50%);
  width: min(480px, calc(100vw - 24px)); background: #fff;
  border-radius: 18px 18px 0 0; box-shadow: 0 -4px 40px rgba(0,0,0,.18);
  padding: 20px 22px; z-index: 9500; transition: bottom .42s cubic-bezier(.4,0,.2,1);
  border-top: 4px solid var(--green);
}
#pwa-banner.visible { bottom: 0; }
.pwa-banner-inner { display: flex; align-items: center; gap: 16px; }
.pwa-app-icon {
  width: 52px; height: 52px; border-radius: 13px;
  background: linear-gradient(135deg, var(--green), var(--green2));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0; box-shadow: 0 4px 14px rgba(26,107,60,.3);
}
.pwa-banner-text strong { display: block; font-size: .9rem; font-weight: 800; color: var(--dark); margin-bottom: 2px; }
.pwa-banner-text span { font-size: .76rem; color: var(--gray); line-height: 1.4; }
.pwa-banner-actions { display: flex; gap: 8px; align-items: center; margin-top: 14px; }
.pwa-install-btn {
  flex: 1; background: var(--green); color: #fff; border: none; border-radius: 9px;
  padding: 11px 18px; font-size: .85rem; font-weight: 700; cursor: pointer;
  font-family: inherit; display: flex; align-items: center; justify-content: center;
  gap: 7px; transition: all .2s;
}
.pwa-install-btn:hover { background: var(--green2); transform: translateY(-1px); }
.pwa-dismiss-btn {
  background: var(--light); border: none; border-radius: 9px; padding: 11px 16px;
  font-size: .82rem; font-weight: 600; cursor: pointer; color: var(--gray);
  font-family: inherit; transition: all .2s;
}
.pwa-dismiss-btn:hover { background: #e5e7eb; }

/* ── Modal overlay ── */
.pwa-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  z-index: 9600; display: flex; align-items: flex-end; justify-content: center;
  padding: 0 10px 0; opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.pwa-modal-overlay.visible { opacity: 1; visibility: visible; }

.pwa-modal {
  background: #fff; border-radius: 24px 24px 0 0;
  width: 100%; max-width: 480px;
  transform: translateY(60px); transition: transform .38s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 -6px 50px rgba(0,0,0,.2);
  max-height: 90vh; overflow: hidden;
  display: flex; flex-direction: column;
}
.pwa-modal-overlay.visible .pwa-modal { transform: translateY(0); }

/* ── Modal header ── */
.pwa-modal-head {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 20px 14px; border-bottom: 1px solid #f0f0f0; flex-shrink: 0;
}
.pwa-modal-icon {
  width: 48px; height: 48px; border-radius: 13px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--green), var(--green2));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; box-shadow: 0 4px 14px rgba(26,107,60,.3);
}
.pwa-modal-title { font-size: 1rem; font-weight: 800; color: var(--dark); line-height: 1.2; }
.pwa-modal-sub { font-size: .72rem; color: var(--gray); margin-top: 2px; }
.pwa-modal-close {
  margin-left: auto; flex-shrink: 0; background: #f3f4f6; border: none;
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  font-size: .8rem; color: var(--gray); display: flex; align-items: center; justify-content: center;
  transition: all .18s;
}
.pwa-modal-close:hover { background: #e5e7eb; color: var(--dark); }

/* ── Panels (scrollable body) ── */
.pwa-panels { flex: 1; overflow-y: auto; padding: 18px 20px 4px; }
.pwa-panel { display: none; }
.pwa-panel.active { display: block; }

/* ── Device detect badge ── */
.pwa-detect-badge {
  display: flex; align-items: center; gap: 10px;
  background: var(--gl); border: 1px solid rgba(26,107,60,.18);
  border-radius: 10px; padding: 10px 14px; margin-bottom: 16px;
  font-size: .8rem; color: var(--green); font-weight: 600; line-height: 1.4;
}
.pwa-detect-badge i { font-size: .95rem; flex-shrink: 0; }

/* ── Big native install button ── */
.pwa-big-btn {
  width: 100%; background: linear-gradient(135deg, var(--green), var(--green2));
  color: #fff; border: none; border-radius: 12px; padding: 14px;
  font-size: .9rem; font-weight: 700; font-family: inherit; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  transition: all .2s; margin-bottom: 4px; box-shadow: 0 4px 18px rgba(26,107,60,.3);
}
.pwa-big-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(26,107,60,.4); }

.pwa-or {
  text-align: center; font-size: .73rem; color: #aaa;
  margin: 10px 0 14px; font-style: italic;
}

/* ── Steps ── */
.pwa-steps { list-style: none; margin: 0; padding: 0; }
.pwa-steps li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid #f3f3f3;
}
.pwa-steps li:last-child { border: 0; padding-bottom: 4px; }
.ps-num {
  width: 28px; height: 28px; background: var(--green); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .74rem; font-weight: 800; flex-shrink: 0; margin-top: 1px;
}
.ps-body { font-size: .82rem; line-height: 1.5; }
.ps-body strong { display: block; font-weight: 700; color: var(--dark); margin-bottom: 3px; }
.ps-chip {
  display: inline-flex; align-items: center; gap: 3px;
  background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 5px;
  padding: 1px 7px; font-size: .75rem; font-weight: 700; color: var(--dark);
  margin: 0 1px; vertical-align: middle;
}
.ps-chip i { font-size: .75rem; }

.pwa-note {
  background: #f0f9f4; border: 1px solid rgba(26,107,60,.18); border-radius: 8px;
  padding: 9px 13px; margin-top: 12px; font-size: .76rem; color: var(--green); line-height: 1.5;
}
.pwa-note i { margin-right: 4px; }

/* ── Device switcher ── */
.pwa-switcher {
  padding: 10px 20px 8px; border-top: 1px solid #f0f0f0; flex-shrink: 0;
}
.pwa-switch-toggle {
  background: none; border: none; cursor: pointer; font-family: inherit;
  font-size: .76rem; color: var(--gray); font-weight: 600; display: flex;
  align-items: center; gap: 6px; padding: 4px 0; transition: color .18s;
  width: 100%;
}
.pwa-switch-toggle:hover { color: var(--green); }
.pwa-chev { font-size: .65rem; transition: transform .25s; margin-left: auto; }
.pwa-switcher.open .pwa-chev { transform: rotate(180deg); }

.pwa-switch-pills {
  display: none; flex-wrap: wrap; gap: 6px; margin-top: 10px;
}
.pwa-switcher.open .pwa-switch-pills { display: flex; }
.pwa-switch-pills button {
  display: flex; align-items: center; gap: 5px;
  background: var(--light); border: 1px solid #e5e7eb; border-radius: 20px;
  padding: 5px 12px; font-size: .73rem; font-weight: 600; color: var(--dark);
  cursor: pointer; font-family: inherit; transition: all .18s;
}
.pwa-switch-pills button:hover,
.pwa-switch-pills button.active { background: var(--green); color: #fff; border-color: var(--green); }
.pwa-switch-pills button i { font-size: .8rem; }

/* ── Modal footer ── */
.pwa-modal-foot {
  padding: 10px 20px 16px; flex-shrink: 0;
}
.pwa-foot-close {
  width: 100%; background: var(--light); border: none; border-radius: 10px;
  padding: 11px; font-size: .86rem; font-weight: 600; color: var(--gray);
  cursor: pointer; font-family: inherit; transition: all .2s;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.pwa-foot-close:hover { background: #e5e7eb; color: var(--dark); }

/* ── Toast ── */
#pwa-toast {
  position: fixed; bottom: 90px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--dark); color: #fff; padding: 11px 22px; border-radius: 50px;
  font-size: .83rem; font-weight: 600; z-index: 9700; opacity: 0;
  transition: opacity .3s, transform .3s; white-space: nowrap;
  pointer-events: none; box-shadow: 0 4px 18px rgba(0,0,0,.22);
}
#pwa-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Responsive ── */
@media (max-width: 480px) {
  .pwa-modal { border-radius: 20px 20px 0 0; }
  .pwa-modal-head { padding: 16px 16px 12px; }
  .pwa-panels { padding: 14px 16px 4px; }
  .pwa-switcher { padding: 8px 16px 6px; }
  .pwa-modal-foot { padding: 8px 16px 14px; }
  #nav-install-btn { padding: 5px 10px; font-size: .72rem; }
}
