/* ============================================================
   MODALS — Overlay, sheets, fullscreen, wallet, share
============================================================ */

/* ── Overlay + bottom sheet (gift) ── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,14,58,0.60);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.overlay.open {
  display: flex;
  animation: fadeOverlay 0.25s ease;
}

@keyframes fadeOverlay {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.sheet {
  background: white;
  border-radius: 26px 26px 0 0;
  width: 100%;
  max-width: 420px;
  max-height: 92dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 22px 52px;
  animation: sheetSlide 0.36s cubic-bezier(0.16, 1, 0.3, 1);
}

.sheet-handle {
  width: 36px;
  height: 4px;
  background: #E5E9F2;
  border-radius: 2px;
  margin: 14px auto 20px;
}

.sheet-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.sheet-sub {
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 22px;
  line-height: 1.5;
}

.sheet .field-input {
  background: var(--fog);
  border-color: #E5E9F2;
}

.sheet .field-input:focus {
  background: white;
  border-color: var(--royal);
}

/* ── Fullscreen modal ── */
#fullscreen-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
}

#fullscreen-card-wrap {
  width: 90vw;
  max-width: 560px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.60);
}

/* ── Wallet modal ── */
#wallet-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,84,121,0.60);
  backdrop-filter: blur(12px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* ── Share overlay + sheet ── */
#share-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,84,121,0.50);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  align-items: flex-end;
  justify-content: center;
}

#share-sheet {
  background: white;
  border-radius: 26px 26px 0 0;
  width: 100%;
  max-width: 480px;
  padding: 0 22px 48px;
}
