/* ICP modal */
.icpmd-trigger--link { color: #b3151b; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.icpmd-trigger--button { display: inline-block; padding: 10px 22px; border-radius: 8px; color: #fff !important; font-weight: 700; text-decoration: none !important; background: linear-gradient(180deg, #d0252b 0%, #a3121a 100%); box-shadow: 0 3px 8px rgba(163,18,26,.35); cursor: pointer; }
.icpmd-trigger--button:hover { filter: brightness(1.08); }

.icpmd { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,.75); opacity: 0; transition: opacity .2s; }
.icpmd.is-open { opacity: 1; }
.icpmd[hidden] { display: none; }
.icpmd__box { position: relative; width: 100%; max-width: var(--icpmd-w, 760px); max-height: 92vh; overflow: auto; background: #fff; border-radius: 14px; padding: 28px 28px 24px; box-shadow: 0 24px 70px rgba(0,0,0,.45); transform: translateY(12px) scale(.98); transition: transform .2s; font-family: inherit; color: #1f1f1f; }
.icpmd.is-open .icpmd__box { transform: none; }
.icpmd--image .icpmd__box { background: transparent; box-shadow: none; padding: 0; max-width: min(1400px, 96vw); overflow: visible; text-align: center; }
.icpmd__img { display: block; max-width: 100%; max-height: 86vh; margin: 0 auto; object-fit: contain; border-radius: 10px; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.icpmd__caption { margin: 10px 0 0; color: #fff; font-size: 15px; }
.icpmd--image .icpmd__close { top: -14px; right: -14px; }
.icpmd__title { margin: 0 0 14px; font-size: 22px; font-weight: 700; color: #b3151b; }
.icpmd__content { font-size: 16px; line-height: 1.7; }
.icpmd__content > :first-child { margin-top: 0; }
.icpmd__content > :last-child { margin-bottom: 0; }
.icpmd__close { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f1f1f1; color: #333; font-size: 26px; line-height: 1; cursor: pointer; z-index: 2; }
.icpmd__close:hover { background: #e2e2e2; }
.icpmd--image .icpmd__close { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
body.icpmd-open { overflow: hidden; }
@media (max-width: 640px) { .icpmd { padding: 12px; } .icpmd__box { padding: 22px 18px 18px; border-radius: 12px; } .icpmd--image .icpmd__close { top: 6px; right: 6px; } }
