/* Plan Modal Styles */
.plan-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.plan-modal {
  background: white;
  border-radius: 16px;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.plan-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.plan-modal-header h2 {
  margin: 0;
  color: #18375F;
  font-size: 24px;
  font-weight: 600;
}

.plan-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #9ca3af;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.plan-modal-close:hover {
  color: #374151;
  background-color: #f3f4f6;
}

.plan-modal-content {
  padding: 32px;
}

.plan-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .plan-options {
    grid-template-columns: 1fr;
  }
}

.plan-card {
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  background: white;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.plan-card:hover {
  border-color: #18375F;
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(24, 55, 95, 0.15);
}

.plan-card.recommended {
  border-color: #18375F;
  background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
}

.plan-badge {
  position: absolute;
  top: -1px;
  right: 24px;
  background: linear-gradient(135deg, #18375F, #2563eb);
  color: white;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-header {
  text-align: center;
  margin-bottom: 24px;
}

.plan-header h3 {
  margin: 0 0 12px 0;
  color: #18375F;
  font-size: 20px;
  font-weight: 600;
}

.plan-price {
  margin-bottom: 8px;
}

.plan-price .price {
  font-size: 32px;
  font-weight: 700;
  color: #18375F;
}

.plan-price .period {
  font-size: 16px;
  color: #6b7280;
  font-weight: 500;
}

.plan-savings {
  color: #059669;
  font-weight: 600;
  font-size: 14px;
  background: #d1fae5;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
}

.plan-features {
  margin-bottom: 24px;
}

.plan-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plan-features li {
  padding: 8px 0;
  color: #374151;
  font-size: 15px;
  line-height: 1.5;
}

.plan-button {
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: none;
}

.plan-button.monthly {
  background: #f3f4f6;
  color: #18375F;
  border: 2px solid #18375F;
}

.plan-button.monthly:hover {
  background: #18375F;
  color: white;
}

.plan-button.yearly {
  background: linear-gradient(135deg, #18375F, #2563eb);
  color: white;
}

.plan-button.yearly:hover {
  background: linear-gradient(135deg, #1e293b, #1d4ed8);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(24, 55, 95, 0.3);
}