/* Upgrade modal (Choose Your Plan) - scoped styles so the modal renders
   identically on EVERY page. The original card styles live in
   feature-list.css, which is loaded only by the Studio page and can't go
   global because it restyles .btn-primary app-wide. Everything here is
   prefixed with #upgradeModal, so it leaks nowhere. Keep the look in sync
   with feature-list.css (the Studio's version of these cards). */

#upgradeModal .subscription-option {
  background: linear-gradient(145deg, #2C3E50 0%, #1a2530 100%);
  border-radius: 12px;
  padding: 2rem 1.5rem 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(61, 90, 128, 0.2);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#upgradeModal .subscription-option form {
  margin-top: auto;
}

#upgradeModal .subscription-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

#upgradeModal .feature-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #3D5A80;
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 2;
  white-space: nowrap;
}

#upgradeModal .highlight-badge {
  background: #3D5A80;
  color: white;
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0.5rem 0;
}

#upgradeModal .price {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0.25rem 0;
}

#upgradeModal .price-container {
  position: relative;
  padding: 0.5rem 0;
}

#upgradeModal .feature-list {
  margin-top: 0.5rem;
}

#upgradeModal .feature-item {
  display: block;
  margin-bottom: 0.6rem;
  color: #ffffff;
  font-size: 0.9rem;
  padding-left: 1.5rem;
  position: relative;
}

#upgradeModal .feature-item::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #ffffff;
  font-weight: bold;
}

#upgradeModal .btn-primary {
  margin-top: auto;
  background: #3D5A80;
  border: none;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.5rem 2rem;
  width: 100%;
}

#upgradeModal .btn-primary:hover {
  background: #4d6a90;
}

/* Monthly/yearly interval toggle */
#upgradeModal .plan-interval-toggle {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 1rem;
}

#upgradeModal .interval-btn {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 22px;
  border-radius: 999px;
  cursor: pointer;
}

#upgradeModal .interval-btn.active {
  background: #0496FF;
  color: #fff;
}

#upgradeModal .interval-save {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: #4CAF50;
  margin-left: 4px;
}

#upgradeModal .interval-btn.active .interval-save {
  color: #d7ffd9;
}

/* Pro carries the marketing site's blue treatment: accent border, blue badge */
#upgradeModal .pro-option {
  background: linear-gradient(145deg, #23384d 0%, #1a2530 100%);
  border: 2px solid #0496FF;
}

#upgradeModal .pro-option .feature-badge {
  background: #0496FF;
}

#upgradeModal .pro-option .btn-primary {
  background: #0496FF;
}

#upgradeModal .pro-option .btn-primary:hover {
  background: #00A6FF;
}

#upgradeModal .plan-note {
  color: #0496FF;
  font-size: 0.85rem;
  font-weight: 500;
}

#upgradeModal .lifetime-note {
  color: #f0b429;
}

#upgradeModal .retire-line {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

/* Green "Cancel anytime", same reassurance the site gives next to the price */
#upgradeModal .cancel-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  margin: 0.25rem 0 0.5rem;
}

#upgradeModal .cancel-badge-x {
  font-size: 1rem;
  line-height: 1;
}

/* Lifetime countdown: a 4-column grid that shrinks with the card - no fixed
   widths, nothing to overflow (same construction as the site's timer) */
#upgradeModal .ltd-countdown {
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.4);
  border-radius: 12px;
  padding: 0.75rem;
  width: 100%;
  margin-top: 0.5rem;
}

#upgradeModal .ltd-cells {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

#upgradeModal .ltd-cell {
  background: rgba(234, 179, 8, 0.15);
  border-radius: 8px;
  padding: 0.5rem 0.25rem;
  text-align: center;
  min-width: 0;
}

#upgradeModal .ltd-num {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

#upgradeModal .ltd-lbl {
  color: rgba(254, 240, 138, 0.8);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

#upgradeModal .ltd-note {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  text-align: center;
  margin: 0.625rem 0 0;
}

/* "See everything included" expander */
#upgradeModal .plan-details-toggle {
  background: transparent;
  border: none;
  color: #0496FF;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

#upgradeModal .plan-details-toggle:hover {
  color: #00A6FF;
}

#upgradeModal .plan-details-caret {
  display: inline-block;
  transition: transform 0.3s;
}

#upgradeModal .plan-details-toggle.open .plan-details-caret {
  transform: rotate(180deg);
}

#upgradeModal .plan-details {
  margin-top: 1rem;
  padding: 1.5rem;
  background: rgba(26, 37, 48, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

#upgradeModal .plan-details-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

#upgradeModal .plan-details .feature-item {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

/* Lifetime is the hero, same gold treatment as the marketing site's card */
#upgradeModal .lifetime-option {
  background: linear-gradient(145deg, #33301f 0%, #1a1812 100%);
  border: 2px solid rgba(234, 179, 8, 0.6);
  box-shadow: 0 4px 14px rgba(234, 179, 8, 0.15);
}

#upgradeModal .lifetime-option .feature-badge {
  background: linear-gradient(90deg, #eab308, #f97316);
}

#upgradeModal .lifetime-option .highlight-badge {
  background: rgba(234, 179, 8, 0.18);
  color: #f0b429;
}

#upgradeModal .lifetime-option .price {
  color: #f0b429;
}

#upgradeModal .lifetime-option .btn-primary {
  background: linear-gradient(90deg, #eab308, #f97316);
}

#upgradeModal .lifetime-option .btn-primary:hover {
  background: linear-gradient(90deg, #facc15, #fb923c);
}
