/* Lock scroll when modal open */
html.tplead-lock, html.tplead-lock body { overflow: hidden; }

/* Modal container */
.tplead-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

.tplead-modal.is-open { display: block; }

.tplead-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
}

.tplead-dialog {
  position: relative;
  width: min(920px, calc(100vw - 32px));
  margin: 6vh auto;
  border-radius: 18px;
  background: #ffffff;
  box-shadow:
    0 40px 90px rgba(2, 6, 23, 0.25),
    0 10px 30px rgba(2, 6, 23, 0.18);
  overflow: hidden;
  border: 1px solid rgba(2, 6, 23, 0.08);
  animation: tpleadIn 220ms ease-out;
}

@keyframes tpleadIn {
  from { transform: translateY(10px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.tplead-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(2,6,23,0.10);
  background: rgba(255,255,255,0.9);
  border-radius: 12px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 120ms ease, background 120ms ease;
}
.tplead-close:hover { transform: scale(1.03); background: #fff; }
.tplead-close span { font-size: 22px; line-height: 1; color: #0f172a; }

/* Layout */
.tplead-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: 440px;
}

.tplead-left {
  padding: 34px 34px 30px 34px;
  background:
    radial-gradient(900px 420px at 10% 10%, rgba(124,58,237,0.16), transparent 60%),
    radial-gradient(900px 380px at 80% 15%, rgba(6,182,212,0.14), transparent 55%),
    radial-gradient(900px 420px at 30% 90%, rgba(34,197,94,0.10), transparent 60%),
    #ffffff;
  border-right: 1px solid rgba(2,6,23,0.06);
}

.tplead-right {
  padding: 34px;
  background: #ffffff;
}

.tplead-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  background: rgba(124,58,237,0.10);
  border: 1px solid rgba(124,58,237,0.22);
}

.tplead-title {
  margin: 14px 0 10px;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.tplead-subtitle {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(15, 23, 42, 0.72);
}

.tplead-benefits {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.tplead-benefits li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: rgba(15, 23, 42, 0.82);
}

.tplead-check {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.20);
  color: #065f46;
  font-weight: 800;
  flex: 0 0 22px;
}

.tplead-note {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.72);
  background: rgba(2, 6, 23, 0.03);
  border: 1px solid rgba(2, 6, 23, 0.06);
}

/* Form */
.tplead-form { display: grid; gap: 12px; }

.tplead-label {
  font-size: 13px;
  font-weight: 650;
  color: rgba(15,23,42,0.85);
  margin-bottom: -6px;
}

.tplead-levels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tplead-pill {
  position: relative;
  display: flex;
  cursor: pointer;
  user-select: none;
}

.tplead-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tplead-pill span {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(2,6,23,0.10);
  background: rgba(2,6,23,0.02);
  color: rgba(15,23,42,0.85);
  font-weight: 650;
  font-size: 13.5px;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease, background 120ms ease;
}

.tplead-pill:hover span {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(2,6,23,0.08);
}

.tplead-pill input:checked + span {
  background: rgba(124,58,237,0.10);
  border-color: rgba(124,58,237,0.35);
  box-shadow: 0 12px 24px rgba(124,58,237,0.14);
}

.tplead-input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(2,6,23,0.10);
  background: #fff;
  font-size: 14px;
  outline: none;
  transition: box-shadow 120ms ease, border-color 120ms ease;
}

.tplead-input:focus {
  border-color: rgba(124,58,237,0.45);
  box-shadow: 0 0 0 4px rgba(124,58,237,0.12);
}

.tplead-btn {
  margin-top: 4px;
  border: none;
  cursor: pointer;
  border-radius: 16px;
  padding: 12px 14px;
   background: linear-gradient(135deg, #7c3aed, #2563eb, #06b6d4);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.22);
  color: white;
  font-weight: 750;
  /* box-shadow: 0 18px 34px rgba(37, 99, 235, 0.28); */
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
  text-align: left;
}

.tplead-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 44px rgba(37, 99, 235, 0.33);
  filter: brightness(1.02);
}

.tplead-btn-text { display: block; font-size: 14.5px; line-height: 1.2; }
.tplead-btn-sub  { display: block; font-size: 12px; opacity: 0.9; margin-top: 4px; }

.tplead-meta {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(15,23,42,0.62);
}

.tplead-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 650;
}
.tplead-link:hover { text-decoration: underline; }

.tplead-message {
  min-height: 18px;
  font-size: 13px;
  margin-top: 4px;
  color: rgba(15,23,42,0.75);
}
.tplead-message.is-success { color: #065f46; }
.tplead-message.is-error { color: #b91c1c; }

/* Unsubscribe page styling */
.tplead-unsub-wrap {
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.tplead-unsub-card {
  width: min(560px, 100%);
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(2,6,23,0.10);
  box-shadow: 0 20px 60px rgba(2,6,23,0.10);
  padding: 26px;
}

.tplead-unsub-title {
  margin: 0 0 6px;
  font-size: 24px;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.tplead-unsub-sub {
  margin: 0 0 16px;
  color: rgba(15,23,42,0.7);
}

.tplead-unsub-form { display: grid; gap: 10px; }

.tplead-unsub-label {
  font-size: 13px;
  font-weight: 650;
  color: rgba(15,23,42,0.85);
}

.tplead-unsub-input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(2,6,23,0.10);
  font-size: 14px;
}

.tplead-unsub-btn {
  border: none;
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  background: rgba(2,6,23,0.92);
  color: #fff;
  font-weight: 750;
}

.tplead-unsub-msg {
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 12px;
  border: 1px solid rgba(2,6,23,0.10);
  background: rgba(2,6,23,0.03);
}
.tplead-unsub-msg.is-success {
  background: rgba(16,185,129,0.10);
  border-color: rgba(16,185,129,0.20);
  color: #065f46;
}
.tplead-unsub-msg.is-error {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.20);
  color: #991b1b;
}

.tplead-unsub-footnote {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(15,23,42,0.62);
}

@media (max-width: 860px) {
  @media (max-width: 860px) {
  .tplead-dialog {
    margin: 12px auto;
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    overflow: auto;
  }

  .tplead-grid {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .tplead-left {
    border-right: none;
    border-bottom: 1px solid rgba(2,6,23,0.06);
    padding: 22px;
  }

  .tplead-right {
    padding: 22px;
  }

  .tplead-levels {
    grid-template-columns: 1fr;  /* ✅ make pills not cramped */
  }

  /* Optional: make button always comfortably visible */
  .tplead-btn {
    position: sticky;
    bottom: 0;
    z-index: 2;
  }
}
}


/* =========================
   Unsubscribe page (Pro)
   ========================= */
.tplead-unsub {
  padding: 42px 16px;
  background:
    radial-gradient(1100px 520px at 15% 10%, rgba(124,58,237,0.12), transparent 60%),
    radial-gradient(1000px 460px at 85% 15%, rgba(6,182,212,0.10), transparent 55%),
    radial-gradient(900px 480px at 25% 95%, rgba(34,197,94,0.08), transparent 60%),
    #f8fafc;
}

.tplead-unsub-shell {
  width: min(980px, 100%);
  margin: 0 auto;
}

.tplead-unsub-card {
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid rgba(2,6,23,0.08);
  box-shadow:
    0 22px 70px rgba(2,6,23,0.10),
    0 8px 20px rgba(2,6,23,0.06);
  overflow: hidden;
}

.tplead-unsub-head {
  padding: 26px 28px 18px;
  border-bottom: 1px solid rgba(2,6,23,0.06);
  background:
    radial-gradient(900px 280px at 10% 10%, rgba(124,58,237,0.10), transparent 60%),
    radial-gradient(900px 280px at 80% 15%, rgba(6,182,212,0.08), transparent 55%),
    #ffffff;
}

.tplead-unsub-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(15,23,42,0.90);
  background: rgba(124,58,237,0.10);
  border: 1px solid rgba(124,58,237,0.22);
}

.tplead-unsub-title {
  margin: 12px 0 8px;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.tplead-unsub-sub {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(15,23,42,0.70);
  max-width: 70ch;
}

.tplead-unsub-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
}

.tplead-unsub-left {
  padding: 22px 28px 28px;
  border-right: 1px solid rgba(2,6,23,0.06);
  background:
    linear-gradient(180deg, rgba(2,6,23,0.015), rgba(2,6,23,0.00));
}

.tplead-unsub-right {
  padding: 22px 28px 28px;
  background: #ffffff;
}

.tplead-unsub-panel {
  border-radius: 18px;
  border: 1px solid rgba(2,6,23,0.06);
  background: rgba(2,6,23,0.02);
  padding: 18px;
}

.tplead-unsub-panel-title {
  margin: 0 0 6px;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: rgba(15,23,42,0.92);
}

.tplead-unsub-panel-text {
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(15,23,42,0.70);
}

.tplead-unsub-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.tplead-unsub-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: rgba(15,23,42,0.82);
}

.tplead-unsub-dot {
  width: 22px;
  height: 22px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.18);
  color: #166534;
  font-weight: 900;
  flex: 0 0 22px;
}

.tplead-unsub-mini {
  margin-top: 14px;
  padding: 12px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(15,23,42,0.72);
  border: 1px solid rgba(2,6,23,0.06);
  background: #ffffff;
}

.tplead-unsub-form {
  display: grid;
  gap: 12px;
}

.tplead-unsub-label {
  font-size: 13px;
  font-weight: 750;
  color: rgba(15,23,42,0.86);
}

.tplead-unsub-input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(2,6,23,0.10);
  background: #ffffff;
  font-size: 14px;
  outline: none;
  transition: box-shadow 120ms ease, border-color 120ms ease;
}

.tplead-unsub-input:focus {
  border-color: rgba(124,58,237,0.45);
  box-shadow: 0 0 0 4px rgba(124,58,237,0.12);
}

.tplead-unsub-btn {
  margin-top: 2px;
  border: none;
  cursor: pointer;
  border-radius: 16px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: white;
  font-weight: 800;
  box-shadow: 0 18px 34px rgba(239, 68, 68, 0.18);
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
  text-align: left;
}

.tplead-unsub-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 44px rgba(239, 68, 68, 0.22);
  filter: brightness(1.02);
}

.tplead-unsub-btn-text {
  display: block;
  font-size: 14.5px;
  line-height: 1.2;
}

.tplead-unsub-btn-sub {
  display: block;
  font-size: 12px;
  opacity: 0.92;
  margin-top: 4px;
}

.tplead-unsub-foot {
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(15,23,42,0.64);
  padding-top: 8px;
}

.tplead-unsub-alert {
  margin: 16px 28px 0;
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 13.5px;
  border: 1px solid rgba(2,6,23,0.08);
  background: rgba(2,6,23,0.03);
  color: rgba(15,23,42,0.80);
}

.tplead-unsub-alert.is-success {
  background: rgba(34,197,94,0.10);
  border-color: rgba(34,197,94,0.18);
  color: #166534;
}

.tplead-unsub-alert.is-error {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.18);
  color: #991b1b;
}

.tplead-unsub-fineprint {
  margin: 14px 4px 0;
  font-size: 12px;
  color: rgba(15,23,42,0.60);
}

/* Responsive */
@media (max-width: 860px) {
  .tplead-unsub {
    padding: 26px 12px;
  }

  .tplead-unsub-head {
    padding: 22px 18px 16px;
  }

  .tplead-unsub-title {
    font-size: 22px;
  }

  .tplead-unsub-grid {
    grid-template-columns: 1fr;
  }

  .tplead-unsub-left {
    border-right: none;
    border-bottom: 1px solid rgba(2,6,23,0.06);
    padding: 18px;
  }

  .tplead-unsub-right {
    padding: 18px;
  }

  .tplead-unsub-alert {
    margin: 14px 18px 0;
  }
}





/* =========================
   Cookie Consent Banner
   ========================= */
.tplead-cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 999998;
  display: block;
}

.tplead-cookie-inner {
  width: min(980px, 100%);
  margin: 0 auto;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(2,6,23,0.10);
  border-radius: 18px;
  box-shadow:
    0 22px 60px rgba(2,6,23,0.14),
    0 8px 18px rgba(2,6,23,0.08);
  backdrop-filter: blur(10px);
  padding: 14px 14px;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.tplead-cookie-title {
  font-weight: 800;
  color: #0f172a;
  font-size: 14px;
  margin-bottom: 2px;
}

.tplead-cookie-desc {
  color: rgba(15,23,42,0.72);
  font-size: 13px;
  line-height: 1.45;
  max-width: 80ch;
}

.tplead-cookie-links {
  margin-top: 6px;
}

.tplead-cookie-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 650;
  font-size: 12.5px;
}
.tplead-cookie-link:hover { text-decoration: underline; }

.tplead-cookie-actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.tplead-cookie-btn {
  border: none;
  cursor: pointer;
  border-radius: 14px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #7c3aed, #2563eb, #06b6d4);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 16px 30px rgba(37,99,235,0.18);
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}
.tplead-cookie-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 38px rgba(37,99,235,0.22);
  filter: brightness(1.02);
}

.tplead-cookie-btn-ghost {
  background: rgba(2,6,23,0.05);
  color: rgba(15,23,42,0.85);
  box-shadow: none;
  border: 1px solid rgba(2,6,23,0.10);
}
.tplead-cookie-btn-ghost:hover {
  transform: translateY(-1px);
  background: rgba(2,6,23,0.07);
}

@media (max-width: 720px) {
  .tplead-cookie-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .tplead-cookie-actions {
    justify-content: flex-end;
  }
}