/* 🎴 Session Popup — স্ক্রল করলে মাঝে মাঝে ভেসে ওঠা সেশন কার্ড
   ডেস্কটপে নিচে বাঁদিকে (ডানদিকে WhatsApp বোতাম থাকে), মোবাইলে WhatsApp-এর ঠিক উপরে। */

.spop {
  --spop-ink: #16233D;
  --spop-navy: #1B3A6B;
  --spop-soft: #56606E;
  --spop-seal: #C0392B;
  --spop-accent: #3C7A5C;
  --spop-accent-tint: #E4F0EA;
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 9990;
  width: 360px;
  max-width: calc(100vw - 32px);
  background: #fff;
  color: var(--spop-ink);
  border-radius: 14px;
  border: 1px solid #E2E6EC;
  box-shadow: 0 18px 48px rgba(16, 37, 66, 0.22), 0 2px 6px rgba(16, 37, 66, 0.08);
  padding: 20px 20px 18px;
  font-family: 'Inter', 'Noto Sans Bengali', sans-serif;
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
  transition: opacity .34s ease, transform .38s cubic-bezier(.2, .9, .3, 1.15);
  overflow: visible;
}
.spop.is-closing {
  --spop-accent: #A8650F;
  --spop-accent-tint: #FBEFD9;
}
.spop.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* 募集中 / 締切間近 — জাপানি নোটিশের মতো লাল গোল সিল */
.spop-seal {
  position: absolute;
  top: -22px;
  right: 54px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2.5px solid var(--spop-seal);
  color: var(--spop-seal);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.05;
  letter-spacing: .04em;
  text-align: center;
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 4px rgba(192, 57, 43, .45);
  transform: rotate(-12deg) scale(1);
  opacity: .94;
}
.spop-seal span { display: block; white-space: nowrap; }
.spop-seal span.two { width: 2.1em; white-space: normal; word-break: break-all; font-size: 14px; line-height: 1.12; }
.spop.is-open .spop-seal { animation: spop-stamp .42s .22s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes spop-stamp {
  0%   { transform: rotate(-24deg) scale(1.6); opacity: 0; }
  100% { transform: rotate(-12deg) scale(1); opacity: .94; }
}

.spop-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #F3F5F8;
  color: var(--spop-soft);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.spop-close:hover { background: #E7ECF3; color: var(--spop-ink); }
.spop-close:focus-visible, .spop-cta:focus-visible, .spop-later:focus-visible {
  outline: 3px solid #2F5CA8;
  outline-offset: 2px;
}

.spop-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding-right: 120px;
  min-height: 26px;
}
.spop-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--spop-accent-tint);
  color: var(--spop-accent);
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 10px 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.spop-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--spop-accent);
  box-shadow: 0 0 0 0 currentColor;
  animation: spop-pulse 1.8s ease-out infinite;
}
@keyframes spop-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(60, 122, 92, .45); }
  100% { box-shadow: 0 0 0 7px rgba(60, 122, 92, 0); }
}
.spop.is-closing .spop-dot { animation-name: spop-pulse-amber; }
@keyframes spop-pulse-amber {
  0%   { box-shadow: 0 0 0 0 rgba(168, 101, 15, .5); }
  100% { box-shadow: 0 0 0 7px rgba(168, 101, 15, 0); }
}
.spop-count { font-size: 12.5px; color: var(--spop-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.spop-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.spop-foot .spop-later { margin: 0; }

.spop-title {
  font-family: 'Zen Kaku Gothic New', 'Inter', 'Noto Sans Bengali', sans-serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--spop-navy);
  margin: 0 0 8px;
}
.spop-msg {
  font-size: 15px;
  line-height: 1.65;
  color: var(--spop-ink);
  margin: 0 0 12px;
}
.spop-deadline {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 13.5px;
  color: var(--spop-soft);
  border-top: 1px dashed #D5DBE4;
  padding-top: 10px;
  margin-bottom: 14px;
}
.spop-deadline b { color: var(--spop-ink); font-weight: 600; }
.spop-left { color: var(--spop-accent); font-weight: 600; }

.spop-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  background: var(--spop-navy);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: background .15s ease;
}
.spop-cta:hover { background: #102542; color: #fff; }
.spop-cta svg { width: 18px; height: 18px; }

.spop-later {
  display: inline-block;
  margin: 0;
  background: none;
  border: none;
  color: var(--spop-soft);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  font-family: inherit;
  padding: 4px 6px;
}
.spop-later:hover { color: var(--spop-ink); }

/* কতক্ষণ পরে নিজে থেকে সরে যাবে — নিচে পাতলা দাগ (মাউস রাখলে থেমে যায়) */
.spop-timer {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--spop-accent);
  opacity: .55;
  transform-origin: left center;
  transform: scaleX(1);
}

@media (max-width: 600px) {
  .spop {
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    padding: 18px 16px 16px;
  }
  .spop-title { font-size: 26px; }
  .spop-msg { font-size: 14.5px; }
  .spop-seal { width: 56px; height: 56px; font-size: 13px; top: -18px; right: 50px; }
  .spop-seal span.two { font-size: 12.5px; }
  .spop-top { padding-right: 104px; }
}

@media (prefers-reduced-motion: reduce) {
  .spop { transition: opacity .2s ease; transform: none; }
  .spop.is-open .spop-seal { animation: none; }
  .spop-dot { animation: none; }
}
