/* eLink Signature — plan states + conversion surfaces (announcement bar,
 * PRO badges, Pro-locks, trial popup, plan chooser). Loads after app.css. */

/* plan visibility gates: body gets plan-free OR plan-paidlike (trial+paid) */
body.plan-paidlike .free-only { display: none !important; }
body.plan-free .paid-only { display: none !important; }

/* ---- announcement bar (free plan, dismissible) ---- */
.announce-bar {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #eef4ff; border-bottom: 1px solid #dbe7ff;
  padding: 9px 40px 9px 16px; font-size: 12.5px; font-weight: 600; color: var(--ink);
  position: relative; z-index: 31;
}
.announce-bar button.bar-cta { border: 0; background: none; font: inherit; color: var(--ink); cursor: pointer; }
.announce-bar .bar-x {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  border: 0; background: none; color: var(--ink-2); font-size: 14px; padding: 4px 8px;
}

/* ---- PRO badge chip ---- */
.pro-badge {
  display: inline-flex; align-items: center; gap: 3px;
  background: #e7efff; color: #1d5fd0; border-radius: 999px;
  font-size: 9.5px; font-weight: 800; letter-spacing: .04em;
  padding: 3px 9px; vertical-align: 2px;
}
.pro-badge::after { content: '✦'; font-size: 8px; }

/* ---- Remove Watermark card ---- */
.rw-card {
  display: flex; align-items: center; gap: 11px;
  border: 1.5px solid #b9d2ff; border-radius: 12px; background: #fff;
  padding: 10px 12px; box-shadow: 0 0 0 3px rgba(47, 125, 246, .07);
}
.rw-ic {
  width: 32px; height: 32px; border-radius: 9px; background: var(--blue-soft); color: var(--blue);
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.rw-txt { flex: 1; min-width: 0; }
.rw-txt b { font-size: 12.5px; display: inline-flex; align-items: center; gap: 7px; }
.rw-txt small { display: block; color: var(--ink-2); font-size: 10.5px; margin-top: 1px; }
.rw-toggle {
  width: 34px; height: 19px; border-radius: 999px; background: #d8dee9; border: 0;
  position: relative; flex: 0 0 auto; cursor: pointer;
}
.rw-toggle::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 13px; height: 13px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}

/* ---- Pro-locked analytics overlay ---- */
.ana-prolock {
  position: absolute; inset: 0; z-index: 2; display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  text-align: center; padding: 20px;
}
body.plan-free .ana-prolock { display: flex; }
body.plan-free .ana-card .ana-live, body.plan-free .ana-card .ana-overlay { display: none !important; }
body.plan-free .ana-card .ana-blur { display: flex !important; }
.lock-circle {
  width: 34px; height: 34px; border-radius: 50%; background: #e8edf5; color: #475569;
  display: inline-flex; align-items: center; justify-content: center;
}
.ana-prolock b { font-size: 14.5px; }
.ana-prolock span { color: var(--ink-2); font-size: 12px; }
.unlock-btn {
  margin-top: 6px; border: 0; border-radius: 999px; padding: 8px 16px;
  background: var(--grad); color: #fff; font-weight: 700; font-size: 12px;
  display: inline-flex; align-items: center; gap: 7px;
  box-shadow: 0 5px 14px rgba(47, 125, 246, .35);
}
.prolock-box {
  border: 1.5px dashed #d3dced; border-radius: 12px; background: #f8fafc;
  padding: 26px 16px; text-align: center; color: var(--ink-2); font-size: 12.5px;
  display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 14px;
}

/* ---- popup shell ---- */
.pw-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(240, 244, 251, .55); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px);
  display: flex; align-items: center; justify-content: center; padding: 18px; overflow-y: auto;
}
.pw-modal {
  position: relative; background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 90px rgba(15, 23, 42, .25); max-width: calc(100vw - 24px);
  margin: auto;
}
.pw-x {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--ink-2); font-size: 13px; line-height: 1;
}

/* trial offer modal */
.pw-trial { display: flex; width: 720px; }
.pwt-left { flex: 1 1 52%; padding: 24px 26px; min-width: 0; }
.pwt-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pwt-pill {
  background: var(--grad); color: #fff; border-radius: 999px;
  font-size: 10.5px; font-weight: 800; padding: 4px 12px;
}
.pwt-cancel { color: #1d5fd0; font-size: 11.5px; font-weight: 600; }
.pwt-title { font-size: 21px; font-weight: 800; margin-bottom: 6px; }
.pwt-title b { color: #2f7df6; }
.pwt-sub { color: var(--ink-2); font-size: 12px; margin-bottom: 14px; }
.pwt-sig {
  border: 1px solid var(--line); border-radius: 12px; padding: 10px;
  margin-bottom: 14px; overflow: hidden; display: flex; justify-content: center;
}
.pwt-sig .sig-inner { display: block; transform-origin: center center; }
.pwt-feat { display: flex; gap: 11px; margin-bottom: 13px; }
.pwt-feat i {
  width: 30px; height: 30px; border-radius: 9px; flex: 0 0 auto; font-style: normal;
  background: var(--blue-soft); color: var(--blue);
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px;
}
.pwt-feat b { font-size: 12.5px; display: block; margin-bottom: 2px; }
.pwt-feat span { font-size: 11.5px; color: var(--ink-2); line-height: 1.55; }
.pwt-ctas { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.pwt-accept {
  border: 0; border-radius: 999px; padding: 11px 18px;
  background: var(--grad); color: #fff; font-weight: 700; font-size: 13px;
  box-shadow: 0 6px 16px rgba(47, 125, 246, .35);
}
.pwt-timer {
  border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px;
  font-size: 12px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums;
}
.pwt-foot { color: var(--ink-2); font-size: 10.5px; margin-top: 10px; }
.pwt-right {
  flex: 1 1 48%; background: #0b1020; color: #fff; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 26px; text-align: center; min-height: 380px;
  background:
    radial-gradient(360px 260px at 50% 42%, rgba(56, 132, 255, .5), transparent 70%),
    #0b1020;
}
.pwt-right h3 {
  font-size: 34px; font-weight: 800;
  background: linear-gradient(100deg, #7cc6ff, #3b82f6 55%, #a78bfa);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pwt-shot {
  margin-top: 18px; width: 82%; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06); padding: 10px; font-size: 10px; color: #cbd5e1;
}
.pwt-domain {
  margin-top: 18px; background: rgba(255, 255, 255, .14); border-radius: 999px;
  padding: 6px 14px; font-size: 11px; color: #e2e8f0;
}

/* plan chooser modal */
.pw-plans { width: 800px; padding: 26px 28px; }
.pwp-title { text-align: center; font-size: 26px; font-weight: 800; }
.pwp-title b { color: #2f7df6; }
.pwp-sub { text-align: center; color: var(--ink-2); font-size: 13px; margin: 4px 0 16px; }
.qty-wrap { border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 10px; margin-bottom: 14px; position: relative; }
.qty-chip {
  position: absolute; top: -10px; left: 14px; background: #eef4ff; border: 1px solid #cfe1ff;
  border-radius: 7px; font-size: 10.5px; font-weight: 700; color: #1d5fd0; padding: 2px 8px;
}
.qty-wrap input[type=range] { width: 100%; accent-color: var(--blue); }
.qty-ticks { display: flex; justify-content: space-between; font-size: 9px; color: var(--ink-2); margin-top: 4px; }
.cycle-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 16px; font-size: 12.5px; font-weight: 600; }
.save-chip { background: #eef4ff; color: #1d5fd0; border-radius: 7px; font-size: 10.5px; font-weight: 700; padding: 3px 8px; }
.plan-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pcard { border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.pcard.hot {
  border-color: #b9d2ff;
  background: linear-gradient(150deg, #f4f8ff, #eef2ff 60%, #f6f9ff);
  box-shadow: 0 12px 34px rgba(47, 125, 246, .13);
}
.pcard h4 { font-size: 17px; }
.pcard .pc-sigs { font-size: 11.5px; color: var(--ink-2); margin: 3px 0 2px; }
.pcard .pc-grn { color: #1d5fd0; font-size: 11px; font-weight: 600; margin-bottom: 12px; }
.pc-price { font-size: 30px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.pc-price s { color: var(--ink-2); font-size: 13px; font-weight: 600; }
.pc-free-chip { background: var(--grad); color: #fff; border-radius: 999px; font-size: 10px; font-weight: 700; padding: 4px 10px; }
.pc-cycle { font-size: 10.5px; color: var(--ink-2); margin: 2px 0 8px; }
.pc-desc { font-size: 11.5px; color: var(--ink-2); line-height: 1.6; margin-bottom: 12px; }
.pc-cta {
  width: 100%; border: 0; border-radius: 999px; padding: 11px;
  background: var(--grad); color: #fff; font-weight: 700; font-size: 13px;
  box-shadow: 0 6px 16px rgba(47, 125, 246, .3); margin-bottom: 14px;
}
.pc-cta.ghost { background: #fff; color: #1d5fd0; border: 1.5px solid #b9d2ff; box-shadow: none; }
.pc-contact { font-size: 34px; font-weight: 800; margin: 6px 0 4px; }
.pc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.pc-list li { display: flex; align-items: center; gap: 8px; font-size: 11.5px; }
.pc-list li::before {
  content: '✓'; flex: 0 0 auto; width: 14px; height: 14px; border-radius: 50%;
  background: var(--grad); color: #fff; font-size: 9px; line-height: 14px; text-align: center;
}
.pc-list li.na { color: var(--ink-2); }
.pc-list li.na::before { content: '—'; background: #e2e8f0; color: #94a3b8; }
.pc-plus { border-top: 1px solid var(--line); margin: 12px 0 10px; padding-top: 10px; font-size: 12px; font-weight: 700; }

@media (max-width: 860px) {
  .pw-trial { width: 100%; flex-direction: column; }
  .pwt-right { min-height: 220px; }
  .pw-plans { width: 100%; }
  .plan-cards { grid-template-columns: 1fr; }
}
