/* Trueflix Premium — the resold streaming tiers.

   A full-screen page of its own, so nothing in the site chrome has to move
   for it. Dark surface, teal accents, one card per tier, and the location /
   device block the member has to accept before the pay button wakes up. */

#tf-plans-page {
  --tfp-bg: #05070f;
  --tfp-panel: #0b1726;
  --tfp-panel-2: #07111c;
  --tfp-line: rgba(148, 163, 184, 0.16);
  --tfp-ink: #e2e8f0;
  --tfp-mute: #94a3b8;
  --tfp-teal: #2dd4bf;
  --tfp-teal-2: #5eead4;
  --tfp-coral: #ff7a6e;
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  display: none;
  flex-direction: column;
  background: var(--tfp-bg);
  color: var(--tfp-ink);
  font-family: Figtree, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
#tf-plans-page.is-open { display: flex; }
body.tfp-lock { overflow: hidden !important; }

#tf-plans-page .tfp-top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--tfp-line);
  background: var(--tfp-panel-2);
  flex-shrink: 0;
}
#tf-plans-page .tfp-brand { display: flex; align-items: center; gap: 0.65rem; min-width: 0; }
#tf-plans-page .tfp-mark {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--tfp-teal), #0e7490);
  color: #04212b;
  flex-shrink: 0;
}
#tf-plans-page .tfp-mark svg { width: 1.2rem; height: 1.2rem; }
#tf-plans-page .tfp-title { margin: 0; font-size: 1rem; font-weight: 800; color: #f8fafc; letter-spacing: 0.01em; }
#tf-plans-page .tfp-sub { margin: 0; font-size: 0.72rem; color: var(--tfp-mute); }
#tf-plans-page .tfp-close {
  margin-left: auto;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--tfp-line);
  border-radius: 0.7rem;
  background: transparent;
  color: var(--tfp-ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
#tf-plans-page .tfp-close:hover { background: rgba(148, 163, 184, 0.12); }

#tf-plans-page .tfp-body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; }
#tf-plans-page .tfp-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.6rem 1.1rem 4rem;
}

/* hero */
#tf-plans-page .tfp-hero { max-width: 780px; margin-bottom: 1.6rem; }
#tf-plans-page .tfp-kicker {
  margin: 0 0 0.5rem;
  font-family: Unbounded, Syne, sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tfp-teal);
}
#tf-plans-page .tfp-h1 {
  margin: 0 0 0.75rem;
  font-family: Unbounded, Syne, sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.35rem);
  line-height: 1.15;
  font-weight: 700;
  color: #f8fafc;
}
#tf-plans-page .tfp-h1 span { color: var(--tfp-teal-2); }
#tf-plans-page .tfp-lede { margin: 0 0 1rem; font-size: 0.95rem; line-height: 1.65; color: #cbd5e1; }
#tf-plans-page .tfp-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
#tf-plans-page .tfp-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--tfp-line);
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.06);
  font-size: 0.76rem;
  font-weight: 600;
  color: #d1fae5;
}
#tf-plans-page .tfp-chip svg { width: 0.85rem; height: 0.85rem; color: var(--tfp-teal); }

/* active subscription */
#tf-plans-page .tfp-active {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1.4rem;
  border: 1px solid rgba(45, 212, 191, 0.35);
  border-radius: 1rem;
  background: linear-gradient(120deg, rgba(45, 212, 191, 0.13), rgba(45, 212, 191, 0.02));
}
#tf-plans-page .tfp-active-mark {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  background: var(--tfp-teal);
  color: #04212b;
  flex-shrink: 0;
}
#tf-plans-page .tfp-active-mark svg { width: 1.25rem; height: 1.25rem; }
#tf-plans-page .tfp-active-txt { min-width: 0; }
#tf-plans-page .tfp-active-name { margin: 0; font-weight: 700; color: #f0fdfa; }
#tf-plans-page .tfp-active-meta { margin: 0.15rem 0 0; font-size: 0.78rem; color: #a7f3d0; }
#tf-plans-page .tfp-active-flag {
  margin-left: auto;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: var(--tfp-teal);
  color: #04212b;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* billing switch */
#tf-plans-page .tfp-billing {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.28rem;
  margin-bottom: 1.1rem;
  border: 1px solid var(--tfp-line);
  border-radius: 999px;
  background: var(--tfp-panel-2);
}
#tf-plans-page .tfp-seg {
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  background: transparent;
  color: var(--tfp-mute);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
#tf-plans-page .tfp-seg em {
  font-style: normal;
  font-size: 0.66rem;
  font-weight: 800;
  color: var(--tfp-teal);
  margin-left: 0.3rem;
}
#tf-plans-page .tfp-seg.is-on { background: var(--tfp-teal); color: #04212b; }
#tf-plans-page .tfp-seg.is-on em { color: #065f5b; }

/* tier grid */
#tf-plans-page .tfp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-bottom: 1.6rem;
}
#tf-plans-page .tfp-tier {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.15rem 1.15rem;
  border: 1px solid var(--tfp-line);
  border-radius: 1.25rem;
  background: linear-gradient(180deg, var(--tfp-panel), var(--tfp-panel-2));
}
#tf-plans-page .tfp-tier.is-pop { border-color: rgba(45, 212, 191, 0.45); }
#tf-plans-page .tfp-tier.is-on {
  border-color: var(--tfp-teal);
  box-shadow: 0 0 0 1px var(--tfp-teal), 0 18px 40px rgba(45, 212, 191, 0.12);
}
#tf-plans-page .tfp-pop,
#tf-plans-page .tfp-badge {
  position: absolute;
  top: -0.7rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
#tf-plans-page .tfp-pop { left: 1.1rem; background: var(--tfp-teal); color: #04212b; }
#tf-plans-page .tfp-badge { right: 1.1rem; background: #1e293b; color: #cbd5e1; }
#tf-plans-page .tfp-tier-name { margin: 0.35rem 0 0.2rem; font-size: 1.08rem; font-weight: 700; color: #f8fafc; }
#tf-plans-page .tfp-tier-tag { margin: 0 0 0.85rem; font-size: 0.78rem; color: var(--tfp-mute); min-height: 1.1rem; }
#tf-plans-page .tfp-price {
  margin: 0;
  font-family: Unbounded, Syne, sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
#tf-plans-page .tfp-price small { font-size: 0.72rem; font-weight: 600; color: var(--tfp-mute); margin-left: 0.3rem; }
#tf-plans-page .tfp-local { margin: 0.35rem 0 0; font-size: 0.72rem; color: #7dd3fc; }
#tf-plans-page .tfp-feats { list-style: none; margin: 1rem 0 1.2rem; padding: 0; flex: 1 1 auto; }
#tf-plans-page .tfp-feats li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  padding: 0.3rem 0;
  font-size: 0.83rem;
  line-height: 1.45;
  color: #cbd5e1;
}
#tf-plans-page .tfp-feats svg { width: 0.95rem; height: 0.95rem; margin-top: 0.16rem; color: var(--tfp-teal); flex-shrink: 0; }
#tf-plans-page .tfp-pick {
  border: 1px solid var(--tfp-teal);
  border-radius: 0.8rem;
  padding: 0.7rem 0.9rem;
  background: transparent;
  color: var(--tfp-teal-2);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}
#tf-plans-page .tfp-pick:hover { background: rgba(45, 212, 191, 0.12); }
#tf-plans-page .tfp-pick.is-on { background: var(--tfp-teal); color: #04212b; }
#tf-plans-page .tfp-pick.is-cur,
#tf-plans-page .tfp-pick:disabled { opacity: 0.55; cursor: default; border-color: var(--tfp-line); color: var(--tfp-mute); }

/* panels */
#tf-plans-page .tfp-panel {
  padding: 1.4rem 1.25rem;
  border: 1px solid var(--tfp-line);
  border-radius: 1.25rem;
  background: linear-gradient(180deg, var(--tfp-panel), var(--tfp-panel-2));
  margin-bottom: 1.2rem;
}
#tf-plans-page .tfp-panel-head h2 { margin: 0.3rem 0 0.35rem; font-size: 1.15rem; font-weight: 700; color: #f8fafc; }
#tf-plans-page .tfp-panel-head p { margin: 0; font-size: 0.85rem; line-height: 1.6; color: var(--tfp-mute); }
#tf-plans-page .tfp-muted { color: var(--tfp-mute); font-size: 0.88rem; }
#tf-plans-page .tfp-flag { color: var(--tfp-coral); font-size: 0.88rem; margin: 0 0 0.8rem; }

/* the verified-withdrawal lock */
#tf-plans-page .tfp-gate { border-color: rgba(45, 212, 191, 0.3); }
#tf-plans-page .tfp-gate h2 { margin: 0.3rem 0 0.6rem; font-size: 1.3rem; font-weight: 700; color: #f8fafc; }
#tf-plans-page .tfp-gate > p { margin: 0 0 0.9rem; font-size: 0.9rem; line-height: 1.65; color: #cbd5e1; }
#tf-plans-page .tfp-gate-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.1rem; }
#tf-plans-page .tfp-gate-row .tfp-btn { margin-right: 0; }

/* numbered how-to, shared by the lock and the shortfall block */
#tf-plans-page .tfp-steps {
  counter-reset: tfp-step;
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
}
#tf-plans-page .tfp-steps li {
  position: relative;
  padding: 0.3rem 0 0.3rem 2.1rem;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #cbd5e1;
}
#tf-plans-page .tfp-steps li::before {
  counter-increment: tfp-step;
  content: counter(tfp-step);
  position: absolute;
  left: 0;
  top: 0.28rem;
  width: 1.45rem;
  height: 1.45rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.14);
  color: var(--tfp-teal-2);
  font-size: 0.72rem;
  font-weight: 800;
}
#tf-plans-page .tfp-steps li b { color: #f1f5f9; }

/* the terms step — what is about to be charged and on what terms */
#tf-plans-page .tfp-terms-list { margin: 0.4rem 0 1.2rem; }
#tf-plans-page .tfp-terms-list li { padding: 0.4rem 0; }
#tf-plans-page .tfp-terms-list li span { color: #cbd5e1; }
#tf-plans-page .tfp-terms-list li b { color: #f1f5f9; }

/* shortfall block — the way to fill the wallet before activating */
#tf-plans-page .tfp-topup {
  margin: 0.2rem 0 1.2rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 122, 110, 0.4);
  border-radius: 0.9rem;
  background: rgba(255, 122, 110, 0.08);
}
#tf-plans-page .tfp-topup p { margin: 0; font-size: 0.88rem; line-height: 1.6; color: #fecaca; }
#tf-plans-page .tfp-topup p b { color: #fff; }
#tf-plans-page .tfp-topup .tfp-steps { margin-top: 0.6rem; }
#tf-plans-page .tfp-topup .tfp-steps li { color: #fee2e2; }
#tf-plans-page .tfp-topup .tfp-steps li::before { background: rgba(255, 122, 110, 0.2); color: #fecaca; }

#tf-plans-page .tfp-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.6rem;
  margin: 1.1rem 0 1.2rem;
}
#tf-plans-page .tfp-fact {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--tfp-line);
  border-radius: 0.85rem;
  background: rgba(148, 163, 184, 0.05);
}
#tf-plans-page .tfp-fact span {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tfp-mute);
  margin-bottom: 0.2rem;
}
#tf-plans-page .tfp-fact b { font-size: 0.9rem; color: #f1f5f9; font-weight: 700; }

#tf-plans-page .tfp-field { display: block; margin-bottom: 0.9rem; }
#tf-plans-page .tfp-field > span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tfp-mute);
  margin-bottom: 0.35rem;
}
#tf-plans-page .tfp-field select,
#tf-plans-page .tfp-field input {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--tfp-line);
  border-radius: 0.8rem;
  background: #060d18;
  color: var(--tfp-ink);
  font: inherit;
  font-size: 0.9rem;
  outline: none;
}
#tf-plans-page .tfp-field select:focus,
#tf-plans-page .tfp-field input:focus { border-color: var(--tfp-teal); }

#tf-plans-page .tfp-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.85rem 0.9rem;
  margin-bottom: 1rem;
  border: 1px solid var(--tfp-line);
  border-radius: 0.9rem;
  background: rgba(45, 212, 191, 0.04);
  font-size: 0.88rem;
  color: #e2e8f0;
  cursor: pointer;
}
#tf-plans-page .tfp-check input { width: 1.05rem; height: 1.05rem; margin-top: 0.1rem; accent-color: var(--tfp-teal); }

#tf-plans-page .tfp-pay-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding-top: 0.4rem;
}
#tf-plans-page .tfp-pay-info { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; flex: 1 1 240px; }
#tf-plans-page .tfp-pay-tier { font-size: 0.95rem; font-weight: 700; color: #f8fafc; }
#tf-plans-page .tfp-pay-amt { font-size: 0.82rem; color: var(--tfp-teal-2); }
#tf-plans-page .tfp-wallet { font-size: 0.78rem; color: var(--tfp-mute); }
#tf-plans-page .tfp-wallet b { color: #f1f5f9; }
#tf-plans-page .tfp-pay {
  border: 0;
  border-radius: 0.85rem;
  padding: 0.85rem 1.3rem;
  background: linear-gradient(120deg, var(--tfp-teal), #0d9488);
  color: #04212b;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
#tf-plans-page .tfp-pay:hover { filter: brightness(1.08); }
#tf-plans-page .tfp-pay:disabled { opacity: 0.45; cursor: not-allowed; filter: none; }
#tf-plans-page .tfp-fine { margin: 1.1rem 0 0; font-size: 0.75rem; line-height: 1.6; color: #64748b; }
#tf-plans-page .tfp-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--tfp-teal-2);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
#tf-plans-page .tfp-link:hover { text-decoration: underline; }
#tf-plans-page .tfp-neg { color: var(--tfp-coral); }

/* sign-in / done */
#tf-plans-page .tfp-signin h2,
#tf-plans-page .tfp-done h2 { margin: 0 0 0.5rem; font-size: 1.3rem; font-weight: 700; color: #f8fafc; }
#tf-plans-page .tfp-signin p,
#tf-plans-page .tfp-done p { margin: 0 0 1rem; font-size: 0.9rem; line-height: 1.6; color: var(--tfp-mute); }
#tf-plans-page .tfp-done {
  padding: 1.5rem 1.3rem;
  margin-bottom: 1.4rem;
  border: 1px solid rgba(45, 212, 191, 0.45);
  border-radius: 1.25rem;
  background: linear-gradient(120deg, rgba(45, 212, 191, 0.16), rgba(45, 212, 191, 0.03));
}
#tf-plans-page .tfp-done b { color: #f0fdfa; }
#tf-plans-page .tfp-done-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
#tf-plans-page .tfp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--tfp-line);
  border-radius: 0.8rem;
  padding: 0.65rem 1rem;
  background: transparent;
  color: var(--tfp-ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  margin-right: 0.5rem;
}
#tf-plans-page .tfp-btn:hover { background: rgba(148, 163, 184, 0.12); }
#tf-plans-page .tfp-btn.is-primary { border: 0; background: var(--tfp-teal); color: #04212b; }

/* toast */
.tfp-toast {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  z-index: 2147483646;
  max-width: min(92vw, 460px);
  padding: 0.75rem 1rem;
  border-radius: 0.85rem;
  font-family: Figtree, system-ui, sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.tfp-toast.is-good { background: #0f766e; color: #ecfeff; }
.tfp-toast.is-bad { background: #7f1d1d; color: #fee2e2; }

/* watch-page pill */
#tf-plans-adfree {
  position: fixed;
  left: 1.1rem;
  bottom: 1.1rem;
  z-index: 2147483003;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: rgba(5, 7, 15, 0.9);
  color: #e2e8f0;
  font: 700 0.72rem Figtree, system-ui, sans-serif;
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(6px);
}
#tf-plans-adfree .tfp-pill-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #64748b;
  flex-shrink: 0;
}
#tf-plans-adfree .tfp-pill-s {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}
#tf-plans-adfree.is-on { border-color: rgba(45, 212, 191, 0.5); color: #ccfbf1; }
#tf-plans-adfree.is-on .tfp-pill-dot { background: #2dd4bf; box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.2); }
#tf-plans-adfree.is-on .tfp-pill-s { color: #5eead4; }

/* nav entry */
[data-tf-plans-open].tfp-nav-on { color: #5eead4 !important; }

@media (max-width: 640px) {
  #tf-plans-page .tfp-wrap { padding: 1.1rem 0.85rem 3.5rem; }
  #tf-plans-page .tfp-pay-row { flex-direction: column; align-items: stretch; }
  #tf-plans-page .tfp-pay { width: 100%; text-align: center; }
}
