/* Team Post Kit pricing surfaces.
   This module owns isolated pricing controls and one-time top-up cards. The
   shared glow/button treatment still lives with the broader TPK visual layer
   until that cascade is split in a later pass. */

:root {
  --tpk-active-pill-bg: var(--primary);
  --tpk-active-pill-fg: #04201a;
  --tpk-topup-card-bg: rgba(15, 23, 42, 0.72);
  --tpk-topup-highlight-shadow: 0 18px 44px -28px rgba(var(--primary-rgb), 0.8);
}

/* Billing toggle */
.tpk-billing-toggle {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.3rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
}
.tpk-billing-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.tpk-billing-btn.active {
  background: var(--tpk-active-pill-bg);
  color: var(--tpk-active-pill-fg);
}
.tpk-billing-save {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-pill);
  background: var(--primary-surface-strong);
  color: var(--primary);
}
.tpk-billing-btn.active .tpk-billing-save {
  background: rgba(4, 32, 26, 0.18);
  color: var(--tpk-active-pill-fg);
}

/* Free-trial banner + trust row */
.tpk-plan-trialnote {
  margin: -0.75rem 0 1.1rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}
.tpk-plan-trialnote span { display: block; }
@media (min-width: 760px) {
  .tpk-plan-trialnote { white-space: nowrap; }
}
.tpk-trial-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  max-width: 640px;
  margin: 2rem auto 0;
  padding: 1.1rem 1.35rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(var(--primary-rgb), 0.4);
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(var(--primary-rgb), 0.18), transparent 60%),
    var(--panel);
  box-shadow: 0 18px 46px -28px rgba(var(--primary-rgb), 0.7);
}
.tpk-trial-banner-icon {
  font-size: 1.1rem;
  color: var(--tpk-accent);
  line-height: 1.4;
}
.tpk-trial-banner-copy li strong { color: #fff; font-size: 0.95rem; }
.tpk-trial-banner-copy ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.tpk-trial-banner-copy li { position: relative; padding-left: 1.25rem; font-size: 0.88rem; color: var(--text); }
.tpk-trial-banner-copy li::before { content: "✓"; position: absolute; left: 0; color: var(--primary-light); font-weight: 800; }
.tpk-plans-trust { margin-top: 1.5rem; }

/* One-time credit top-ups */
.tpk-topup-section {
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}
.tpk-topup-head {
  margin-bottom: 1rem;
}
.tpk-topup-head h2 {
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}
.tpk-topup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 760px;
  margin: 0 auto;
}
.tpk-topup-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.35rem 1rem;
  background: var(--tpk-topup-card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 12px);
  text-align: center;
}
.tpk-topup-card.is-highlight {
  border-color: rgba(var(--primary-rgb), 0.8);
  box-shadow: var(--tpk-topup-highlight-shadow);
}
.tpk-topup-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--tpk-active-pill-bg);
  color: var(--tpk-active-pill-fg);
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tpk-topup-name {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
}
.tpk-topup-price {
  color: var(--primary-light);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}
.tpk-topup-card p,
.tpk-topup-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}
.tpk-topup-note {
  margin-top: 0.9rem;
  text-align: center;
}

@media (max-width: 860px) {
  .tpk-topup-grid { grid-template-columns: 1fr; max-width: 380px; }
}

/* Enhanced topup buttons */
.tpk-topup-cta-form .btn-neutral {
  border: 1px solid rgba(var(--primary-rgb), 0.35);
  background: rgba(var(--primary-rgb), 0.1);
  color: #fff;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}
.tpk-topup-cta-form .btn-neutral:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--primary-rgb), 0.8);
  background: rgba(var(--primary-rgb), 0.22);
  box-shadow: 
    0 8px 24px -8px rgba(var(--primary-rgb), 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.tpk-topup-cta-form .btn-neutral:active {
  transform: translateY(0);
  background: rgba(var(--primary-rgb), 0.15);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

.tpk-topup-cta-form .btn-main {
  transition: transform 0.18s ease, box-shadow 0.25s ease;
}
.tpk-topup-cta-form .btn-main:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 24px -8px rgba(var(--primary-rgb), 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.tpk-topup-cta-form .btn-main:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

