/* ============================================================
   UCAM Plans Table & Upgrade Modal
   ============================================================ */

/* ── Billing toggle ──────────────────────────────────────── */
.ucam-billing-toggle {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 0 auto 32px;
  border: 2px solid #2271b1;
  border-radius: 50px;
  width: fit-content;
  overflow: hidden;
}
.ucam-toggle-btn {
  background: transparent;
  border: none;
  color: #2271b1;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 22px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background .15s, color .15s;
}
.ucam-toggle-btn--active {
  background: #2271b1;
  color: #fff;
}
.ucam-save-badge {
  background: #00a32a;
  color: #fff;
  border-radius: 50px;
  font-size: 11px;
  padding: 2px 8px;
  font-weight: 700;
}

/* ── Plan grid ────────────────────────────────────────────── */
.ucam-plans-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  font-family: inherit;
}
.ucam-plan-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.ucam-plan-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 28px 24px 24px;
  flex: 1 1 240px;
  max-width: 300px;
  position: relative;
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.ucam-plan-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
  transform: translateY(-2px);
}
.ucam-plan-card--featured {
  border: 2px solid #2271b1;
  box-shadow: 0 4px 24px rgba(34,113,177,.18);
}
.ucam-plan-card--hidden {
  display: none;
}

/* ── Plan card badge ──────────────────────────────────────── */
.ucam-plan-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 50px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.ucam-plan-card__badge--popular {
  background: #2271b1;
  color: #fff;
}
.ucam-plan-card__badge--save {
  background: #00a32a;
  color: #fff;
}

/* ── Plan card content ────────────────────────────────────── */
.ucam-plan-card__icon {
  margin-bottom: 12px;
}
.ucam-plan-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}
.ucam-plan-card__name {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px;
}
.ucam-plan-card__price {
  margin-bottom: 8px;
}
.ucam-plan-card__amount {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}
.ucam-plan-card__amount--free {
  color: #00a32a;
}
.ucam-plan-card__currency {
  font-size: 18px;
  vertical-align: super;
}
.ucam-plan-card__cycle {
  font-size: 13px;
  color: #787c82;
  margin-left: 2px;
}
.ucam-plan-card__trial {
  font-size: 12px;
  color: #00a32a;
  font-weight: 600;
  margin: 4px 0 12px;
}
.ucam-plan-card__features {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  flex: 1;
  font-size: 13px;
  color: #444;
  line-height: 2;
}
.ucam-plan-card__features li::before {
  content: "✓ ";
  color: #00a32a;
  font-weight: 700;
}
.ucam-feature--highlighted {
  font-weight: 700;
  color: #2271b1;
}
.ucam-plan-card__cta {
  margin-top: auto;
}

/* ── Buttons ──────────────────────────────────────────────── */
.ucam-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 11px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
  box-sizing: border-box;
}
.ucam-btn--primary {
  background: #2271b1;
  color: #fff;
  border-color: #2271b1;
}
.ucam-btn--primary:hover {
  background: #135e96;
  border-color: #135e96;
  color: #fff;
}
.ucam-btn--secondary {
  background: transparent;
  color: #2271b1;
  border-color: #2271b1;
}
.ucam-btn--secondary:hover {
  background: #2271b1;
  color: #fff;
}
.ucam-btn--current {
  background: #f0f0f1;
  color: #787c82;
  border-color: #ddd;
  cursor: default;
}

/* ── Upgrade modal ────────────────────────────────────────── */
.ucam-modal {
  position: fixed;
  inset: 0;
  z-index: 999990;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ucam-modal[hidden] {
  display: none;
}
.ucam-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(3px);
}
.ucam-modal__box {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 36px 32px 28px;
  max-width: 520px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  text-align: center;
  z-index: 1;
}
.ucam-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #787c82;
  padding: 4px 8px;
}
.ucam-modal__icon {
  font-size: 40px;
  margin-bottom: 12px;
}
.ucam-modal__title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
}
.ucam-modal__subtitle {
  color: #787c82;
  margin: 0 0 20px;
  font-size: 14px;
}
.ucam-modal__plans {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  margin-bottom: 16px;
}
.ucam-modal-plan {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ucam-modal-plan__name {
  font-weight: 600;
  font-size: 15px;
}
.ucam-modal-plan__meta {
  font-size: 12px;
  color: #787c82;
}
.ucam-modal-plan__price {
  font-size: 18px;
  font-weight: 700;
  color: #2271b1;
  white-space: nowrap;
}
.ucam-modal-plan__btn {
  background: #2271b1;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.ucam-modal-plan__btn:hover {
  background: #135e96;
  color: #fff;
}
.ucam-modal__manage {
  font-size: 13px;
  color: #787c82;
  margin: 0;
}
.ucam-modal__manage a {
  color: #2271b1;
}

/* ── Access gate sticky bar ───────────────────────────────── */
.ucam-gate-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99900;
  background: #1d2327;
  color: #fff;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 -2px 12px rgba(0,0,0,.3);
  transform: translateY(100%);
  transition: transform .3s ease;
}
.ucam-gate-sticky--visible {
  transform: translateY(0);
}
.ucam-gate-sticky__text {
  font-size: 14px;
  font-weight: 500;
}
.ucam-gate-sticky__text strong {
  color: #72aee6;
}
.ucam-gate-sticky__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.ucam-gate-sticky__btn {
  background: #2271b1;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.ucam-gate-sticky__btn:hover {
  background: #135e96;
  color: #fff;
}
.ucam-gate-sticky__dismiss {
  background: transparent;
  border: 1px solid #72aee6;
  color: #72aee6;
  border-radius: 5px;
  padding: 8px 14px;
  font-size: 12px;
  cursor: pointer;
}

/* ── Annual nudge banner ──────────────────────────────────── */
.ucam-annual-nudge {
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f3ff 100%);
  border: 1px solid #b3d1f0;
  border-left: 4px solid #2271b1;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.ucam-annual-nudge__icon {
  font-size: 28px;
  flex-shrink: 0;
}
.ucam-annual-nudge__body {
  flex: 1;
}
.ucam-annual-nudge__title {
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 4px;
}
.ucam-annual-nudge__desc {
  font-size: 13px;
  color: #555;
  margin: 0;
}
.ucam-annual-nudge__cta {
  background: #2271b1;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}
.ucam-annual-nudge__cta:hover {
  background: #135e96;
  color: #fff;
}
.ucam-annual-nudge__close {
  background: none;
  border: none;
  cursor: pointer;
  color: #787c82;
  font-size: 16px;
  padding: 0 4px;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .ucam-plan-grid {
    flex-direction: column;
    align-items: center;
  }
  .ucam-plan-card {
    max-width: 100%;
    width: 100%;
  }
  .ucam-modal__box {
    padding: 28px 18px 20px;
  }
  .ucam-gate-sticky {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .ucam-billing-toggle {
    width: 100%;
    justify-content: center;
  }
}
