/* ============================================================================
   Subscription / Trial — full-screen lock (paywall) + phone-verification UI.
   Premium navy/gold/silver shell. Pure presentation; access truth is server-side.
   Overlays are hidden by default (display:none) and toggled by subscription-guard.js.
   ============================================================================ */

.bpro-sub-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(180deg, #182A49 0%, #14233D 100%);
  overflow-y: auto;
}
.bpro-sub-overlay.show { display: flex; }

.bpro-sub-card {
  width: 560px;
  max-width: 100%;
  background: #FFFFFF;
  border-radius: 18px;
  border: 1px solid rgba(212, 175, 55, 0.30);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45);
  padding: 30px 30px 26px;
  margin: auto;
}

.bpro-sub-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.bpro-sub-brand-badge {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 11px;
  background: linear-gradient(180deg, #182A49 0%, #14233D 100%);
  border: 1.5px solid #D4AF37;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 19px;
  color: #D4AF37;
}
.bpro-sub-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 17px; font-weight: 700; color: #14233D;
}

.bpro-sub-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 800; color: #14233D;
  margin-bottom: 8px;
}
.bpro-sub-text {
  font-size: 14px; color: #475569; line-height: 1.55;
  margin-bottom: 20px;
}

/* plan cards */
.bpro-sub-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
@media (max-width: 520px) { .bpro-sub-plans { grid-template-columns: 1fr; } }

.bpro-sub-plan {
  position: relative;
  border: 1.5px solid rgba(20, 35, 61, 0.12);
  border-radius: 14px;
  padding: 16px 16px 15px;
  cursor: pointer;
  background: #FBFCFE;
  transition: border-color .15s, box-shadow .15s, transform .12s;
}
.bpro-sub-plan:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10); }
.bpro-sub-plan.selected {
  border-color: #D4AF37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
  background: #FFFDF6;
}
.bpro-sub-plan-name { font-size: 13px; font-weight: 700; color: #64748B; margin-bottom: 4px; }
.bpro-sub-plan-price { font-size: 22px; font-weight: 800; color: #14233D; }
.bpro-sub-plan-price small { font-size: 13px; font-weight: 600; color: #64748B; }
.bpro-sub-plan-save {
  position: absolute; top: 12px; right: 12px;
  font-size: 10.5px; font-weight: 800; color: #14233D;
  background: linear-gradient(160deg, #F2DF9C 0%, #E3C25C 45%, #D4AF37 75%, #B8942E 100%);
  border-radius: 7px; padding: 3px 8px;
}

/* buttons */
.bpro-sub-actions { display: flex; flex-direction: column; gap: 9px; }
.bpro-sub-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px 16px;
  border-radius: 11px; border: none; cursor: pointer;
  font-family: inherit; font-size: 14.5px; font-weight: 700;
  transition: background .15s, box-shadow .15s, transform .1s;
}
.bpro-sub-btn-primary {
  color: #14233D;
  background: linear-gradient(160deg, #F2DF9C 0%, #E3C25C 45%, #D4AF37 75%, #B8942E 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 6px 16px rgba(184, 148, 46, 0.35);
}
.bpro-sub-btn-primary:hover { transform: translateY(-1px); }
.bpro-sub-btn-secondary {
  color: #14233D;
  background: linear-gradient(180deg, #F2F5F8 0%, #DDE3EA 55%, #CBD3DD 100%);
  border: 1px solid #B6BFCB;
}
.bpro-sub-btn-ghost {
  color: #64748B; background: transparent; border: 1px solid rgba(20, 35, 61, 0.14);
}

.bpro-sub-trust {
  margin-top: 16px;
  font-size: 12px; color: #64748B; line-height: 1.5; text-align: center;
}

.bpro-sub-row { display: flex; gap: 9px; }
.bpro-sub-row .bpro-sub-btn { flex: 1; }

/* phone-verification fields */
.bpro-sub-field { margin-bottom: 12px; }
.bpro-sub-label { display: block; font-size: 12px; font-weight: 700; color: #475569; margin-bottom: 5px; }
.bpro-sub-input {
  width: 100%; padding: 12px 14px;
  border: 1px solid rgba(20, 35, 61, 0.18); border-radius: 10px;
  font-family: inherit; font-size: 15px; color: #14233D; outline: none;
  background: #fff;
}
.bpro-sub-input:focus { border-color: #D4AF37; box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15); }

.bpro-sub-note {
  font-size: 12px; line-height: 1.5; padding: 10px 12px; border-radius: 10px;
  margin-bottom: 12px;
}
.bpro-sub-note-warn { color: #8A6E2F; background: rgba(212, 175, 55, 0.10); border: 1px dashed rgba(212, 175, 55, 0.45); }
.bpro-sub-note-info { color: #475569; background: #F1F5F9; border: 1px solid rgba(20, 35, 61, 0.08); }
.bpro-sub-note-error { color: #991B1B; background: rgba(153, 27, 27, 0.06); border: 1px solid rgba(153, 27, 27, 0.20); }

/* recurring-billing consent */
.bpro-sub-consent {
  font-size: 11.5px; color: #64748B; line-height: 1.5;
  background: #F1F5F9; border: 1px solid rgba(20, 35, 61, 0.08);
  border-radius: 10px; padding: 10px 12px; margin-bottom: 14px;
}

/* subscription management rows */
.bpro-sub-manage { margin: 4px 0 14px; }
.bpro-sub-manage-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 2px; border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 13.5px;
}
.bpro-sub-manage-row span { color: #64748B; }
.bpro-sub-manage-row strong { color: #14233D; font-weight: 700; }

/* legal / support links */
.bpro-sub-legal {
  display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.bpro-sub-legal a {
  font-size: 11.5px; color: #64748B; text-decoration: none; font-weight: 600;
}
.bpro-sub-legal a:hover { color: #14233D; text-decoration: underline; }

.bpro-sub-hidden { display: none !important; }
