/* Full-screen "Jain Community" call-out (includes/community_promo.php). Scoped to .jcp / .jcp-welcome. */
.jcp { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; padding: 20px;
  font-family: "Hind", "Segoe UI", system-ui, -apple-system, sans-serif; color: #2a1d1b; }
.jcp[hidden] { display: none; }
.jcp *, .jcp *::before, .jcp *::after { box-sizing: border-box; }
html.jcp-lock, html.jcp-lock body { overflow: hidden !important; }

.jcp__backdrop { position: absolute; inset: 0; background: rgba(36, 8, 14, .52);
  backdrop-filter: blur(14px) saturate(115%); -webkit-backdrop-filter: blur(14px) saturate(115%);
  opacity: 0; transition: opacity .45s ease; }
.jcp.is-in .jcp__backdrop { opacity: 1; }

.jcp__dialog { position: relative; width: min(960px, 100%); max-height: calc(100vh - 40px); overflow: auto;
  display: grid; grid-template-columns: 1fr 1.08fr; border-radius: 28px; background: #fff; outline: none;
  box-shadow: 0 40px 120px rgba(20, 4, 8, .55), 0 0 0 1px rgba(226, 194, 117, .35);
  opacity: 0; transform: translateY(26px) scale(.96); transition: opacity .5s cubic-bezier(.22, 1, .36, 1), transform .6s cubic-bezier(.22, 1, .36, 1); }
.jcp.is-in .jcp__dialog { opacity: 1; transform: none; }
.jcp.is-out .jcp__dialog { opacity: 0; transform: translateY(16px) scale(.97); transition-duration: .28s; }
.jcp.is-out .jcp__backdrop { opacity: 0; transition-duration: .3s; }

/* Close — big, high contrast, impossible to miss */
.jcp__close { position: absolute; top: 14px; right: 14px; z-index: 5; display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 16px 0 6px; border-radius: 999px; border: 2px solid #fff; background: #2a1d1b; color: #fff;
  font: 700 14px/1 inherit; cursor: pointer; box-shadow: 0 8px 22px rgba(0, 0, 0, .3); transition: transform .2s, background .2s; }
.jcp__close:hover { background: #7a1620; transform: scale(1.04); }
.jcp__close:focus-visible { outline: 3px solid #ffc928; outline-offset: 3px; }
.jcp__closeic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #2a1d1b; font-size: 14px; font-weight: 900; }

/* Left: animated visual */
.jcp__art { position: relative; overflow: hidden; color: #fff; padding: 34px 28px 28px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 520px;
  background: radial-gradient(ellipse at 80% 0%, #a3283a 0%, transparent 55%), radial-gradient(ellipse at 0% 100%, rgba(255, 201, 40, .22), transparent 50%),
              linear-gradient(160deg, #5c0f17 0%, #7a1620 55%, #8f1b26 100%); }
.jcp__rings { position: absolute; left: 50%; top: 42%; width: 0; height: 0; }
.jcp__rings i { position: absolute; border-radius: 50%; border: 1px solid rgba(226, 194, 117, .28); transform: translate(-50%, -50%); }
.jcp__rings i:nth-child(1) { width: 150px; height: 150px; }
.jcp__rings i:nth-child(2) { width: 240px; height: 240px; border-style: dashed; animation: jcp-spin 60s linear infinite; }
.jcp__rings i:nth-child(3) { width: 330px; height: 330px; border-color: rgba(226, 194, 117, .14); }
.jcp__orbit { position: absolute; left: 50%; top: 42%; width: 0; height: 0; animation: jcp-spin 40s linear infinite; }
.jcp__persona { position: absolute; width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 50%; display: grid; place-items: center; font-size: 24px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(6px);
  transform: rotate(calc(var(--i) * 60deg)) translateY(-120px) rotate(calc(var(--i) * -60deg)); box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }
.jcp__persona { animation: jcp-counter 40s linear infinite; }
@keyframes jcp-spin { to { transform: rotate(360deg); } }
@keyframes jcp-counter { from { transform: rotate(calc(var(--i) * 60deg)) translateY(-120px) rotate(calc(var(--i) * -60deg)); }
  to { transform: rotate(calc(var(--i) * 60deg)) translateY(-120px) rotate(calc(var(--i) * -60deg - 360deg)); } }
.jcp__center { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); width: 128px; height: 128px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: radial-gradient(circle at 35% 30%, #fff8ec, #f6eacb); color: #7a1620; box-shadow: 0 0 0 6px rgba(255, 255, 255, .12), 0 16px 40px rgba(0, 0, 0, .35); }
.jcp__center b { font: 800 14px/1.1 "Martel", Georgia, serif; }
.jcp__center small { font-size: 11px; color: #b8860b; font-weight: 700; }
.jcp__lotus { font-size: 34px; line-height: 1; animation: jcp-breathe 3.2s ease-in-out infinite; }
@keyframes jcp-breathe { 50% { transform: scale(1.12); } }
.jcp__asklabel { position: relative; margin: 0 0 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #e2c275; }
.jcp__qs { position: relative; height: 78px; }
.jcp__q { position: absolute; inset: 0; display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(8px);
  font-size: 15px; font-weight: 600; line-height: 1.35; opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .5s cubic-bezier(.22, 1, .36, 1); }
.jcp__q.is-on { opacity: 1; transform: none; }
.jcp__q small { display: block; font-size: 11px; color: #e2c275; letter-spacing: .08em; text-transform: uppercase; }
.jcp__qe { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: rgba(255, 255, 255, .16); }

/* Right: message */
.jcp__body { padding: 40px 38px 28px; display: flex; flex-direction: column; }
.jcp__eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #b8860b; }
.jcp__flag { display: inline-flex; width: 40px; height: 6px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.jcp__flag i { flex: 1; }
.jcp__flag i:nth-child(1) { background: #e53935; } .jcp__flag i:nth-child(2) { background: #ffc928; } .jcp__flag i:nth-child(3) { background: #fff; }
.jcp__flag i:nth-child(4) { background: #009432; } .jcp__flag i:nth-child(5) { background: #1a1a24; }
.jcp__title { margin: 0 0 12px; font: 800 clamp(26px, 3.4vw, 36px)/1.15 "Martel", Georgia, serif; color: #2a1d1b; letter-spacing: -.01em; }
.jcp__title span { background: linear-gradient(90deg, #7a1620, #c2410c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.jcp__lead { margin: 0 0 16px; font-size: 16px; line-height: 1.65; color: #5a4a45; }
.jcp__lead b { color: #7a1620; }
.jcp__chips { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.jcp__chips li { padding: 6px 12px; border-radius: 999px; background: #fbf5ec; border: 1px solid #efe1c6; font-size: 13.5px; font-weight: 600; color: #5a4a45;
  opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s cubic-bezier(.22, 1, .36, 1); }
.jcp.is-in .jcp__chips li { opacity: 1; transform: none; }
.jcp.is-in .jcp__chips li:nth-child(2) { transition-delay: .05s; } .jcp.is-in .jcp__chips li:nth-child(3) { transition-delay: .1s; }
.jcp.is-in .jcp__chips li:nth-child(4) { transition-delay: .15s; } .jcp.is-in .jcp__chips li:nth-child(5) { transition-delay: .2s; }
.jcp.is-in .jcp__chips li:nth-child(6) { transition-delay: .25s; } .jcp.is-in .jcp__chips li:nth-child(7) { transition-delay: .3s; }
.jcp__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.jcp__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none !important; transition: transform .2s cubic-bezier(.22, 1, .36, 1), box-shadow .2s, background .2s; }
.jcp__btn--primary { flex: 1 1 260px; color: #fff !important; background: linear-gradient(135deg, #8f1b26, #7a1620 55%, #5c0f17);
  box-shadow: 0 12px 28px rgba(122, 22, 32, .35); position: relative; overflow: hidden; }
.jcp__btn--primary::after { content: ""; position: absolute; top: 0; bottom: 0; width: 60px; left: -80px; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); animation: jcp-shine 3.2s ease-in-out infinite 1.2s; }
@keyframes jcp-shine { 0% { left: -80px; } 40%, 100% { left: 110%; } }
.jcp__btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(122, 22, 32, .45); }
.jcp__btn--ghost { flex: 1 1 180px; color: #7a1620 !important; background: #fff; border: 1.5px solid #e4cfd1; }
.jcp__btn--ghost:hover { background: #fbf1f2; transform: translateY(-2px); }
.jcp__btn:focus-visible { outline: 3px solid #ffc928; outline-offset: 3px; }
.jcp__trust { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0 0; font-size: 13px; color: #1f7a46; font-weight: 600; }
.jcp__foot { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px dashed #ece3d9; }
.jcp__timer { font-size: 13px; color: #8a7d76; }
.jcp__timer b { color: #c2410c; font-variant-numeric: tabular-nums; }
.jcp__later { border: 0; background: none; padding: 6px 0; font: 600 14px inherit; color: #6b5a55; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.jcp__later:hover { color: #7a1620; }

/* Phone: bottom sheet with a compact visual */
@media (max-width: 760px) {
  .jcp { padding: 0; place-items: end center; }
  .jcp__dialog { grid-template-columns: 1fr; border-radius: 26px 26px 0 0; max-height: 94vh; transform: translateY(60px); }
  .jcp__art { min-height: 0; padding: 22px 18px 18px; }
  .jcp__rings, .jcp__orbit { display: none; }
  .jcp__center { position: static; transform: none; width: auto; height: auto; flex-direction: row; gap: 8px; background: none; box-shadow: none; color: #fff; margin-bottom: 14px; justify-content: flex-start; }
  .jcp__center small { color: #e2c275; }
  .jcp__lotus { font-size: 26px; }
  .jcp__qs { height: 74px; }
  .jcp__q { font-size: 14px; }
  .jcp__body { padding: 22px 18px calc(18px + env(safe-area-inset-bottom, 0px)); }
  .jcp__lead { font-size: 15px; }
  .jcp__chips li { font-size: 12.5px; padding: 5px 10px; }
  .jcp__btn { flex-basis: 100%; }
  .jcp__close { top: 12px; right: 12px; height: 40px; }
  .jcp__foot { justify-content: center; text-align: center; }
}

/* Welcome nudge after signing up from the call-out */
.jcp-welcome { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 4000;
  display: flex; align-items: center; gap: 12px; max-width: calc(100% - 24px); padding: 12px 12px 12px 18px; border-radius: 999px;
  background: #2a1d1b; color: #fff; font: 600 14.5px/1.35 "Hind", "Segoe UI", sans-serif; box-shadow: 0 16px 40px rgba(0, 0, 0, .3); animation: jcp-up .5s cubic-bezier(.22, 1, .36, 1); }
.jcp-welcome[hidden] { display: none; }
.jcp-welcome a { flex: none; padding: 9px 16px; border-radius: 999px; background: linear-gradient(135deg, #ffd56a, #e0a800); color: #3b1d0b !important; font-weight: 800; text-decoration: none !important; }
.jcp-welcome button { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; cursor: pointer; }
@keyframes jcp-up { from { opacity: 0; transform: translate(-50%, 20px); } }
@media (max-width: 600px) { .jcp-welcome { border-radius: 18px; flex-wrap: wrap; } }

@media (prefers-reduced-motion: reduce) {
  .jcp *, .jcp-welcome { animation: none !important; transition: none !important; }
  .jcp__dialog, .jcp__backdrop, .jcp__chips li { opacity: 1 !important; transform: none !important; }
}
