/* 09-modals — bandeira, doação e Instagram (bundle dd15fb0a, verbatim).
   O fechamento ganha fade curto (.is-closing) — regra Overlay-Close-Animation
   do repo; a abertura permanece imediata como no bundle. */

.jg-modal-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(10, 30, 28, .55); display: flex; align-items: center; justify-content: center; padding: 20px; transition: opacity .18s ease; }
.jg-modal-overlay.is-closing { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .jg-modal-overlay { transition: none; }
}
.jg-modal { background: #ffffff; border-radius: 24px; width: 100%; position: relative; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.jg-modal__close { position: absolute; top: 12px; right: 12px; background: #f2f5f4; border: none; width: 32px; height: 32px; border-radius: 50%; font-size: 17px; cursor: pointer; color: #5a6d75; }

/* Modal de bandeira */
.jg-modal--flag { max-width: 480px; max-height: 92vh; overflow-y: auto; padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 12px; }
.jg-modal__flag-head { display: flex; align-items: center; gap: 12px; padding-right: 32px; }
.jg-modal__flag-icon { width: 44px; height: 44px; border-radius: 12px; color: #ffffff; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; flex: none; }
.jg-modal__flag-title { margin: 0; font-family: 'Poppins', sans-serif; font-weight: 900; font-size: 19px; line-height: 1.25; color: #1a2b33; }
.jg-modal__flag-phrase { margin: 0; font-size: 14px; line-height: 1.55; color: #39505a; }
.jg-modal__points { display: flex; flex-direction: column; gap: 8px; }
.jg-modal__point { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; line-height: 1.5; color: #1a2b33; }
.jg-modal__flag-cta { text-align: center; background: #fcc609; color: #046052; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 15px; padding: 13px; border-radius: 999px; box-shadow: 0 3px 0 #d9a900; }
.jg-modal__flag-cta:hover { color: #046052; transform: translateY(-2px); }

/* Modal de doação */
.jg-modal--donation { max-width: 420px; padding: 32px 28px; display: flex; flex-direction: column; gap: 18px; }
.jg-modal--donation .jg-modal__close { top: 16px; right: 16px; width: 34px; height: 34px; font-size: 18px; }
.jg-modal__donation-title { margin: 0; font-family: 'Poppins', sans-serif; font-weight: 900; font-size: 22px; color: #1a2b33; }
.jg-modal__donation-sub { margin: 0; font-size: 14px; color: #5a6d75; line-height: 1.6; }
.jg-modal__bank { background: #f6f8f7; border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: #1a2b33; }
.jg-modal__bank-name { font-weight: 800; }
.jg-modal__bank-holder { margin-top: 4px; font-weight: 700; }
.jg-modal__bank-note { font-size: 13px; color: #5a6d75; }
.jg-modal__qr-col { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.jg-modal__qr-frame { width: 220px; height: 220px; background: #f6f8f7; border: 2px solid #dce5e2; border-radius: 16px; padding: 14px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; }
.jg-modal__qr { width: 100%; height: 100%; object-fit: contain; }
.jg-modal__qr-placeholder { font-size: 13px; font-weight: 600; color: #5a6d75; }
.jg-modal__qr-caption { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 15px; color: #039580; }
.jg-modal__pix-copy { background: #fcc609; color: #046052; border: none; cursor: pointer; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 14px; padding: 12px 22px; border-radius: 999px; box-shadow: 0 3px 0 #d9a900; }
.jg-modal__pix-copy:hover { transform: translateY(-2px); box-shadow: 0 5px 0 #d9a900; }
.jg-modal__pix-copy.is-copied { background: #039580; color: #ffffff; box-shadow: 0 3px 0 #046052; }

/* Modal do Instagram */
.jg-modal-overlay[data-jg-modal="insta"] { padding: 16px; }
.jg-modal--insta { max-width: 420px; max-height: 92vh; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.jg-modal--insta .jg-modal__close { top: 14px; right: 14px; z-index: 2; width: 34px; height: 34px; font-size: 18px; color: #0a3d38; }
.jg-modal__insta-head { display: flex; align-items: center; gap: 10px; padding-right: 44px; }
.jg-modal__insta-badge { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(45deg, #f9ce34, #ee2a7b 55%, #6228d7); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.jg-modal__insta-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.jg-modal__insta-id strong { font-family: 'Poppins', sans-serif; font-size: 14px; color: #0a3d38; line-height: 1.2; }
.jg-modal__insta-live { display: flex; align-items: center; gap: 6px; font-family: 'Inter', sans-serif; font-size: 11.5px; color: #5a726e; }
.jg-modal__insta-dot { width: 7px; height: 7px; border-radius: 50%; background: #e01e3c; animation: liveDot 1.6s ease-in-out infinite; }
.jg-modal__insta-feed { border-radius: 16px; border: 1px solid #e2eae8; background: #fafafa; flex: 1; min-height: 0; height: min(560px, 62vh); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; gap: 10px; padding: 10px; scrollbar-width: thin; }
.jg-modal__insta-post { border-radius: 12px; overflow: hidden; background: #ffffff; border: 1px solid #e9eeec; flex-shrink: 0; }
.jg-modal__insta-post-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 6px; }
.jg-modal__insta-post-label { font-family: 'Poppins', sans-serif; font-size: 11px; font-weight: 700; color: #0a3d38; }
.jg-modal__insta-post-hint { font-family: 'Inter', sans-serif; font-size: 10px; color: #8aa19c; }
.jg-modal__insta-links { display: flex; gap: 10px; }
.jg-modal__insta-stories { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(45deg, #f9ce34, #ee2a7b 55%, #6228d7); color: #ffffff; font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 700; padding: 12px; border-radius: 12px; }
.jg-modal__insta-stories:hover { color: #ffffff; opacity: .9; }
.jg-modal__insta-profile { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; background: #f2f5f4; color: #0a3d38; font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 700; padding: 12px; border-radius: 12px; }
.jg-modal__insta-profile:hover { color: #0a3d38; background: #e2eae8; }
