/* ============================================================
   plans.css — Trial banner · Pricing cards · Lock screen
   ============================================================ */

/* ══════════════════════════════════════════════════════════
   HEADER PLAN BADGE
   Tiny pill next to the username — PRO (purple) or Xd (amber)
══════════════════════════════════════════════════════════ */
.header-plan-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .4px;
  line-height: 1.6;
  text-transform: uppercase;
}
.header-plan-badge--pro {
  background: rgba(124, 58, 237, .15);
  color: #7c3aed;
}
[data-theme="purple"] .header-plan-badge--pro,
[data-theme="dark"]   .header-plan-badge--pro {
  background: rgba(167, 139, 250, .2);
  color: #a78bfa;
}
.header-plan-badge--trial {
  background: rgba(245, 158, 11, .13);
  color: #b45309;
}
[data-theme="purple"] .header-plan-badge--trial,
[data-theme="dark"]   .header-plan-badge--trial {
  background: rgba(251, 191, 36, .15);
  color: #fbbf24;
}

/* ══════════════════════════════════════════════════════════
   PROFILE PLAN CARD
══════════════════════════════════════════════════════════ */
.plan-profile-table {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.plan-profile-row {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  font-size: var(--text-sm);
}
.plan-profile-row:last-child { border-bottom: none; }

.plan-profile-label {
  width: 110px;
  flex-shrink: 0;
  color: var(--text-2);
}

.plan-profile-value {
  color: var(--text-1);
  font-weight: 600;
}

.plan-profile-active {
  color: #059669;
  font-weight: 600;
}
[data-theme="purple"] .plan-profile-active,
[data-theme="dark"]   .plan-profile-active {
  color: #34d399;
}

.plan-profile-link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #7c3aed;
  font-weight: 600;
  font-size: var(--text-sm);
  font-family: inherit;
  text-decoration: none;
}
.plan-profile-link:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════════
   TRIAL BANNER
   Injected by Plans._showTrialBanner() inside .main-wrapper,
   immediately after .top-header.
══════════════════════════════════════════════════════════ */
.trial-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 24px;
  background: #fefce8;
  border-bottom: 1px solid #fde047;
  font-size: 13px;
  color: #854d0e;
  line-height: 1.4;
}

[data-theme="purple"] .trial-banner,
[data-theme="dark"]   .trial-banner {
  background: #1c1a05;
  border-bottom-color: #854d0e;
  color: #fbbf24;
}

.trial-banner-urgent {
  background: #fff7ed;
  border-bottom-color: #fb923c;
  color: #7c2d12;
}

[data-theme="purple"] .trial-banner-urgent,
[data-theme="dark"]   .trial-banner-urgent {
  background: #1c0f05;
  border-bottom-color: #c2410c;
  color: #fb923c;
}

.trial-banner-icon {
  flex-shrink: 0;
  font-size: 15px;
}

.trial-banner-text {
  flex: 1;
  min-width: 0;
}

.trial-banner-link {
  color: #7c3aed;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.trial-banner-link:hover { text-decoration: underline; }
.trial-banner-link:hover { opacity: .75; }


.trial-banner-dismiss {
  flex-shrink: 0;
  background: none;
  border: none;
  color: inherit;
  opacity: .45;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 4px;
}
.trial-banner-dismiss:hover { opacity: .9; }

/* ══════════════════════════════════════════════════════════
   PRICING CARDS
   Used in both the modal and the lock screen.
══════════════════════════════════════════════════════════ */
.pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 8px;
}
@media (max-width: 560px) {
  .pricing-cards { grid-template-columns: 1fr; }
}

.pricing-card {
  border: 2px solid var(--border, #e2e8f0);
  border-radius: 16px;
  padding: 26px 22px;
  background: var(--bg-card, #fff);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow .2s;
}
.pricing-card:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
}

/* Featured (yearly) card */
.pricing-card-pro {
  border-color: #a78bfa;
  box-shadow: 0 0 0 4px rgba(167,139,250,.12);
}
.pricing-card-pro:hover {
  box-shadow: 0 0 0 4px rgba(167,139,250,.18), 0 4px 24px rgba(0,0,0,.08);
}

.pricing-card-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-2, #64748b);
}

.pricing-best-value {
  background: #7c3aed;
  color: #fff;
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 10px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.pricing-price {
  font-size: 44px;
  font-weight: 800;
  color: var(--text-1, #1e293b);
  line-height: 1;
}

.pricing-per {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-2, #64748b);
}

.pricing-billed {
  font-size: 12px;
  color: var(--text-3, #94a3b8);
  margin-top: -10px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}
.pricing-features li {
  font-size: 13px;
  color: var(--text-2, #64748b);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pricing-features li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  background: rgba(124,58,237,.12);
  color: #7c3aed;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}

.btn-plan {
  width: 100%;
  padding: 12px;
  border: 2px solid #a78bfa;
  border-radius: 8px;
  background: transparent;
  color: #7c3aed;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  margin-top: 2px;
  font-family: inherit;
}
.btn-plan:hover {
  background: #a78bfa;
  color: #fff;
  border-color: #a78bfa;
}

.btn-plan-pro {
  background: #7c3aed;
  color: #fff;
  border-color: #7c3aed;
}
.btn-plan-pro:hover {
  background: #6d28d9;
  border-color: #6d28d9;
}

/* ══════════════════════════════════════════════════════════
   LOCK SCREEN
   Full-page overlay shown when the trial has expired.
══════════════════════════════════════════════════════════ */
.plan-lock-screen {
  position: fixed;
  inset: 0;
  background: var(--bg-page, #f4f4f8);
  z-index: 10000;
  overflow-y: auto;
  display: flex;
  justify-content: center;
  padding: 60px 20px 60px;
}

.plan-lock-inner {
  width: 100%;
  max-width: 700px;
  text-align: center;
}

.plan-lock-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}
.plan-lock-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}
.plan-lock-brand {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-1, #1e293b);
}

.plan-lock-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--text-1, #1e293b);
  margin-bottom: 12px;
  line-height: 1.2;
}

.plan-lock-sub {
  font-size: 15px;
  color: var(--text-2, #64748b);
  margin-bottom: 40px;
  line-height: 1.7;
}

.plan-lock-contact {
  margin-top: 36px;
  font-size: 13px;
  color: var(--text-3, #94a3b8);
}
.plan-lock-contact a {
  color: #a78bfa;
  text-decoration: none;
}
.plan-lock-contact a:hover { text-decoration: underline; }
