/* ── Paywall Banner ───────────────────────────────────────────────────────── */
#icu-pw-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1d4ed8;
  color: #fff;
  width: 100%;
  padding: 11px 48px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  position: relative;
  z-index: 9999;
  box-sizing: border-box;
}
.icu-pw-banner-text {
  flex: 1;
  text-align: center;
}
#icu-pw-banner-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}
#icu-pw-banner-close:hover { color: #fff; }

/* ── Paywall Counter ─────────────────────────────────────────────────────── */
#icu-pw-counter {
  text-align: center;
  font-size: 13px;
  color: #64748b;
  margin-top: 10px;
  padding: 6px 12px;
}
#icu-pw-counter.last-free {
  color: #b45309;
  font-weight: 600;
}

/* ── Overlay Backdrop ────────────────────────────────────────────────────── */
#icu-paywall-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
}
.icu-pw-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(3px);
}

/* ── Overlay Box ─────────────────────────────────────────────────────────── */
.icu-pw-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #0f172a;
  border: 1px solid rgba(96,165,250,0.2);
  border-radius: 16px;
  padding: 36px 32px 28px;
  max-width: 520px;
  width: calc(100% - 32px);
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
  color: #e2e8f0;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}
.icu-pw-badge {
  display: inline-block;
  background: rgba(96,165,250,0.15);
  border: 1px solid rgba(96,165,250,0.3);
  color: #60a5fa;
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.icu-pw-headline {
  font-size: 22px;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 10px;
  line-height: 1.3;
}
.icu-pw-sub {
  font-size: 14px;
  color: #94a3b8;
  margin: 0 0 24px;
  line-height: 1.6;
}

/* ── Consent checkbox ────────────────────────────────────────────────────── */
.icu-pw-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 20px;
  cursor: pointer;
  line-height: 1.5;
}
.icu-pw-consent input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #3b82f6;
}
.icu-pw-consent a { color: #60a5fa; }

/* Plans disabled until consent */
.icu-pw-plans.icu-pw-locked {
  opacity: 0.4;
  pointer-events: none;
}

/* ── Plans ───────────────────────────────────────────────────────────────── */
.icu-pw-plans {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 16px;
}
.icu-pw-plan {
  flex: 1;
  max-width: 200px;
  background: #1e293b;
  border: 2px solid rgba(96,165,250,0.15);
  border-radius: 12px;
  padding: 20px 16px 16px;
  position: relative;
  cursor: pointer;
  transition: border-color 0.15s;
}
.icu-pw-plan:hover {
  border-color: rgba(96,165,250,0.4);
}
.icu-pw-plan.icu-pw-selected {
  border-color: #3b82f6;
  background: #1e3a5f;
}
.icu-pw-plan-popular {
  border-color: rgba(96,165,250,0.15);
  background: #1e293b;
}
.icu-pw-plan-popular-label {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #3b82f6;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 1;
  pointer-events: none;
}
.icu-pw-plan-duration {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 6px;
}
.icu-pw-plan-price {
  font-size: 26px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 14px;
}
.icu-pw-note {
  font-size: 12px;
  color: #64748b;
  margin: 0 0 20px;
}
.icu-pw-features {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  font-size: 13px;
  color: #94a3b8;
  display: inline-block;
}
.icu-pw-features li {
  margin-bottom: 6px;
}
.icu-pw-features li::before {
  content: none;
}

/* ── Close button ────────────────────────────────────────────────────────── */
.icu-pw-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.icu-pw-close:hover { color: rgba(255,255,255,0.8); }

/* Body scroll lock when overlay open */
body.icu-pw-open { overflow: hidden; }

/* ── PayPal button container ─────────────────────────────────────────────── */
#icu-paypal-btn-7,
#icu-paypal-btn-30 {
  min-height: 44px;
}

@media (max-width: 480px) {
  .icu-pw-plans { flex-direction: column; align-items: center; }
  .icu-pw-plan  { max-width: 100%; width: 100%; }
  .icu-pw-box   { padding: 28px 20px 22px; }
  .icu-pw-headline { font-size: 18px; }
}
